New TRD version now inserted in the space frame
[u/mrichter/AliRoot.git] / TRD / AliTRDv2.h
CommitLineData
fe4da5cc 1#ifndef TRDv2_H
2#define TRDv2_H
3////////////////////////////////////////////////////////
4// Manager and hits classes for set:TRD version 2 //
5////////////////////////////////////////////////////////
6
d3f347ff 7#include <TF1.h>
fe4da5cc 8#include "AliTRD.h"
9
d3f347ff 10// Energy spectrum of the delta-rays
11Double_t Ermilova(Double_t *x, Double_t *par);
12
fe4da5cc 13class AliTRDv2 : public AliTRD {
14
15public:
16 AliTRDv2() {}
17 AliTRDv2(const char *name, const char *title);
d3f347ff 18 virtual ~AliTRDv2();
fe4da5cc 19 virtual void CreateGeometry();
20 virtual void CreateMaterials();
21 virtual Int_t IsVersion() const {return 2;}
22 virtual void StepManager();
82bbf98a 23 virtual void SetSensPlane(Int_t iplane = 0);
24 virtual void SetSensChamber(Int_t ichamber = 0);
25 virtual void SetSensSector(Int_t isector = 0);
fe4da5cc 26 virtual void Init();
fe4da5cc 27
28protected:
82bbf98a 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
d3f347ff 43
fe4da5cc 44private:
d3f347ff 45 virtual Double_t BetheBloch(Double_t bg);
46
47 TF1 *fDeltaE; // Energy distribution of the delta-electrons
fe4da5cc 48
d3f347ff 49 ClassDef(AliTRDv2,1) // Transition Radiation Detector version 2
82bbf98a 50
fe4da5cc 51};
52
53#endif