]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TPC/TPCbase/AliDetectorParam.h
doxy: TPC/TPCbase converted
[u/mrichter/AliRoot.git] / TPC / TPCbase / AliDetectorParam.h
CommitLineData
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
7d855b04 6/// \class AliDetectorParam
7/// \brief Manager class for detector parameters
cc80f89e 8
cc80f89e 9#include <TNamed.h>
10class AliDetectorParam : public TNamed {
11public:
179c6296 12 AliDetectorParam();
73042f01 13 virtual Int_t GetNSegmentsTotal() const {return 0;} //get total nuber of segments
7d855b04 14 virtual Bool_t Get1DIndex(Int_t */*index*/, const Int_t * /*arrindex*/) {return kFALSE;}
cc80f89e 15 //transform multidimensional index to one dimesional
176aff27 16 virtual Bool_t GetNDIndex(const Int_t * /*index1*/, Int_t * /*arrIndex*/) {return kFALSE;}
cc80f89e 17 //trasnform one dimesional index to multidimesional
176aff27 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*/){;}
7d855b04 21 virtual void GetSpaceResolution(Float_t */*x*/, Int_t */*index*/, Float_t */*angle*/, Float_t /*amplitude*/, Int_t /*mode*/,
176aff27 22 Float_t */*sigma*/){;}
7d855b04 23 virtual Float_t * GetAnglesAccMomentum(Float_t *x, Int_t * index, Float_t* momentum, Float_t *angle);
cc80f89e 24
7d855b04 25 void SetBField(Float_t b){fBField=b;} //set magnetic field intensity
cc80f89e 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;}
31protected:
7d855b04 32 Float_t fBField; ///< intensity of magnetic field
33 Float_t fNPrimLoss; ///< number of produced primary electrons per cm
34 Float_t fNTotalLoss; ///< total number of produced electrons per cm
cc80f89e 35
36 ClassDef(AliDetectorParam,1) //parameter object for set:TPC
37};
38
39
40
41
42#endif //ALIDPARAM_H