]>
Commit | Line | Data |
---|---|---|
3decf5cb | 1 | #ifndef ALIPHOSVFAST_H |
2 | #define ALIPHOSVFAST_H | |
3 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
4 | * See cxx source for full Copyright notice */ | |
5 | ||
3decf5cb | 6 | /* $Id$ */ |
7 | ||
702ab87e | 8 | /* History of cvs commits: |
9 | * | |
10 | * $Log$ | |
e939a978 | 11 | * Revision 1.26 2006/09/13 07:31:01 kharlov |
12 | * Effective C++ corrections (T.Pocheptsov) | |
13 | * | |
43fbaae1 | 14 | * Revision 1.25 2005/05/28 14:19:05 schutz |
15 | * Compilation warnings fixed by T.P. | |
16 | * | |
702ab87e | 17 | */ |
18 | ||
b2a60966 | 19 | //_________________________________________________________________________ |
20 | // Implementation of the PHOS manager class for fast simulations | |
21 | // Tracks particles until the reach a grossly designed PHOS module | |
22 | // Modify the particles property (momentum, energy, type) according to | |
23 | // the PHOS response function. The result is called a virtual reconstructed | |
24 | // particle. | |
25 | // | |
26 | //*-- Author: Yves Schutz (SUBATECH) | |
27 | ||
3decf5cb | 28 | // --- ROOT system --- |
e957fea8 | 29 | //#include "TClonesArray.h" |
a73f33f0 | 30 | #include "TRandom.h" |
3decf5cb | 31 | |
3a4295ee | 32 | class TVector3 ; |
33 | class TFile; | |
34 | ||
3decf5cb | 35 | // --- AliRoot header files --- |
36 | #include "AliPHOS.h" | |
3a4295ee | 37 | class AliPHOSGeometry ; |
cede8016 | 38 | class AliPHOSFastRecParticle ; |
3decf5cb | 39 | |
40 | class AliPHOSvFast : public AliPHOS { | |
41 | ||
42 | public: | |
43 | ||
3a4295ee | 44 | AliPHOSvFast() ; |
3decf5cb | 45 | AliPHOSvFast(const char *name, const char *title="") ; |
43fbaae1 | 46 | |
3decf5cb | 47 | virtual ~AliPHOSvFast(void) ; |
48 | ||
a73f33f0 | 49 | void AddRecParticle(const AliPHOSFastRecParticle & rp) ; // adds primary particle to the RecParticles list |
50 | virtual void BuildGeometry(void) ; // creates the geometry for the ROOT display | |
51 | virtual void CreateGeometry(void) ; // creates the geometry for GEANT | |
3a4295ee | 52 | Float_t GetBigBox(Int_t index) const; |
a73f33f0 | 53 | virtual void Init(void) ; // does nothing |
3a4295ee | 54 | virtual Int_t IsVersion(void) const { |
55 | // Gives the version number | |
bd46a237 | 56 | return 99 ; |
3a4295ee | 57 | } |
58 | ||
88cb7938 | 59 | void MakeBranch(Option_t* opt); |
fc7e2f43 | 60 | Double_t MakeEnergy(Double_t energy) ; // makes the detected energy |
61 | TVector3 MakePosition(Double_t energy, TVector3 pos, Double_t th, Double_t ph) ; | |
b1aa729d | 62 | // makes the detected position |
fc7e2f43 | 63 | void MakeRecParticle(Int_t modid, TVector3 pos, AliPHOSFastRecParticle & rp) ; // makes a reconstructes particle from primary |
b1aa729d | 64 | Int_t MakeType(AliPHOSFastRecParticle & rp) ; // gets the detected type of particle |
88714635 | 65 | // gets TClonesArray of reconstructed particles |
3a4295ee | 66 | TClonesArray * FastRecParticles() const { return fFastRecParticles ; } |
f96d3dc7 | 67 | virtual void ResetPoints() ; |
68 | void ResetFastRecParticles() ; | |
b1aa729d | 69 | void SetBigBox(Int_t index, Float_t value) ; |
70 | Double_t SigmaE(Double_t energy) ; // calulates the energy resolution at a given Energy | |
7a9d98f9 | 71 | Double_t SigmaP(Double_t energy, Double_t inc) ; // calulates the position resolution at a given Energy at a given incidence |
b1aa729d | 72 | virtual void StepManager(void) ; // does the tracking through PHOS and a preliminary digitalization |
bd46a237 | 73 | virtual const TString Version(void)const { |
3a4295ee | 74 | // As IsVersion |
75 | return TString("vFast") ; | |
76 | } | |
839ffcb3 | 77 | |
3decf5cb | 78 | private: |
e939a978 | 79 | AliPHOSvFast(AliPHOSvFast & fast); |
80 | AliPHOSvFast & operator = (const AliPHOSvFast & ); | |
3decf5cb | 81 | |
a73f33f0 | 82 | Float_t fBigBoxX ; // main box containing all PHOS (EMC+PPSD) |
83 | Float_t fBigBoxY ; // main box containing all PHOS (EMC+PPSD) | |
84 | Float_t fBigBoxZ ; // main box containing all PHOS (EMC+PPSD) | |
cede8016 | 85 | TClonesArray * fFastRecParticles ; // list of particles modified by the response function |
a73f33f0 | 86 | Int_t fNRecParticles ; // number of detected particles |
87 | TRandom fRan ; // random number generator | |
b1aa729d | 88 | Double_t fResPara1 ; // parameter for the energy resolution dependence |
89 | Double_t fResPara2 ; // parameter for the energy resolution dependence | |
90 | Double_t fResPara3 ; // parameter for the energy resolution dependence | |
91 | Double_t fPosParaA0 ; // parameter for the position resolution | |
92 | Double_t fPosParaA1 ; // parameter for the position resolution | |
93 | Double_t fPosParaB0 ; // parameter for the position resolution | |
94 | Double_t fPosParaB1 ; // parameter for the position resolution | |
95 | Double_t fPosParaB2 ; // parameter for the position resolution | |
3decf5cb | 96 | |
b2a60966 | 97 | ClassDef(AliPHOSvFast,1) // Implementation of the PHOS manager class for fast simulations |
3decf5cb | 98 | |
99 | }; | |
100 | ||
101 | #endif // AliPHOSVFAST_H |