X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=TRD%2FAliTRDv1.h;h=dd5b40524c0bea960ded2b41acb288ae9cb15a2c;hb=863e9f68cfacaa390e79119817a652b4ead7982c;hp=3106a726bb7b8cfa4115674cb6966b81b637301b;hpb=d3f347ffd7b589f2319f48b2f29e1639bb02b9ab;p=u%2Fmrichter%2FAliRoot.git diff --git a/TRD/AliTRDv1.h b/TRD/AliTRDv1.h index 3106a726bb7..dd5b40524c0 100644 --- a/TRD/AliTRDv1.h +++ b/TRD/AliTRDv1.h @@ -1,30 +1,68 @@ -#ifndef TRDv1_H -#define TRDv1_H -//////////////////////////////////////////////////////// -// Manager and hits classes for set:TRD version 1 // -//////////////////////////////////////////////////////// +#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); +Double_t IntSpecGeant(Double_t *x, Double_t *par); #include "AliTRD.h" - + +class TF1; +class TTree; +class TFile; + +class AliTRDsimTR; + +//_____________________________________________________________________________ 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 DrawModule(); - -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 + virtual ~AliTRDv1(); + + virtual void Init(); + virtual Int_t IsVersion() const { return 1; } + + virtual void AddAlignableVolumes() const; + virtual void CreateGeometry(); + virtual void CreateMaterials(); + virtual void CreateTRhit(Int_t det); + + virtual void StepManager(); + + void SetStepSize(Double_t s) { fStepSize = s; } + void SetTR(Bool_t) { fTRon = kTRUE; } + + Bool_t GetTR() const { return fTRon; } + AliTRDsimTR *GetTRDsim() const { return fTR; } + + protected: + + Bool_t fTRon; // Switch for TR simulation + AliTRDsimTR *fTR; // TR simulator + + Double_t fStepSize; // Used for the fixed step size + Float_t fWion; // Ionization potential + + private: + + AliTRDv1(const AliTRDv1 &trd); + AliTRDv1 &operator=(const AliTRDv1 &trd); + + ClassDef(AliTRDv1,8) // Transition Radiation Detector version 1 (slow simulator) + }; #endif