]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TRD/AliTRDv1.h
New classes added
[u/mrichter/AliRoot.git] / TRD / AliTRDv1.h
CommitLineData
8230f242 1#ifndef ALITRDV1_H
2#define ALITRDV1_H
3da30618 3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
6/* $Id$ */
7
fe4da5cc 8////////////////////////////////////////////////////////
9// Manager and hits classes for set:TRD version 1 //
10////////////////////////////////////////////////////////
5c7f4665 11
12// Energy spectrum of the delta-rays
13Double_t Ermilova(Double_t *x, Double_t *par);
851d3db9 14
851d3db9 15#include "AliTRD.h"
5c7f4665 16
793ff80c 17class TF1;
18
19class AliTRDsim;
20
851d3db9 21//_____________________________________________________________________________
fe4da5cc 22class AliTRDv1 : public AliTRD {
23
851d3db9 24 public:
25
8230f242 26 AliTRDv1();
fe4da5cc 27 AliTRDv1(const char *name, const char *title);
dd9a6ee3 28 AliTRDv1(const AliTRDv1 &trd);
8230f242 29 virtual ~AliTRDv1();
dd9a6ee3 30 AliTRDv1 &operator=(const AliTRDv1 &trd);
8230f242 31
793ff80c 32 virtual void Copy(TObject &trd);
33 virtual void CreateGeometry();
34 virtual void CreateMaterials();
35 virtual void CreateTRhit(Int_t det);
36 virtual Int_t IsVersion() const { return 1; };
37 virtual void StepManager();
38 virtual void Init();
851d3db9 39
793ff80c 40 void SetSensPlane(Int_t iplane = 0);
41 void SetSensChamber(Int_t ichamber = 0);
42 void SetSensSector(Int_t isector);
43 void SetSensSector(Int_t isector, Int_t nsector);
851d3db9 44
793ff80c 45 AliTRDsim *CreateTR();
46
47 Int_t GetSensPlane() const { return fSensPlane; };
48 Int_t GetSensChamber() const { return fSensChamber; };
49 Int_t GetSensSector() const { return fSensSector; };
50 Int_t GetSensSectorRange() const { return fSensSectorRange; };
51
52 AliTRDsim *GetTR() const { return fTR; };
851d3db9 53
54 protected:
55
f73816f5 56 Int_t fIdSensDr; // Sensitive volume identifier (drift region)
57 Int_t fIdSensAm; // Sensitive volume identifier (amplification region)
5c7f4665 58
59 Int_t fIdChamber1; // Driftchamber volume identifier
8230f242 60 Int_t fIdChamber2; // Driftchamber volume identifier
61 Int_t fIdChamber3; // Driftchamber volume identifier
5c7f4665 62
63 Int_t fSensSelect; // Switch to select only parts of the detector
64 Int_t fSensPlane; // Sensitive detector plane
65 Int_t fSensChamber; // Sensitive detector chamber
9d0b222b 66 Int_t fSensSector; // Sensitive detector sector
67 Int_t fSensSectorRange; // Sensitive detector range
5c7f4665 68
793ff80c 69 AliTRDsim *fTR; // TR simulator
70
851d3db9 71 private:
82bbf98a 72
5c7f4665 73 virtual Double_t BetheBloch(Double_t bg);
82bbf98a 74
5c7f4665 75 TF1 *fDeltaE; // Energy distribution of the delta-electrons
76
77 ClassDef(AliTRDv1,1) // Transition Radiation Detector version 1 (slow simulator)
82bbf98a 78
fe4da5cc 79};
80
81#endif