X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=ITS%2FAliITSpackageSSD.h;h=5060e11024ad7ddf8a4a2b3ac13a63cfa495c14a;hb=c10e6eaf3d40af20da44f21c3ec7209b8e2bbfea;hp=0bf70acbfdcd3b1ef36c9f82b86d2183a9990299;hpb=b0f5e3fcf84ecedb50df35ebe629b44bafc15bc0;p=u%2Fmrichter%2FAliRoot.git diff --git a/ITS/AliITSpackageSSD.h b/ITS/AliITSpackageSSD.h index 0bf70acbfdc..5060e11024a 100644 --- a/ITS/AliITSpackageSSD.h +++ b/ITS/AliITSpackageSSD.h @@ -7,19 +7,21 @@ // #include "TObject.h" #include "TArrayI.h" -#include "TClonesArray.h" -#include "AliITS.h" -#include "AliITSclusterSSD.h" +//#include "AliITSclusterSSD.h" +class AliITS; +class AliITSclusterSSD; + +//------------------------------------------------------------------- class AliITSpackageSSD : public TObject { public: AliITSpackageSSD(); - AliITSpackageSSD(Int_t len, TClonesArray *clustersP, TClonesArray *clustersP); - AliITSpackageSSD(TClonesArray *clustersP, TClonesArray *clustersP); + AliITSpackageSSD(Int_t len, TClonesArray *clustersP, TClonesArray *clustersN); + AliITSpackageSSD(TClonesArray *clustersP, TClonesArray *clustersN); ~AliITSpackageSSD(); @@ -35,9 +37,9 @@ class AliITSpackageSSD : public TObject clindex:(*fClusterPIndexes)[fNclustersP++]=clindex;} //Returns index of one side cluster in TClonesArray, NOT AliITSclusterSSD - Int_t GetNSideClusterIdx(Int_t index); //input index is number of cluster in this package - Int_t GetPSideClusterIdx(Int_t index); //returns index in TClonesArray - Int_t GetClusterIdx(Int_t index,Bool_t side) + Int_t GetNSideClusterIdx(Int_t index) const; //input index is number of cluster in this package + Int_t GetPSideClusterIdx(Int_t index) const; //returns index in TClonesArray + Int_t GetClusterIdx(Int_t index,Bool_t side) const {return (side)?GetPSideClusterIdx(index):GetNSideClusterIdx(index);} AliITSclusterSSD* GetNSideCluster(Int_t index); @@ -45,15 +47,15 @@ class AliITSpackageSSD : public TObject AliITSclusterSSD* GetCluster(Int_t index, Bool_t side) {return (side)?GetPSideCluster(index):GetNSideCluster(index);} - Int_t GetNextPIdx(Int_t OI); //Returns index of next P cluster in package; OI == Original Inedx (in TClonesArray) - Int_t GetPrvPIdx(Int_t OI); //Returns index of previous P cluster in package; OI == Original Inedx (in TClonesArray) - Int_t GetNextNIdx(Int_t OI); //Returns index of next N cluster in package; OI == Original Inedx (in TClonesArray) - Int_t GetPrvNIdx(Int_t OI); //Returns index of previous N cluster in package; OI == Original Inedx (in TClonesArray) - - Int_t GetNumOfClustersN (){return fNclustersN;} - Int_t GetNumOfClustersP(){return fNclustersP;} - Int_t GetNumOfClusters() {return fNclustersP+fNclustersN;} - Int_t GetNumOfClusters(Bool_t side) {return (side)?fNclustersP:fNclustersN;} + Int_t GetNextPIdx(Int_t OI) const; //Returns index of next P cluster in package; OI == Original Inedx (in TClonesArray) + Int_t GetPrvPIdx(Int_t OI) const; //Returns index of previous P cluster in package; OI == Original Inedx (in TClonesArray) + Int_t GetNextNIdx(Int_t OI) const; //Returns index of next N cluster in package; OI == Original Inedx (in TClonesArray) + Int_t GetPrvNIdx(Int_t OI) const; //Returns index of previous N cluster in package; OI == Original Inedx (in TClonesArray) + + Int_t GetNumOfClustersN() const {return fNclustersN;} + Int_t GetNumOfClustersP() const {return fNclustersP;} + Int_t GetNumOfClusters() const {return fNclustersP+fNclustersN;} + Int_t GetNumOfClusters(Bool_t side) const {return (side)?fNclustersP:fNclustersN;} //returns number of clusters belonging to package, //that crosses with only one cluster on the other side @@ -78,12 +80,14 @@ protected: TClonesArray *fClustersN; //Pointer to array of clusters - only to have direct acces to TClonesArray *fClustersP; //clusters - Int_t fNclustersN; - Int_t fNclustersP; - TArrayI *fClusterNIndexes; - TArrayI *fClusterPIndexes; - static const Bool_t SIDEP=kTRUE; - static const Bool_t SIDEN=kFALSE; + Int_t fNclustersN; // number of N clusters + Int_t fNclustersP; // number of P cluster + TArrayI *fClusterNIndexes; // array of pointers to the N clusters + TArrayI *fClusterPIndexes; // array of pointers to the P clusters + + static const Bool_t fgkSIDEP; // boolean for P side + static const Bool_t fgkSIDEN; // boolean for N side + static const Int_t fgkDebug=0; // debugging flag /***************/ @@ -92,7 +96,7 @@ protected: void MakeCombin(Int_t**arr, Int_t& nu, Int_t np, Int_t *occup,Int_t size); - Bool_t IsFree(Int_t idx, Int_t nn, Int_t *lis); + Bool_t IsFree(Int_t idx, Int_t nn, const Int_t *lis) const; @@ -103,10 +107,3 @@ private: }; #endif - - - - - - -