]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PHOS/AliPHOSvFast.h
Removed global's to comply with Coding Conventions
[u/mrichter/AliRoot.git] / PHOS / AliPHOSvFast.h
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 //_________________________________________________________________________
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
17 // --- ROOT system ---
18 #include "TClonesArray.h"
19 #include "TRandom.h"
20
21 // --- AliRoot header files ---
22 #include "AliPHOS.h"
23 #include "AliPHOSGeometry.h"
24 #include "AliPHOSPID.h"
25 #include "AliPHOSFastRecParticle.h"
26
27 class AliPHOSvFast : public AliPHOS {
28
29 public:
30
31   AliPHOSvFast(void) ;
32   AliPHOSvFast(const char *name, const char *title="") ;
33   virtual ~AliPHOSvFast(void) ;
34
35   void           AddRecParticle(const AliPHOSFastRecParticle & rp) ; // adds primary particle to the RecParticles list
36   virtual void   BuildGeometry(void) ;                               // creates the geometry for the ROOT display
37   virtual void   CreateGeometry(void) ;                              // creates the geometry for GEANT
38   Float_t        GetBigBox(Int_t index) ;                             
39   virtual AliPHOSGeometry * GetGeometry() { return fGeom ; }  
40   virtual void   Init(void) ;                                        // does nothing
41   Int_t   IsVersion(void) const { return -1 ; }
42   void    MakeBranch(Option_t* opt) ;
43   Double_t MakeEnergy(const Double_t energy) ;                       // makes the detected energy    
44   TVector3 MakePosition(const Double_t energy, const TVector3 pos, const Double_t th, const Double_t ph) ; 
45                                                                      // makes the detected position
46   void MakeRecParticle(const Int_t modid, const TVector3 pos, AliPHOSFastRecParticle & rp) ;  // makes a reconstructes particle from primary
47   Int_t   MakeType(AliPHOSFastRecParticle & rp) ;                    // gets the detected type of particle
48   // gets TClonesArray of reconstructed particles
49   AliPHOSFastRecParticle::FastRecParticlesList * FastRecParticles() { return fFastRecParticles ; } 
50   virtual void ResetPoints() ; 
51   void         ResetFastRecParticles() ; 
52   void         SetBigBox(Int_t index, Float_t value) ;                             
53   Double_t     SigmaE(Double_t energy) ;    // calulates the energy resolution at a given Energy                           
54   Double_t     SigmaP(Double_t energy, Int_t inc) ; // calulates the position resolution at a given Energy at a given incidence                           
55   virtual void StepManager(void) ;          // does the tracking through PHOS and a preliminary digitalization
56   
57 private:
58   
59   Float_t fBigBoxX ;                         // main box containing all PHOS (EMC+PPSD)
60   Float_t fBigBoxY ;                         // main box containing all PHOS (EMC+PPSD)
61   Float_t fBigBoxZ ;                         // main box containing all PHOS (EMC+PPSD)
62   AliPHOSFastRecParticle::FastRecParticlesList * fFastRecParticles ; // list of particles modified by the response function 
63   AliPHOSGeometry * fGeom ;                  // geometry definition
64   Int_t fNRecParticles ;                     // number of detected particles
65   TRandom fRan ;                             // random number generator
66   Double_t fResPara1 ;                       // parameter for the energy resolution dependence  
67   Double_t fResPara2 ;                       // parameter for the energy resolution dependence  
68   Double_t fResPara3 ;                       // parameter for the energy resolution dependence 
69   Double_t fPosParaA0 ;                      // parameter for the position resolution
70   Double_t fPosParaA1 ;                      // parameter for the position resolution 
71   Double_t fPosParaB0 ;                      // parameter for the position resolution 
72   Double_t fPosParaB1 ;                      // parameter for the position resolution 
73   Double_t fPosParaB2 ;                      // parameter for the position resolution
74
75   ClassDef(AliPHOSvFast,1)  //  Implementation of the PHOS manager class for fast simulations  
76
77 };
78
79 #endif // AliPHOSVFAST_H