AliRoot Core  3dc7879 (3dc7879)
AliDetectorParam.h
Go to the documentation of this file.
1 #ifndef ALIDETECTORPARAM_H
2 #define ALIDETECTORPARAM_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice */
5 
8 
9 #include <TNamed.h>
10 class AliDetectorParam : public TNamed {
11 public:
13  virtual Int_t GetNSegmentsTotal() const {return 0;} //get total nuber of segments
14  virtual Bool_t Get1DIndex(Int_t */*index*/, const Int_t * /*arrindex*/) {return kFALSE;}
15  //transform multidimensional index to one dimesional
16  virtual Bool_t GetNDIndex(const Int_t * /*index1*/, Int_t * /*arrIndex*/) {return kFALSE;}
17  //trasnform one dimesional index to multidimesional
18  virtual Float_t GetPrimaryLoss(Float_t */*x*/, Int_t */*index*/, Float_t */*angle*/){return 0;}
19  virtual Float_t GetTotalLoss(Float_t */*x*/, Int_t */*index*/, Float_t */*angle*/){return 0;}
20  virtual void GetClusterSize(Float_t */*x*/, Int_t */*index*/, Float_t */*angle*/, Int_t /*mode*/, Float_t */*sigma*/){;}
21  virtual void GetSpaceResolution(Float_t */*x*/, Int_t */*index*/, Float_t */*angle*/, Float_t /*amplitude*/, Int_t /*mode*/,
22  Float_t */*sigma*/){;}
23  virtual Float_t * GetAnglesAccMomentum(Float_t *x, Int_t * index, Float_t* momentum, Float_t *angle);
24 
25  void SetBField(Float_t b){fBField=b;} //set magnetic field intensity
26  void SetNPrimLoss(Float_t loss) {fNPrimLoss = loss;}
27  void SetNTotalLoss(Float_t loss) {fNTotalLoss = loss;}
28  Float_t GetBFiled() {return fBField;}
29  Float_t GetNPrimLoss() {return fNPrimLoss;}
30  Float_t GetNTotalLoss() {return fNTotalLoss;}
31 protected:
32  Float_t fBField;
33  Float_t fNPrimLoss;
34  Float_t fNTotalLoss;
35 
36  ClassDef(AliDetectorParam,1) //parameter object for set:TPC
37 };
38 
39 
40 
41 
42 #endif //ALIDPARAM_H
void SetBField(Float_t b)
TBrowser b
Definition: RunAnaESD.C:12
virtual Bool_t GetNDIndex(const Int_t *, Int_t *)
virtual Int_t GetNSegmentsTotal() const
Manager class for detector parameters.
void SetNTotalLoss(Float_t loss)
virtual Float_t * GetAnglesAccMomentum(Float_t *x, Int_t *index, Float_t *momentum, Float_t *angle)
virtual Float_t GetTotalLoss(Float_t *, Int_t *, Float_t *)
Float_t fNPrimLoss
number of produced primary electrons per cm
virtual Bool_t Get1DIndex(Int_t *, const Int_t *)
virtual void GetSpaceResolution(Float_t *, Int_t *, Float_t *, Float_t, Int_t, Float_t *)
Float_t fBField
intensity of magnetic field
Float_t fNTotalLoss
total number of produced electrons per cm
void SetNPrimLoss(Float_t loss)
virtual void GetClusterSize(Float_t *, Int_t *, Float_t *, Int_t, Float_t *)
Float_t GetNTotalLoss()
Float_t GetNPrimLoss()
virtual Float_t GetPrimaryLoss(Float_t *, Int_t *, Float_t *)