]>
Commit | Line | Data |
---|---|---|
32e449be | 1 | #ifndef ALIMULTIPLICITY_H |
2 | #define ALIMULTIPLICITY_H | |
3 | ||
4 | #include<TObject.h> | |
5 | ||
6 | //////////////////////////////////////////////////////// | |
7 | //// Class containing multiplicity information // | |
8 | //// to stored in the ESD // | |
9 | //////////////////////////////////////////////////////// | |
10 | ||
11 | class AliMultiplicity : public TObject { | |
12 | ||
13 | public: | |
14 | ||
15 | AliMultiplicity(); // default constructor | |
16 | // standard constructor | |
968e8539 | 17 | AliMultiplicity(Int_t ntr,Float_t *t, Float_t *ph, Float_t *df, |
18 | Int_t ns, Float_t *ts, Float_t *ps); | |
32e449be | 19 | AliMultiplicity(const AliMultiplicity& m); |
20 | AliMultiplicity& operator=(const AliMultiplicity& m); | |
21 | virtual ~AliMultiplicity(); | |
968e8539 | 22 | // methods to access tracklet information |
32e449be | 23 | Int_t GetNumberOfTracklets() const {return fNtracks;} |
24 | Float_t GetTheta(Int_t i) const { if(i>=0 && i<fNtracks) {return fTh[i];} | |
25 | else {Error("GetTheta","Invalid track number %d",i); return -9999.;}} | |
26 | Float_t GetPhi(Int_t i) const { if(i>=0 && i<fNtracks) {return fPhi[i];} | |
968e8539 | 27 | else {Error("GetPhi","Invalid track number %d",i); return -9999.;}} |
32e449be | 28 | Float_t GetDeltaPhi(Int_t i) const {if(i>=0 && i<fNtracks) {return fDeltPhi[i];} |
29 | else {Error("GetDeltaPhi","Invalid track number %d",i); return -9999.;}} | |
968e8539 | 30 | // methods to access single cluster information |
31 | Int_t GetNumberOfSingleClusters() const {return fNsingle;} | |
32 | Float_t GetThetaSingle(Int_t i) const { if(i>=0 && i<fNsingle) {return fThsingle[i];} | |
33 | else {Error("GetThetaSingle","Invalid cluster number %d",i); return -9999.;}} | |
34 | Float_t GetPhiSingle(Int_t i) const { if(i>=0 && i<fNsingle) {return fPhisingle[i];} | |
35 | else {Error("GetPhisingle","Invalid cluster number %d",i); return -9999.;}} | |
32e449be | 36 | |
37 | protected: | |
38 | void Duplicate(const AliMultiplicity &m); // used by copy ctr. | |
968e8539 | 39 | Int_t fNtracks; // Number of tracklets |
32e449be | 40 | Float_t *fTh; //[fNtracks] array with theta values |
41 | Float_t *fPhi; //[fNtracks] array with phi values | |
42 | Float_t *fDeltPhi; //[fNtracks] array with delta phi values | |
968e8539 | 43 | Int_t fNsingle; // Number of clusters on SPD layer 1, not associated |
44 | // with a tracklet on SPD layer 2 | |
45 | Float_t *fThsingle; //[fNsingle] array with theta values of L1 clusters | |
46 | Float_t *fPhisingle; //[fNsingle] array with phi values of L2 clusters | |
32e449be | 47 | |
968e8539 | 48 | ClassDef(AliMultiplicity,2); |
32e449be | 49 | }; |
50 | ||
51 | #endif |