]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TRD/AliTRDv2.h
New TRD version now inserted in the space frame
[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  SetSensPlane(Int_t iplane = 0);
24   virtual void  SetSensChamber(Int_t ichamber = 0);
25   virtual void  SetSensSector(Int_t isector = 0);
26   virtual void  Init();
27
28 protected:
29   Int_t        fIdSens;          // Sensitive volume identifier
30
31   Int_t        fIdSpace1;        // Spaceframe volume identifier
32   Int_t        fIdSpace2;        // 
33   Int_t        fIdSpace3;        // 
34
35   Int_t        fIdChamber1;      // Driftchamber volume identifier
36   Int_t        fIdChamber2;      // 
37   Int_t        fIdChamber3;      // 
38
39   Int_t        fSensSelect;      // Switch to select only parts of the detector
40   Int_t        fSensPlane;       // Sensitive detector plane
41   Int_t        fSensChamber;     // Sensitive detector chamber
42   Int_t        fSensSector;      // Sensitive detector sector
43
44 private:
45   virtual Double_t BetheBloch(Double_t bg);
46
47   TF1         *fDeltaE;          // Energy distribution of the delta-electrons
48   
49   ClassDef(AliTRDv2,1)           // Transition Radiation Detector version 2
50
51 };
52
53 #endif