#include <TIndexCell.h>
|
| Int_t | Add (Int_t narg, Long_t varg[]) |
| |
| Int_t | Add (Long_t p1) |
| |
| TIndexCell * | At (Int_t idx) const |
| |
| TIndexCell const * | At (Int_t narg, Int_t vind[]) const |
| |
| Int_t | Compare (const TObject *obj) const |
| |
| Int_t | ComparePatterns (Int_t nind, Long_t vdiff[], TIndexCell *cin, Int_t strip=0) |
| |
| Int_t | ComparePatterns (Int_t nind, TIndexCell *cin, Int_t srtip=0) |
| |
| void | Delete () |
| |
| void | Drop () |
| |
| void | Drop (int i) |
| |
| void | DropButFirst (int level) |
| |
| void | DropButLast (int level) |
| |
| int | DropCouples (int level) |
| |
| TIndexCell * | Find (Int_t narg, Long_t varg[]) const |
| |
| TIndexCell * | Find (Long_t p1) const |
| |
| TIndexCell * | FindAdd (Long_t p1) |
| |
| Int_t | GetEntriesFast () const |
| |
| Int_t | GetValues (Int_t level, Int_t vind[], Long_t val[]) const |
| |
| ULong_t | Hash () const |
| |
| Bool_t | IsEqual (const TObject *obj) const |
| |
| Bool_t | IsSortable () const |
| |
| TObjArray * | List () const |
| |
| Int_t | MaxN (Int_t level) const |
| |
| Int_t | MaxN (Int_t level, Int_t vind[]) const |
| |
| Long_t | MaxV (Int_t level) const |
| |
| Long_t | MaxV (Int_t level, Int_t vind[]) const |
| |
| Int_t | MinN (Int_t level) const |
| |
| Int_t | MinN (Int_t level, Int_t vind[]) const |
| |
| Long_t | MinV (Int_t level) const |
| |
| Long_t | MinV (Int_t level, Int_t vind[]) const |
| |
| Int_t | N () const |
| |
| Int_t | N (Int_t level) const |
| |
| Int_t | Nlevels () const |
| |
| void | Print (Option_t *) const |
| |
| void | PrintPopulation (int level) const |
| |
| void | PrintStat () const |
| |
| void | Purge (int level) |
| |
| void | SetName (const char *varlist) |
| |
| void | SetValue (Long_t p1) |
| |
| void | Shift (Int_t n, Long_t vshift[]) |
| |
| void | Shift (Long_t vshift) |
| |
| void | Sort (Int_t upto=kMaxInt) |
| |
| | TIndexCell () |
| |
| | TIndexCell (const TIndexCell &c) |
| |
| | TIndexCell (Long_t p1) |
| |
| Long_t | Value () const |
| |
| | ~TIndexCell () |
| |
◆ TIndexCell() [1/3]
| TIndexCell::TIndexCell |
( |
| ) |
|
|
inline |
Long_t fValue
Definition: TIndexCell.h:26
TObjArray * fList
Definition: TIndexCell.h:28
◆ TIndexCell() [2/3]
| TIndexCell::TIndexCell |
( |
Long_t |
p1 | ) |
|
|
inline |
◆ TIndexCell() [3/3]
◆ ~TIndexCell()
| TIndexCell::~TIndexCell |
( |
| ) |
|
void Delete()
Definition: TIndexCell.cpp:49
◆ Add() [1/2]
| Int_t TIndexCell::Add |
( |
Int_t |
narg, |
|
|
Long_t |
varg[] |
|
) |
| |
604 if(narg==1)
return Add( varg[0] );
608 return b->
Add( narg, varg+1 );
Definition: TIndexCell.h:19
TIndexCell * FindAdd(Long_t p1)
Definition: TIndexCell.cpp:575
Int_t Add(Int_t narg, Long_t varg[])
Definition: TIndexCell.cpp:602
◆ Add() [2/2]
| Int_t TIndexCell::Add |
( |
Long_t |
p1 | ) |
|
594 printf(
"WARNING: TIndexCell::Add(%ld) - object is not unique!\n",p1);
TIndexCell * Find(Int_t narg, Long_t varg[]) const
Definition: TIndexCell.cpp:613
TIndexCell()
Definition: TIndexCell.h:31
◆ At() [1/2]
◆ At() [2/2]
| TIndexCell const * TIndexCell::At |
( |
Int_t |
narg, |
|
|
Int_t |
vind[] |
|
) |
| const |
528 if(nind==1)
return b;
531 return b->
At(nind,vind+1);
534 else if(nind==0)
return this;
TIndexCell const * At(Int_t narg, Int_t vind[]) const
Definition: TIndexCell.cpp:519
◆ Compare()
| Int_t TIndexCell::Compare |
( |
const TObject * |
obj | ) |
const |
|
inline |
Long_t Value() const
Definition: TIndexCell.h:79
◆ ComparePatterns() [1/2]
| Int_t TIndexCell::ComparePatterns |
( |
Int_t |
nind, |
|
|
Long_t |
vdiff[], |
|
|
TIndexCell * |
cin, |
|
|
Int_t |
strip = 0 |
|
) |
| |
94 if(level<1)
return npat;
96 if(entries<1)
return npat;
104 for(
int i=entries-1; i>-1; i-- ) {
107 if( vdiff[0] == 0 ) {
110 if(level==1) {
npat++;}
114 else if(vdiff[0] > 0 ) {
115 for( Long_t j=-vdiff[0]; j<=vdiff[0]; j++ ) {
Int_t npat
Definition: Xi2HatStartScript.C:33
void Drop()
Definition: TIndexCell.cpp:237
Int_t GetEntriesFast() const
Definition: TIndexCell.h:82
Int_t ComparePatterns(Int_t nind, TIndexCell *cin, Int_t srtip=0)
Definition: TIndexCell.cpp:141
void Sort(Int_t upto=kMaxInt)
Definition: TIndexCell.cpp:539
TCanvas * c1
Definition: energy.C:13
◆ ComparePatterns() [2/2]
| Int_t TIndexCell::ComparePatterns |
( |
Int_t |
nind, |
|
|
TIndexCell * |
cin, |
|
|
Int_t |
srtip = 0 |
|
) |
| |
143 Long_t *vdiff =
new Long_t[level];
144 for(
int i=0; i<level; i++ ) vdiff[i]=0;
EdbSegCouple * cp
Definition: tlg2pattern.C:29
◆ Delete()
| void TIndexCell::Delete |
( |
| ) |
|
53 for(
int i=0; i<ncc; i++ ) {
◆ Drop() [1/2]
| void TIndexCell::Drop |
( |
| ) |
|
◆ Drop() [2/2]
| void TIndexCell::Drop |
( |
int |
i | ) |
|
◆ DropButFirst()
| void TIndexCell::DropButFirst |
( |
int |
level | ) |
|
184 for(
int i=ncc-1; i>0; i--)
Drop(i);
void DropButFirst(int level)
Definition: TIndexCell.cpp:176
◆ DropButLast()
| void TIndexCell::DropButLast |
( |
int |
level | ) |
|
199 for(
int i=ncc-2; i>=0; i-- )
Drop(i);
void DropButLast(int level)
Definition: TIndexCell.cpp:191
◆ DropCouples()
| int TIndexCell::DropCouples |
( |
int |
level | ) |
|
210 if(!
fList)
return count;
213 for(
int i=ncc-1; i>-1; i--)
214 if(ncc>1) {
Drop(i); count++;}
int DropCouples(int level)
Definition: TIndexCell.cpp:206
◆ Find() [1/2]
| TIndexCell * TIndexCell::Find |
( |
Int_t |
narg, |
|
|
Long_t |
varg[] |
|
) |
| const |
615 if(narg==1)
return Find( varg[0] );
620 return b->
Find( narg, varg+1 );
◆ Find() [2/2]
631 if(!
fList->IsSorted())
633 Int_t i =
fList->BinarySearch(&
a);
634 if(i>=0)
return At(i);
void a()
Definition: check_aligned.C:59
◆ FindAdd()
◆ GetEntriesFast()
| Int_t TIndexCell::GetEntriesFast |
( |
| ) |
const |
|
inline |
◆ GetValues()
| Int_t TIndexCell::GetValues |
( |
Int_t |
level, |
|
|
Int_t |
vind[], |
|
|
Long_t |
val[] |
|
) |
| const |
510 for(
int lev=1; lev<=nind; lev++ ) {
513 val[lev-1]=b->
Value();
◆ Hash()
| ULong_t TIndexCell::Hash |
( |
| ) |
const |
|
inline |
◆ IsEqual()
| Bool_t TIndexCell::IsEqual |
( |
const TObject * |
obj | ) |
const |
|
inline |
◆ IsSortable()
| Bool_t TIndexCell::IsSortable |
( |
| ) |
const |
|
inline |
◆ List()
| TObjArray* TIndexCell::List |
( |
| ) |
const |
|
inline |
◆ MaxN() [1/2]
| Int_t TIndexCell::MaxN |
( |
Int_t |
level | ) |
const |
472 Int_t *vind =
new Int_t[level];
int max
Definition: check_shower.C:41
Int_t MaxN(Int_t level, Int_t vind[]) const
Definition: TIndexCell.cpp:479
◆ MaxN() [2/2]
| Int_t TIndexCell::MaxN |
( |
Int_t |
level, |
|
|
Int_t |
vind[] |
|
) |
| const |
488 Int_t n=-999999999, k=-999999999;
492 for(
int i=0; i<nentr; i++) {
493 k=
At(i)->
MaxN(level-1,vind+1);
◆ MaxV() [1/2]
| Long_t TIndexCell::MaxV |
( |
Int_t |
level | ) |
const |
404 Int_t *vind =
new Int_t[level];
Long_t MaxV(Int_t level, Int_t vind[]) const
Definition: TIndexCell.cpp:411
◆ MaxV() [2/2]
| Long_t TIndexCell::MaxV |
( |
Int_t |
level, |
|
|
Int_t |
vind[] |
|
) |
| const |
415 if(level==0)
return fValue;
416 Long_t n=-kMaxInt, k=-kMaxInt;
420 for(
int i=0; i<ncc; i++) {
421 k=
At(i)->
MaxV(level-1,vind+1);
◆ MinN() [1/2]
| Int_t TIndexCell::MinN |
( |
Int_t |
level | ) |
const |
436 Int_t *vind =
new Int_t[level];
float min(TClonesArray *t)
Definition: bitview.cxx:275
Int_t MinN(Int_t level, Int_t vind[]) const
Definition: TIndexCell.cpp:443
◆ MinN() [2/2]
| Int_t TIndexCell::MinN |
( |
Int_t |
level, |
|
|
Int_t |
vind[] |
|
) |
| const |
452 Int_t n=kMaxInt, k=kMaxInt;
456 for(
int i=0; i<nentr; i++) {
457 k=
At(i)->
MinN(level-1,vind+1);
◆ MinV() [1/2]
| Long_t TIndexCell::MinV |
( |
Int_t |
level | ) |
const |
372 Int_t *vind =
new Int_t[level];
Long_t MinV(Int_t level, Int_t vind[]) const
Definition: TIndexCell.cpp:379
◆ MinV() [2/2]
| Long_t TIndexCell::MinV |
( |
Int_t |
level, |
|
|
Int_t |
vind[] |
|
) |
| const |
383 if(level==0)
return fValue;
384 Long_t n=kMaxInt, k=kMaxInt;
388 for(
int i=0; i<ncc; i++) {
389 k=
At(i)->
MinV(level-1,vind+1);
◆ N() [1/2]
| Int_t TIndexCell::N |
( |
| ) |
const |
350 else for(
int i=0; i<ncc; i++) n +=
At(i)->
N();
Int_t N() const
Definition: TIndexCell.cpp:344
◆ N() [2/2]
| Int_t TIndexCell::N |
( |
Int_t |
level | ) |
const |
◆ Nlevels()
| Int_t TIndexCell::Nlevels |
( |
| ) |
const |
335 for(
int i=0; i<ncc; i++) {
Int_t Nlevels() const
Definition: TIndexCell.cpp:328
◆ Print()
| void TIndexCell::Print |
( |
Option_t * |
opt | ) |
const |
299 for(
int i=0; i<ncc; i++) {
300 printf(
" %s = ",
fList->GetName());
void Print(Option_t *) const
Definition: TIndexCell.cpp:292
◆ PrintPopulation()
| void TIndexCell::PrintPopulation |
( |
int |
level | ) |
const |
246 printf(
"Population on the level %d\n",level);
252 while( (c=itr.Next()) ) {
253 cn =
hist.FindAdd((Long_t)(c->
N(1)));
254 if(!cn->
At(0)) cn->
Add(0);
258 hist.SetName(
"N:entries");
Definition: TIndexCell.h:110
void SetValue(Long_t p1)
Definition: TIndexCell.h:87
void hist()
Definition: init.C:23
◆ PrintStat()
| void TIndexCell::PrintStat |
( |
| ) |
const |
266 printf(
"Ncell: %d\n",
N() );
271 printf(
"level\t entries\t range\t occupancy\t minPop\t maxPop\n");
273 for(
int i=1; i<nlvl; i++ ) {
277 printf(
" %d \t %d \t\t %d \t %f %% \t %d \t %d\n",
279 printf(
" %d \t %d \t\t %d \t %f \%% \t %d \t %d\n",
281 i,
N(i),range,100.*
N(i)/phaseVol,
MinN(i),
MaxN(i) );
284 printf(
" %d \t %d \t\t %d \t %f %%\n",
286 printf(
" %d \t %d \t\t %d \t %f \%%\n",
TObjArray * List() const
Definition: TIndexCell.h:78
◆ Purge()
| void TIndexCell::Purge |
( |
int |
level | ) |
|
310 if( level< 1 )
return;
313 if( entries<1 )
Drop();
314 for(
int i=entries-1; i>-1; i--) {
void Purge(int level)
Definition: TIndexCell.cpp:306
◆ SetName()
| void TIndexCell::SetName |
( |
const char * |
varlist | ) |
|
553 fList->SetName(varlist);
555 Int_t nch = strlen(varlist);
556 if (nch <= 1)
return;
558 const char *newvar=0;
560 for (i=1;i<nch;i++) {
561 if (varlist[i] ==
':') {
562 if(i+1<nch) newvar=&varlist[i+1];
◆ SetValue()
| void TIndexCell::SetValue |
( |
Long_t |
p1 | ) |
|
|
inline |
◆ Shift() [1/2]
| void TIndexCell::Shift |
( |
Int_t |
n, |
|
|
Long_t |
vshift[] |
|
) |
| |
69 for(
int i=0;i<ncc;i++)
At(i)->
Shift(vshift[0]);
72 for(
int i=0; i<ncc; i++ ) {
void Shift(Long_t vshift)
Definition: TIndexCell.h:39
◆ Shift() [2/2]
| void TIndexCell::Shift |
( |
Long_t |
vshift | ) |
|
|
inline |
◆ Sort()
| void TIndexCell::Sort |
( |
Int_t |
upto = kMaxInt | ) |
|
544 for(
int i=0; i<ncc; i++)
At(i)->
Sort();
◆ Value()
| Long_t TIndexCell::Value |
( |
| ) |
const |
|
inline |
◆ TIndexCellIter
◆ TIndexCellIterV
◆ fList
| TObjArray* TIndexCell::fList |
|
private |
◆ fValue
| Long_t TIndexCell::fValue |
|
private |
The documentation for this class was generated from the following files: