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