]>
Commit | Line | Data |
---|---|---|
1 | #ifndef ALIITSTRACKSA_H | |
2 | #define ALIITSTRACKSA_H | |
3 | /* Copyright(c) 1998-2003, ALICE Experiment at CERN, All rights reserved. * | |
4 | * See cxx source for full Copyright notice */ | |
5 | //////////////////////////////////////////////////// | |
6 | // Stand alone track class // | |
7 | // Origin: Elisabetta Crescio // | |
8 | // e-mail: crescio@to.infn.it // | |
9 | // // | |
10 | //////////////////////////////////////////////////// | |
11 | ||
12 | #include "AliITStrackMI.h" | |
13 | ||
14 | class AliITStrackSA : public AliITStrackMI { | |
15 | ||
16 | ||
17 | public: | |
18 | ||
19 | AliITStrackSA(); | |
20 | AliITStrackSA(const AliITStrackMI& t); | |
21 | AliITStrackSA(const AliITStrackSA& t); | |
22 | AliITStrackSA(Int_t layer, Int_t ladder, Int_t detector, | |
23 | Double_t Ycoor, Double_t Zcoor, Double_t phi, | |
24 | Double_t tanlambda, Double_t curv, Int_t lab); | |
25 | Int_t GetClusterIndexSA(Int_t i) const {return fSain[i];} | |
26 | Int_t GetClusterMark(Int_t layer,Int_t i) const {return fCluMark[layer][i];} | |
27 | Int_t GetNumberOfClustersSA() const {return fNSA;} | |
28 | Int_t GetNumberOfMarked(Int_t lay) const {return fNM[lay];} | |
29 | static const Int_t GetMaxNumberOfClusters() {return fgkMaxNumberOfClusters;} | |
30 | Int_t GetMaxNMarkedPerLayer() const {return fgkMaxNumberOfClustersL;} | |
31 | void AddClusterSA(Int_t layer, Int_t clnumb); | |
32 | void AddClusterV2(Int_t layer,Int_t clnumb); | |
33 | void AddClusterMark(Int_t layer, Int_t clnumb); | |
34 | ||
35 | protected: | |
36 | ||
37 | void SetNumberOfClustersSA(Int_t n){fNSA = n;} | |
38 | void SetNumberOfMarked(Int_t lay,Int_t n) {fNM[lay] = n;} | |
39 | void ResetIndexSA(){for(Int_t k=0; k<fgkMaxNumberOfClusters; k++) fSain[k]=0;} | |
40 | void ResetMarked(); | |
41 | ||
42 | static const Int_t fgkMaxNumberOfClustersL = 4;// Max. n. of clusters/layer | |
43 | static const Int_t fgkMaxNumberOfClusters = 15;// Max. number of clusters | |
44 | ||
45 | UInt_t fSain[fgkMaxNumberOfClusters]; // cluster index (SA) | |
46 | Int_t fNSA; // number of clusters SA | |
47 | ||
48 | Int_t fCluMark[AliITSgeomTGeo::kNLayers][fgkMaxNumberOfClustersL]; //indices for cluster used | |
49 | Int_t fNM[AliITSgeomTGeo::kNLayers]; //number of marked clusters | |
50 | ||
51 | ClassDef(AliITStrackSA,3) | |
52 | }; | |
53 | ||
54 | #endif | |
55 | ||
56 | ||
57 |