X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=TRD%2FAliTRDv1.h;h=2745ecb8667ae5cfbdf3060b1e3e5179547aa7a3;hb=75f4f395cb8871c2cc4787641b1cb5557f23d82b;hp=ca93465f056b49bd337337fb2a6ddd38c60ac6cd;hpb=fe4da5cc22f890b04843f1aebec0f1bf4f9c3fc9;p=u%2Fmrichter%2FAliRoot.git diff --git a/TRD/AliTRDv1.h b/TRD/AliTRDv1.h index ca93465f056..2745ecb8667 100644 --- a/TRD/AliTRDv1.h +++ b/TRD/AliTRDv1.h @@ -1,30 +1,71 @@ -#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 */ + +/* $Id$ */ + //////////////////////////////////////////////////////// // Manager and hits classes for set:TRD version 1 // //////////////////////////////////////////////////////// + +// Energy spectrum of the delta-rays +Double_t Ermilova(Double_t *x, Double_t *par); +#include + #include "AliTRD.h" - + +//_____________________________________________________________________________ class AliTRDv1 : public AliTRD { -public: - AliTRDv1() {} + public: + + AliTRDv1(); AliTRDv1(const char *name, const char *title); - virtual ~AliTRDv1() {} - virtual void CreateGeometry(); - virtual void CreateMaterials(); - virtual Int_t IsVersion() const {return 1;} - virtual void StepManager(); - virtual void Init(); - virtual void DrawDetector(); - -protected: - Int_t fIdSens1; // 1st sensitive volume identifier - Int_t fIdSens2; // 2nd sensitive volume identifier - Int_t fIdSens3; // 3rd sensitive volume identifier - - ClassDef(AliTRDv1,1) // Transition Radiation Detector version 1 + AliTRDv1(const AliTRDv1 &trd); + virtual ~AliTRDv1(); + AliTRDv1 &operator=(const AliTRDv1 &trd); + + virtual void Copy(TObject &trd); + 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; }; + + protected: + + Int_t fIdSens; // Sensitive volume identifier + + Int_t fIdChamber1; // Driftchamber volume identifier + Int_t fIdChamber2; // Driftchamber volume identifier + Int_t fIdChamber3; // Driftchamber volume identifier + + 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 + + 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) + }; #endif