#include "TObject.h"
#include "TArrayI.h"
-#include "AliITSclusterSSD.h"
+//#include "AliITSclusterSSD.h"
-class AliITS;
+class AliITSclusterSSD;
+
+//-------------------------------------------------------------------
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);
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
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;
+ 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;
- static const Bool_t fgkSIDEN;
+ 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
/***************/
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;
};
#endif
-
-
-
-
-
-
-