]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TRD/AliTRDv1.h
d14fb00d03edd6ac499533c9a5c0d1fe8e4feec5
[u/mrichter/AliRoot.git] / TRD / AliTRDv1.h
1 #ifndef TRDv1_H
2 #define TRDv1_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();
27   virtual void    CreateGeometry();
28   virtual void    CreateMaterials();
29   virtual Int_t   IsVersion() const { return 1; };
30   virtual void    StepManager();
31   virtual void    Init();
32
33           void    SetSensPlane(Int_t iplane = 0);
34           void    SetSensChamber(Int_t ichamber = 0);
35           void    SetSensSector(Int_t isector = 0);
36
37           Int_t   GetSensPlane()   { return fSensPlane;   };
38           Int_t   GetSensChamber() { return fSensChamber; };
39           Int_t   GetSensSector()  { return fSensSector;  };
40
41  protected:
42
43   Int_t        fIdSens;                 // Sensitive volume identifier
44
45   Int_t        fIdChamber1;             // Driftchamber volume identifier
46   Int_t        fIdChamber2;             // 
47   Int_t        fIdChamber3;             // 
48
49   Int_t        fSensSelect;             // Switch to select only parts of the detector
50   Int_t        fSensPlane;              // Sensitive detector plane
51   Int_t        fSensChamber;            // Sensitive detector chamber
52   Int_t        fSensSector;             // Sensitive detector sector
53
54  private:
55
56   virtual Double_t BetheBloch(Double_t bg);
57
58   TF1         *fDeltaE;                 // Energy distribution of the delta-electrons
59    
60   ClassDef(AliTRDv1,1)                  // Transition Radiation Detector version 1 (slow simulator)
61
62 };
63
64 #endif