]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TRD/AliTRDv1.h
reveng tag 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
15#include <TF1.h>
16
17#include "AliTRD.h"
5c7f4665 18
851d3db9 19//_____________________________________________________________________________
fe4da5cc 20class AliTRDv1 : public AliTRD {
21
851d3db9 22 public:
23
8230f242 24 AliTRDv1();
fe4da5cc 25 AliTRDv1(const char *name, const char *title);
8230f242 26 AliTRDv1(AliTRDv1 &trd);
27 virtual ~AliTRDv1();
28
29 virtual void Copy(AliTRDv1 &trd);
5c7f4665 30 virtual void CreateGeometry();
31 virtual void CreateMaterials();
8230f242 32 virtual Int_t IsVersion() const { return 1; };
5c7f4665 33 virtual void StepManager();
851d3db9 34 virtual void Init();
35
6f1e466d 36 void SetSensPlane(Int_t iplane = 0);
37 void SetSensChamber(Int_t ichamber = 0);
9d0b222b 38 void SetSensSector(Int_t isector);
39 void SetSensSector(Int_t isector, Int_t nsector);
851d3db9 40
8230f242 41 Int_t GetSensPlane() { return fSensPlane; };
42 Int_t GetSensChamber() { return fSensChamber; };
43 Int_t GetSensSector() { return fSensSector; };
9d0b222b 44 Int_t GetSensSectorRange() { return fSensSectorRange; };
851d3db9 45
8230f242 46 inline AliTRDv1 &operator=(AliTRDv1 &trd);
47
851d3db9 48 protected:
49
5c7f4665 50 Int_t fIdSens; // Sensitive volume identifier
51
52 Int_t fIdChamber1; // Driftchamber volume identifier
8230f242 53 Int_t fIdChamber2; // Driftchamber volume identifier
54 Int_t fIdChamber3; // Driftchamber volume identifier
5c7f4665 55
56 Int_t fSensSelect; // Switch to select only parts of the detector
57 Int_t fSensPlane; // Sensitive detector plane
58 Int_t fSensChamber; // Sensitive detector chamber
9d0b222b 59 Int_t fSensSector; // Sensitive detector sector
60 Int_t fSensSectorRange; // Sensitive detector range
5c7f4665 61
851d3db9 62 private:
82bbf98a 63
5c7f4665 64 virtual Double_t BetheBloch(Double_t bg);
82bbf98a 65
5c7f4665 66 TF1 *fDeltaE; // Energy distribution of the delta-electrons
67
68 ClassDef(AliTRDv1,1) // Transition Radiation Detector version 1 (slow simulator)
82bbf98a 69
fe4da5cc 70};
71
8230f242 72//_____________________________________________________________________________
73AliTRDv1 &AliTRDv1::operator=(AliTRDv1 &trd)
74{
75 //
76 // Assignment operator
77 //
78
79 if (this != &trd) trd.Copy(*this);
80 return *this;
81
82}
83
fe4da5cc 84#endif