]>
Commit | Line | Data |
---|---|---|
cc80f89e | 1 | #ifndef ALIDPARAM_H |
2 | #define ALIDPARAM_H | |
3 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
4 | * See cxx source for full Copyright notice */ | |
5 | ||
6 | /* $Id$ */ | |
7 | ||
8 | //////////////////////////////////////////////// | |
9 | // Manager class for detector parameters // | |
10 | //////////////////////////////////////////////// | |
11 | ||
12 | ||
13 | ||
14 | // rootcint problems befor including AliDetectorParam.h you must include TObject.h | |
15 | ||
16 | #include <TNamed.h> | |
17 | class AliDetectorParam : public TNamed { | |
18 | public: | |
19 | AliDetectorParam(){;} | |
73042f01 | 20 | virtual Int_t GetNSegmentsTotal() const {return 0;} //get total nuber of segments |
cc80f89e | 21 | virtual Bool_t Get1DIndex(Int_t *index, const Int_t * arrindex) {return kFALSE;} |
22 | //transform multidimensional index to one dimesional | |
23 | virtual Bool_t GetNDIndex(const Int_t * index1, Int_t * arrIndex) {return kFALSE;} | |
24 | //trasnform one dimesional index to multidimesional | |
25 | virtual Float_t GetPrimaryLoss(Float_t *x, Int_t *index, Float_t *angle){return 0;} | |
26 | virtual Float_t GetTotalLoss(Float_t *x, Int_t *index, Float_t *angle){return 0;} | |
27 | virtual void GetClusterSize(Float_t *x, Int_t *index, Float_t *angle, Int_t mode, Float_t *sigma){;} | |
28 | virtual void GetSpaceResolution(Float_t *x, Int_t *index, Float_t *angle, Float_t amplitude, Int_t mode, | |
29 | Float_t *sigma){;} | |
30 | virtual Float_t * GetAnglesAccMomentum(Float_t *x, Int_t * index, Float_t* momentum, Float_t *angle); | |
31 | ||
32 | void SetBField(Float_t b){fBField=b;} //set magnetic field intensity | |
33 | void SetNPrimLoss(Float_t loss) {fNPrimLoss = loss;} | |
34 | void SetNTotalLoss(Float_t loss) {fNTotalLoss = loss;} | |
35 | Float_t GetBFiled() {return fBField;} | |
36 | Float_t GetNPrimLoss() {return fNPrimLoss;} | |
37 | Float_t GetNTotalLoss() {return fNTotalLoss;} | |
38 | protected: | |
39 | Float_t fBField; //intensity of magnetic field | |
40 | Float_t fNPrimLoss; //number of produced primary electrons per cm | |
41 | Float_t fNTotalLoss; //total number of produced electrons per cm | |
42 | ||
43 | ClassDef(AliDetectorParam,1) //parameter object for set:TPC | |
44 | }; | |
45 | ||
46 | ||
47 | ||
48 | ||
49 | #endif //ALIDPARAM_H |