]>
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 | |
59ea252e | 17 | AliMultiplicity(Int_t ntr,Float_t *t, Float_t *ph, Float_t *df, Int_t *labels, |
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.;}} | |
59ea252e | 30 | Int_t GetLabel(Int_t i) const {if(i>=0 && i<fNtracks) {return fLabels[i];} |
31 | else {Error("GetLabel","Invalid track number %d",i); return -9999;}} | |
968e8539 | 32 | // methods to access single cluster information |
33 | Int_t GetNumberOfSingleClusters() const {return fNsingle;} | |
34 | Float_t GetThetaSingle(Int_t i) const { if(i>=0 && i<fNsingle) {return fThsingle[i];} | |
35 | else {Error("GetThetaSingle","Invalid cluster number %d",i); return -9999.;}} | |
36 | Float_t GetPhiSingle(Int_t i) const { if(i>=0 && i<fNsingle) {return fPhisingle[i];} | |
37 | else {Error("GetPhisingle","Invalid cluster number %d",i); return -9999.;}} | |
32e449be | 38 | |
39 | protected: | |
40 | void Duplicate(const AliMultiplicity &m); // used by copy ctr. | |
59ea252e | 41 | Int_t fNtracks; // Number of tracklets |
32e449be | 42 | Float_t *fTh; //[fNtracks] array with theta values |
43 | Float_t *fPhi; //[fNtracks] array with phi values | |
44 | Float_t *fDeltPhi; //[fNtracks] array with delta phi values | |
59ea252e | 45 | Int_t *fLabels; //[fNtracks] array with labels of tracklets |
968e8539 | 46 | Int_t fNsingle; // Number of clusters on SPD layer 1, not associated |
47 | // with a tracklet on SPD layer 2 | |
48 | Float_t *fThsingle; //[fNsingle] array with theta values of L1 clusters | |
49 | Float_t *fPhisingle; //[fNsingle] array with phi values of L2 clusters | |
32e449be | 50 | |
59ea252e | 51 | ClassDef(AliMultiplicity,3); |
32e449be | 52 | }; |
53 | ||
54 | #endif |