3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
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
15 //*-- Author: Yves Schutz (SUBATECH)
19 // --- ROOT system ---
20 #include "TClonesArray.h"
26 // --- AliRoot header files ---
28 class AliPHOSGeometry ;
29 class AliPHOSFastRecParticle ;
31 class AliPHOSvFast : public AliPHOS {
36 AliPHOSvFast(const char *name, const char *title="") ;
37 AliPHOSvFast(const AliPHOSvFast & fast) {
38 // cpy ctor: no implementation yet
39 // requested by the Coding Convention
42 virtual ~AliPHOSvFast(void) ;
44 virtual void AddHit( Int_t shunt, Int_t primary, Int_t track, Int_t id, Float_t *hits ) {
45 // useless since there are no hits
48 void AddRecParticle(const AliPHOSFastRecParticle & rp) ; // adds primary particle to the RecParticles list
49 virtual void BuildGeometry(void) ; // creates the geometry for the ROOT display
50 virtual void CreateGeometry(void) ; // creates the geometry for GEANT
51 Float_t GetBigBox(Int_t index) const;
52 virtual void Init(void) ; // does nothing
53 virtual Int_t IsVersion(void) const {
54 // Gives the version number
58 void MakeBranch(Option_t* opt, const char *file=0) ;
59 Double_t MakeEnergy(const Double_t energy) ; // makes the detected energy
60 TVector3 MakePosition(const Double_t energy, const TVector3 pos, const Double_t th, const Double_t ph) ;
61 // makes the detected position
62 void MakeRecParticle(const Int_t modid, const TVector3 pos, AliPHOSFastRecParticle & rp) ; // makes a reconstructes particle from primary
63 Int_t MakeType(AliPHOSFastRecParticle & rp) ; // gets the detected type of particle
64 // gets TClonesArray of reconstructed particles
65 TClonesArray * FastRecParticles() const { return fFastRecParticles ; }
66 virtual void ResetPoints() ;
67 void ResetFastRecParticles() ;
68 void SetBigBox(Int_t index, Float_t value) ;
69 Double_t SigmaE(Double_t energy) ; // calulates the energy resolution at a given Energy
70 Double_t SigmaP(Double_t energy, Double_t inc) ; // calulates the position resolution at a given Energy at a given incidence
71 virtual void StepManager(void) ; // does the tracking through PHOS and a preliminary digitalization
72 virtual const TString Version(void)const {
74 return TString("vFast") ;
77 AliPHOSvFast & operator = (const AliPHOSvFast & ) {
78 // assignement operator requested by coding convention but not needed
85 Float_t fBigBoxX ; // main box containing all PHOS (EMC+PPSD)
86 Float_t fBigBoxY ; // main box containing all PHOS (EMC+PPSD)
87 Float_t fBigBoxZ ; // main box containing all PHOS (EMC+PPSD)
88 TClonesArray * fFastRecParticles ; // list of particles modified by the response function
89 Int_t fNRecParticles ; // number of detected particles
90 TRandom fRan ; // random number generator
91 Double_t fResPara1 ; // parameter for the energy resolution dependence
92 Double_t fResPara2 ; // parameter for the energy resolution dependence
93 Double_t fResPara3 ; // parameter for the energy resolution dependence
94 Double_t fPosParaA0 ; // parameter for the position resolution
95 Double_t fPosParaA1 ; // parameter for the position resolution
96 Double_t fPosParaB0 ; // parameter for the position resolution
97 Double_t fPosParaB1 ; // parameter for the position resolution
98 Double_t fPosParaB2 ; // parameter for the position resolution
100 ClassDef(AliPHOSvFast,1) // Implementation of the PHOS manager class for fast simulations
104 #endif // AliPHOSVFAST_H