Line data Source code
1 : #ifndef ALITRDTESTG4_H
2 : #define ALITRDTESTG4_H
3 : /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 : * See cxx source for full Copyright notice */
5 :
6 : /* $Id$ */
7 :
8 : ////////////////////////////////////////////////////////////////////////////
9 : // //
10 : // Manager and hits classes for set: TRD version 1 //
11 : // //
12 : ////////////////////////////////////////////////////////////////////////////
13 :
14 : // Energy spectrum of the delta-rays
15 : Double_t Ermilova(Double_t *x, Double_t *par);
16 : Double_t IntSpecGeant(Double_t *x, Double_t *par);
17 :
18 : #include "AliTRD.h"
19 :
20 : class TF1;
21 : class TTree;
22 : class TFile;
23 :
24 : class AliTRDsimTR;
25 :
26 : //_____________________________________________________________________________
27 : class AliTRDtestG4 : public AliTRD {
28 :
29 : public:
30 :
31 : AliTRDtestG4();
32 : AliTRDtestG4(const char *name, const char *title);
33 : virtual ~AliTRDtestG4();
34 :
35 : virtual void Init();
36 0 : virtual Int_t IsVersion() const { return 1; }
37 :
38 : virtual void AddAlignableVolumes() const;
39 : virtual void CreateGeometry();
40 : virtual void CreateMaterials();
41 : virtual void CreateTRhit(Int_t det);
42 :
43 : virtual void StepManager();
44 :
45 0 : void SetStepSize(Double_t s) { fStepSize = s; }
46 0 : void SetTR(Bool_t tr) { fTRon = tr; }
47 0 : void SetScaleG4(Float_t f) { fScaleG4 = f; }
48 :
49 0 : Bool_t GetTR() const { return fTRon; }
50 0 : AliTRDsimTR *GetTRDsim() const { return fTR; }
51 :
52 : protected:
53 :
54 : Bool_t fTRon; // Switch for TR simulation
55 : AliTRDsimTR *fTR; // TR simulator
56 :
57 : Double_t fStepSize; // Used for the fixed step size
58 : Float_t fWion; // Ionization potential
59 : Float_t fScaleG4; // G4 scaling factor of de/dx rel. to g3
60 :
61 : private:
62 :
63 : AliTRDtestG4(const AliTRDtestG4 &trd);
64 : AliTRDtestG4 &operator=(const AliTRDtestG4 &trd);
65 :
66 12 : ClassDef(AliTRDtestG4,2) // Transition Radiation Detector (test version for G4 simulations)
67 :
68 : };
69 :
70 : #endif
|