]>
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 | ||
b2a60966 | 8 | //_________________________________________________________________________ |
9 | // Implementation of the PHOS manager class for fast simulations | |
10 | // Tracks particles until the reach a grossly designed PHOS module | |
11 | // Modify the particles property (momentum, energy, type) according to | |
12 | // the PHOS response function. The result is called a virtual reconstructed | |
13 | // particle. | |
14 | // | |
15 | //*-- Author: Yves Schutz (SUBATECH) | |
16 | ||
3decf5cb | 17 | // --- ROOT system --- |
e957fea8 | 18 | //#include "TClonesArray.h" |
1d1c4fb2 | 19 | #include <assert.h> |
a73f33f0 | 20 | #include "TRandom.h" |
3decf5cb | 21 | |
3a4295ee | 22 | class TVector3 ; |
23 | class TFile; | |
24 | ||
3decf5cb | 25 | // --- AliRoot header files --- |
26 | #include "AliPHOS.h" | |
3a4295ee | 27 | class AliPHOSGeometry ; |
cede8016 | 28 | class AliPHOSFastRecParticle ; |
3decf5cb | 29 | |
30 | class AliPHOSvFast : public AliPHOS { | |
31 | ||
32 | public: | |
33 | ||
3a4295ee | 34 | AliPHOSvFast() ; |
3decf5cb | 35 | AliPHOSvFast(const char *name, const char *title="") ; |
a8c47ab6 | 36 | AliPHOSvFast(const AliPHOSvFast & fast) : AliPHOS(fast) { |
88cb7938 | 37 | // cpy ctor: no implementation yet |
38 | // requested by the Coding Convention | |
39 | assert(0==1) ; | |
40 | } | |
3decf5cb | 41 | virtual ~AliPHOSvFast(void) ; |
42 | ||
a73f33f0 | 43 | void AddRecParticle(const AliPHOSFastRecParticle & rp) ; // adds primary particle to the RecParticles list |
44 | virtual void BuildGeometry(void) ; // creates the geometry for the ROOT display | |
45 | virtual void CreateGeometry(void) ; // creates the geometry for GEANT | |
3a4295ee | 46 | Float_t GetBigBox(Int_t index) const; |
a73f33f0 | 47 | virtual void Init(void) ; // does nothing |
3a4295ee | 48 | virtual Int_t IsVersion(void) const { |
49 | // Gives the version number | |
bd46a237 | 50 | return 99 ; |
3a4295ee | 51 | } |
52 | ||
88cb7938 | 53 | void MakeBranch(Option_t* opt); |
a73f33f0 | 54 | Double_t MakeEnergy(const Double_t energy) ; // makes the detected energy |
b1aa729d | 55 | TVector3 MakePosition(const Double_t energy, const TVector3 pos, const Double_t th, const Double_t ph) ; |
56 | // makes the detected position | |
57 | void MakeRecParticle(const Int_t modid, const TVector3 pos, AliPHOSFastRecParticle & rp) ; // makes a reconstructes particle from primary | |
58 | Int_t MakeType(AliPHOSFastRecParticle & rp) ; // gets the detected type of particle | |
88714635 | 59 | // gets TClonesArray of reconstructed particles |
3a4295ee | 60 | TClonesArray * FastRecParticles() const { return fFastRecParticles ; } |
f96d3dc7 | 61 | virtual void ResetPoints() ; |
62 | void ResetFastRecParticles() ; | |
b1aa729d | 63 | void SetBigBox(Int_t index, Float_t value) ; |
64 | Double_t SigmaE(Double_t energy) ; // calulates the energy resolution at a given Energy | |
7a9d98f9 | 65 | Double_t SigmaP(Double_t energy, Double_t inc) ; // calulates the position resolution at a given Energy at a given incidence |
b1aa729d | 66 | virtual void StepManager(void) ; // does the tracking through PHOS and a preliminary digitalization |
bd46a237 | 67 | virtual const TString Version(void)const { |
3a4295ee | 68 | // As IsVersion |
69 | return TString("vFast") ; | |
70 | } | |
839ffcb3 | 71 | |
88cb7938 | 72 | AliPHOSvFast & operator = (const AliPHOSvFast & ) { |
73 | // assignement operator requested by coding convention but not needed | |
74 | assert(0==1) ; | |
75 | return *this ; | |
76 | } | |
3decf5cb | 77 | |
78 | private: | |
79 | ||
a73f33f0 | 80 | Float_t fBigBoxX ; // main box containing all PHOS (EMC+PPSD) |
81 | Float_t fBigBoxY ; // main box containing all PHOS (EMC+PPSD) | |
82 | Float_t fBigBoxZ ; // main box containing all PHOS (EMC+PPSD) | |
cede8016 | 83 | TClonesArray * fFastRecParticles ; // list of particles modified by the response function |
a73f33f0 | 84 | Int_t fNRecParticles ; // number of detected particles |
85 | TRandom fRan ; // random number generator | |
b1aa729d | 86 | Double_t fResPara1 ; // parameter for the energy resolution dependence |
87 | Double_t fResPara2 ; // parameter for the energy resolution dependence | |
88 | Double_t fResPara3 ; // parameter for the energy resolution dependence | |
89 | Double_t fPosParaA0 ; // parameter for the position resolution | |
90 | Double_t fPosParaA1 ; // parameter for the position resolution | |
91 | Double_t fPosParaB0 ; // parameter for the position resolution | |
92 | Double_t fPosParaB1 ; // parameter for the position resolution | |
93 | Double_t fPosParaB2 ; // parameter for the position resolution | |
3decf5cb | 94 | |
b2a60966 | 95 | ClassDef(AliPHOSvFast,1) // Implementation of the PHOS manager class for fast simulations |
3decf5cb | 96 | |
97 | }; | |
98 | ||
99 | #endif // AliPHOSVFAST_H |