- fixing warnings/coverity
[u/mrichter/AliRoot.git] / ITS / AliITStrackSA.h
CommitLineData
13918578 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
deae0246 12/* $Id$ */
13
15dd636f 14#include "AliITStrackMI.h"
13918578 15
15dd636f 16class AliITStrackSA : public AliITStrackMI {
13918578 17
18
19 public:
20
21 AliITStrackSA();
15dd636f 22 AliITStrackSA(const AliITStrackMI& t);
13918578 23 AliITStrackSA(const AliITStrackSA& t);
cc088660 24 AliITStrackSA(Int_t layer, Int_t ladder, Int_t detector,
13918578 25 Double_t Ycoor, Double_t Zcoor, Double_t phi,
26 Double_t tanlambda, Double_t curv, Int_t lab);
54e5c32c 27 AliITStrackSA(Double_t alpha, Double_t radius,
28 Double_t Ycoor, Double_t Zcoor, Double_t phi,
29 Double_t tanlambda, Double_t curv, Int_t lab);
30
13918578 31 Int_t GetClusterIndexSA(Int_t i) const {return fSain[i];}
7e5bf5af 32 Int_t GetClusterMark(Int_t layer,Int_t i) const {return fCluMark[layer][i];}
13918578 33 Int_t GetNumberOfClustersSA() const {return fNSA;}
7e5bf5af 34 Int_t GetNumberOfMarked(Int_t lay) const {return fNM[lay];}
5af4a2d0 35 static Int_t GetMaxNumberOfClusters() {return kMaxNumberOfClusters;}
deae0246 36 Int_t GetMaxNMarkedPerLayer() const {return kMaxNumberOfClustersL;}
13918578 37 void AddClusterSA(Int_t layer, Int_t clnumb);
38 void AddClusterV2(Int_t layer,Int_t clnumb);
7e5bf5af 39 void AddClusterMark(Int_t layer, Int_t clnumb);
13918578 40
deae0246 41 enum {kMaxNumberOfClustersL = 4};// Max. n. of clusters/layer
42 enum {kMaxNumberOfClusters = 15};// Max. number of clusters
43
13918578 44 protected:
54e5c32c 45
46 void Init(Double_t alpha, Double_t radius,
47 Double_t Ycoor, Double_t Zcoor, Double_t phi,
48 Double_t tanlambda, Double_t curv, Int_t lab);
13918578 49 void SetNumberOfClustersSA(Int_t n){fNSA = n;}
7e5bf5af 50 void SetNumberOfMarked(Int_t lay,Int_t n) {fNM[lay] = n;}
deae0246 51 void ResetIndexSA(){for(Int_t k=0; k<kMaxNumberOfClusters; k++) fSain[k]=0;}
7e5bf5af 52 void ResetMarked();
53
e50912db 54
deae0246 55 UInt_t fSain[kMaxNumberOfClusters]; // cluster index (SA)
13918578 56 Int_t fNSA; // number of clusters SA
7e5bf5af 57
deae0246 58 Int_t fCluMark[AliITSgeomTGeo::kNLayers][kMaxNumberOfClustersL]; //indices for cluster used
e50912db 59 Int_t fNM[AliITSgeomTGeo::kNLayers]; //number of marked clusters
7e5bf5af 60
deae0246 61 ClassDef(AliITStrackSA,4)
13918578 62};
63
64#endif
65
66
67