]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TRD/AliTRDv2.h
Drawing macros added.
[u/mrichter/AliRoot.git] / TRD / AliTRDv2.h
1 #ifndef TRDv2_H
2 #define TRDv2_H
3 ////////////////////////////////////////////////////////
4 //  Manager and hits classes for set:TRD version 2    //
5 ////////////////////////////////////////////////////////
6  
7 #include <TF1.h> 
8 #include "AliTRD.h"
9
10 // Energy spectrum of the delta-rays 
11 Double_t Ermilova(Double_t *x, Double_t *par);
12
13 class AliTRDv2 : public AliTRD {
14
15 public:
16   AliTRDv2() {}
17   AliTRDv2(const char *name, const char *title);
18   virtual      ~AliTRDv2();
19   virtual void  CreateGeometry();
20   virtual void  CreateMaterials();
21   virtual Int_t IsVersion() const {return 2;}
22   virtual void  StepManager();
23   virtual void  Init();
24   virtual void  DrawModule();
25
26 protected:
27   Int_t        fIdSensI[ncham];  // Sensitive volume identifier (inner chambers)
28   Int_t        fIdSensN[ncham];  // Sensitive volume identifier (neighbouring chambers)
29   Int_t        fIdSensO[ncham];  // Sensitive volume identifier (outer chambers)
30
31 private:
32   virtual Double_t BetheBloch(Double_t bg);
33
34   TF1         *fDeltaE;          // Energy distribution of the delta-electrons
35   
36   ClassDef(AliTRDv2,1)           // Transition Radiation Detector version 2
37 };
38
39 #endif