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