X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=TRD%2FAliTRDv1.h;h=ae846aa6844468060db7ed2c2c6c03cd609786fe;hb=c712cb2f4fb2f464fc616e692d6a72ce3fabe10a;hp=ffbeb81a88ccbba72556ed4c8aeac9805a2dfb7c;hpb=9d0b222bc6376e05348b5d319997f64ce5ddfc73;p=u%2Fmrichter%2FAliRoot.git diff --git a/TRD/AliTRDv1.h b/TRD/AliTRDv1.h index ffbeb81a88c..ae846aa6844 100644 --- a/TRD/AliTRDv1.h +++ b/TRD/AliTRDv1.h @@ -1,5 +1,5 @@ -#ifndef TRDv1_H -#define TRDv1_H +#ifndef ALITRDV1_H +#define ALITRDV1_H /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * * See cxx source for full Copyright notice */ @@ -12,41 +12,46 @@ // Energy spectrum of the delta-rays Double_t Ermilova(Double_t *x, Double_t *par); -#include - #include "AliTRD.h" +class TF1; + +class AliTRDsim; + //_____________________________________________________________________________ class AliTRDv1 : public AliTRD { public: - AliTRDv1() {}; + AliTRDv1(); AliTRDv1(const char *name, const char *title); - ~AliTRDv1(); - virtual void CreateGeometry(); - virtual void CreateMaterials(); - virtual Int_t IsVersion() const { return 1; }; - virtual void StepManager(); - virtual void Init(); - - void SetSensPlane(Int_t iplane = 0); - void SetSensChamber(Int_t ichamber = 0); - void SetSensSector(Int_t isector); - void SetSensSector(Int_t isector, Int_t nsector); - - Int_t GetSensPlane() { return fSensPlane; }; - Int_t GetSensChamber() { return fSensChamber; }; - Int_t GetSensSector() { return fSensSector; }; - Int_t GetSensSectorRange() { return fSensSectorRange; }; + AliTRDv1(const AliTRDv1 &trd); + virtual ~AliTRDv1(); + AliTRDv1 &operator=(const AliTRDv1 &trd); - protected: + virtual void Copy(TObject &trd); + virtual void CreateGeometry(); + virtual void CreateMaterials(); + virtual void CreateTRhit(Int_t det); + virtual Int_t IsVersion() const { return 1; }; + virtual void StepManager(); + virtual void Init(); + + void SetSensPlane(Int_t iplane = 0); + void SetSensChamber(Int_t ichamber = 0); + void SetSensSector(Int_t isector); + void SetSensSector(Int_t isector, Int_t nsector); - Int_t fIdSens; // Sensitive volume identifier + AliTRDsim *CreateTR(); - Int_t fIdChamber1; // Driftchamber volume identifier - Int_t fIdChamber2; // - Int_t fIdChamber3; // + Int_t GetSensPlane() const { return fSensPlane; }; + Int_t GetSensChamber() const { return fSensChamber; }; + Int_t GetSensSector() const { return fSensSector; }; + Int_t GetSensSectorRange() const { return fSensSectorRange; }; + + AliTRDsim *GetTR() const { return fTR; }; + + protected: Int_t fSensSelect; // Switch to select only parts of the detector Int_t fSensPlane; // Sensitive detector plane @@ -54,13 +59,15 @@ class AliTRDv1 : public AliTRD { Int_t fSensSector; // Sensitive detector sector Int_t fSensSectorRange; // Sensitive detector range + AliTRDsim *fTR; // TR simulator + private: virtual Double_t BetheBloch(Double_t bg); TF1 *fDeltaE; // Energy distribution of the delta-electrons - ClassDef(AliTRDv1,1) // Transition Radiation Detector version 1 (slow simulator) + ClassDef(AliTRDv1,2) // Transition Radiation Detector version 1 (slow simulator) };