X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;ds=sidebyside;f=TRD%2FAliTRDv1.h;h=dd5b40524c0bea960ded2b41acb288ae9cb15a2c;hb=2f9129dda03eb6e7a74b1b81360d965de5bf1613;hp=7365aaa115d12b769869dff564fe771535af5bbc;hpb=a328fff95a9650c3fca6c36d5990277fcb89afa8;p=u%2Fmrichter%2FAliRoot.git diff --git a/TRD/AliTRDv1.h b/TRD/AliTRDv1.h index 7365aaa115d..dd5b40524c0 100644 --- a/TRD/AliTRDv1.h +++ b/TRD/AliTRDv1.h @@ -5,9 +5,11 @@ /* $Id$ */ -//////////////////////////////////////////////////////// -// Manager and hits classes for set:TRD version 1 // -//////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////// +// // +// Manager and hits classes for set: TRD version 1 // +// // +//////////////////////////////////////////////////////////////////////////// // Energy spectrum of the delta-rays Double_t Ermilova(Double_t *x, Double_t *par); @@ -16,8 +18,10 @@ Double_t IntSpecGeant(Double_t *x, Double_t *par); #include "AliTRD.h" class TF1; +class TTree; +class TFile; -class AliTRDsim; +class AliTRDsimTR; //_____________________________________________________________________________ class AliTRDv1 : public AliTRD { @@ -26,61 +30,38 @@ class AliTRDv1 : public AliTRD { AliTRDv1(); AliTRDv1(const char *name, const char *title); - AliTRDv1(const AliTRDv1 &trd); virtual ~AliTRDv1(); - AliTRDv1 &operator=(const AliTRDv1 &trd); - 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(); + virtual void Init(); + virtual Int_t IsVersion() const { return 1; } - void StepManagerErmilova(); - void StepManagerGeant(); - void StepManagerFixedStep(); - void SelectStepManager(Int_t t); - void SetStepSize(Double_t s) { fStepSize = s; }; + virtual void AddAlignableVolumes() const; + virtual void CreateGeometry(); + virtual void CreateMaterials(); + virtual void CreateTRhit(Int_t det); - 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); + virtual void StepManager(); - AliTRDsim *CreateTR(); + void SetStepSize(Double_t s) { fStepSize = s; } + void SetTR(Bool_t) { fTRon = kTRUE; } - 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; }; + Bool_t GetTR() const { return fTRon; } + AliTRDsimTR *GetTRDsim() const { return fTR; } protected: - void *StepManagerEntity(); - - Int_t fSensSelect; // Switch to select only parts of the detector - Int_t fSensPlane; // Sensitive detector plane - Int_t fSensChamber; // Sensitive detector chamber - Int_t fSensSector; // Sensitive detector sector - Int_t fSensSectorRange; // Sensitive detector range + Bool_t fTRon; // Switch for TR simulation + AliTRDsimTR *fTR; // TR simulator - AliTRDsim *fTR; // TR simulator - - Int_t fTypeOfStepManager; // Type of Step Manager. - Double_t fStepSize; // Used for the fixed step size + Double_t fStepSize; // Used for the fixed step size + Float_t fWion; // Ionization potential private: - virtual Double_t BetheBloch(Double_t bg); + AliTRDv1(const AliTRDv1 &trd); + AliTRDv1 &operator=(const AliTRDv1 &trd); - TF1 *fDeltaE; // Energy distribution of the delta-electrons (Ermilova) - TF1 *fDeltaG; // for StepManagerGeant - - ClassDef(AliTRDv1,3) // Transition Radiation Detector version 1 (slow simulator) + ClassDef(AliTRDv1,8) // Transition Radiation Detector version 1 (slow simulator) };