]>
Commit | Line | Data |
---|---|---|
1210abef | 1 | #ifndef ALIDETECTORPARAM_H |
2 | #define ALIDETECTORPARAM_H | |
cc80f89e | 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 | ||
cc80f89e | 12 | #include <TNamed.h> |
13 | class AliDetectorParam : public TNamed { | |
14 | public: | |
15 | AliDetectorParam(){;} | |
73042f01 | 16 | virtual Int_t GetNSegmentsTotal() const {return 0;} //get total nuber of segments |
cc80f89e | 17 | virtual Bool_t Get1DIndex(Int_t *index, const Int_t * arrindex) {return kFALSE;} |
18 | //transform multidimensional index to one dimesional | |
19 | virtual Bool_t GetNDIndex(const Int_t * index1, Int_t * arrIndex) {return kFALSE;} | |
20 | //trasnform one dimesional index to multidimesional | |
21 | virtual Float_t GetPrimaryLoss(Float_t *x, Int_t *index, Float_t *angle){return 0;} | |
22 | virtual Float_t GetTotalLoss(Float_t *x, Int_t *index, Float_t *angle){return 0;} | |
23 | virtual void GetClusterSize(Float_t *x, Int_t *index, Float_t *angle, Int_t mode, Float_t *sigma){;} | |
24 | virtual void GetSpaceResolution(Float_t *x, Int_t *index, Float_t *angle, Float_t amplitude, Int_t mode, | |
25 | Float_t *sigma){;} | |
26 | virtual Float_t * GetAnglesAccMomentum(Float_t *x, Int_t * index, Float_t* momentum, Float_t *angle); | |
27 | ||
28 | void SetBField(Float_t b){fBField=b;} //set magnetic field intensity | |
29 | void SetNPrimLoss(Float_t loss) {fNPrimLoss = loss;} | |
30 | void SetNTotalLoss(Float_t loss) {fNTotalLoss = loss;} | |
31 | Float_t GetBFiled() {return fBField;} | |
32 | Float_t GetNPrimLoss() {return fNPrimLoss;} | |
33 | Float_t GetNTotalLoss() {return fNTotalLoss;} | |
34 | protected: | |
35 | Float_t fBField; //intensity of magnetic field | |
36 | Float_t fNPrimLoss; //number of produced primary electrons per cm | |
37 | Float_t fNTotalLoss; //total number of produced electrons per cm | |
38 | ||
39 | ClassDef(AliDetectorParam,1) //parameter object for set:TPC | |
40 | }; | |
41 | ||
42 | ||
43 | ||
44 | ||
45 | #endif //ALIDPARAM_H |