]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TRD/AliTRDv1.h
New digitisation per particle type
[u/mrichter/AliRoot.git] / TRD / AliTRDv1.h
1 #ifndef ALITRDV1_H
2 #define ALITRDV1_H
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 and hits classes for set:TRD version 1    //
10 ////////////////////////////////////////////////////////
11
12 // Energy spectrum of the delta-rays 
13 Double_t Ermilova(Double_t *x, Double_t *par);
14  
15 #include <TF1.h> 
16
17 #include "AliTRD.h"
18
19 //_____________________________________________________________________________
20 class AliTRDv1 : public AliTRD {
21
22  public:
23
24   AliTRDv1();
25   AliTRDv1(const char *name, const char *title);
26   AliTRDv1(const AliTRDv1 &trd);
27   virtual ~AliTRDv1();
28   AliTRDv1 &operator=(const AliTRDv1 &trd);
29
30   virtual void    Copy(AliTRDv1 &trd);
31   virtual void    CreateGeometry();
32   virtual void    CreateMaterials();
33   virtual Int_t   IsVersion() const    { return 1; };
34   virtual void    StepManager();
35   virtual void    Init();
36
37           void    SetSensPlane(Int_t iplane = 0);
38           void    SetSensChamber(Int_t ichamber = 0);
39           void    SetSensSector(Int_t isector);
40           void    SetSensSector(Int_t isector, Int_t nsector);
41
42           Int_t   GetSensPlane()       { return fSensPlane;       };
43           Int_t   GetSensChamber()     { return fSensChamber;     };
44           Int_t   GetSensSector()      { return fSensSector;      };
45           Int_t   GetSensSectorRange() { return fSensSectorRange; };
46
47  protected:
48
49   Int_t        fIdSens;                 // Sensitive volume identifier
50
51   Int_t        fIdChamber1;             // Driftchamber volume identifier
52   Int_t        fIdChamber2;             // Driftchamber volume identifier 
53   Int_t        fIdChamber3;             // Driftchamber volume identifier 
54
55   Int_t        fSensSelect;             // Switch to select only parts of the detector
56   Int_t        fSensPlane;              // Sensitive detector plane
57   Int_t        fSensChamber;            // Sensitive detector chamber
58   Int_t        fSensSector;             // Sensitive detector sector 
59   Int_t        fSensSectorRange;        // Sensitive detector range
60
61  private:
62
63   virtual Double_t BetheBloch(Double_t bg);
64
65   TF1         *fDeltaE;                 // Energy distribution of the delta-electrons
66    
67   ClassDef(AliTRDv1,1)                  // Transition Radiation Detector version 1 (slow simulator)
68
69 };
70
71 #endif