]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PHOS/AliPHOSvFast.h
more debug output and bugfix for sub event number
[u/mrichter/AliRoot.git] / PHOS / AliPHOSvFast.h
CommitLineData
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"
a73f33f0 19#include "TRandom.h"
3decf5cb 20
3a4295ee 21class TVector3 ;
22class TFile;
23
3decf5cb 24// --- AliRoot header files ---
25#include "AliPHOS.h"
3a4295ee 26class AliPHOSGeometry ;
cede8016 27class AliPHOSFastRecParticle ;
3decf5cb 28
29class AliPHOSvFast : public AliPHOS {
30
31public:
32
3a4295ee 33 AliPHOSvFast() ;
3decf5cb 34 AliPHOSvFast(const char *name, const char *title="") ;
a8c47ab6 35 AliPHOSvFast(const AliPHOSvFast & fast) : AliPHOS(fast) {
721eb17e 36 Fatal("cpy ctor", "not implemented") ;
88cb7938 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
3a4295ee 43 Float_t GetBigBox(Int_t index) const;
a73f33f0 44 virtual void Init(void) ; // does nothing
3a4295ee 45 virtual Int_t IsVersion(void) const {
46 // Gives the version number
bd46a237 47 return 99 ;
3a4295ee 48 }
49
88cb7938 50 void MakeBranch(Option_t* opt);
a73f33f0 51 Double_t MakeEnergy(const Double_t energy) ; // makes the detected energy
b1aa729d 52 TVector3 MakePosition(const Double_t energy, const TVector3 pos, const Double_t th, const Double_t ph) ;
53 // makes the detected position
54 void MakeRecParticle(const Int_t modid, const TVector3 pos, AliPHOSFastRecParticle & rp) ; // makes a reconstructes particle from primary
55 Int_t MakeType(AliPHOSFastRecParticle & rp) ; // gets the detected type of particle
88714635 56 // gets TClonesArray of reconstructed particles
3a4295ee 57 TClonesArray * FastRecParticles() const { return fFastRecParticles ; }
f96d3dc7 58 virtual void ResetPoints() ;
59 void ResetFastRecParticles() ;
b1aa729d 60 void SetBigBox(Int_t index, Float_t value) ;
61 Double_t SigmaE(Double_t energy) ; // calulates the energy resolution at a given Energy
7a9d98f9 62 Double_t SigmaP(Double_t energy, Double_t inc) ; // calulates the position resolution at a given Energy at a given incidence
b1aa729d 63 virtual void StepManager(void) ; // does the tracking through PHOS and a preliminary digitalization
bd46a237 64 virtual const TString Version(void)const {
3a4295ee 65 // As IsVersion
66 return TString("vFast") ;
67 }
839ffcb3 68
88cb7938 69 AliPHOSvFast & operator = (const AliPHOSvFast & ) {
721eb17e 70 Fatal("operator =", "not implemented") ; return *this ;
88cb7938 71 }
3decf5cb 72
73private:
74
a73f33f0 75 Float_t fBigBoxX ; // main box containing all PHOS (EMC+PPSD)
76 Float_t fBigBoxY ; // main box containing all PHOS (EMC+PPSD)
77 Float_t fBigBoxZ ; // main box containing all PHOS (EMC+PPSD)
cede8016 78 TClonesArray * fFastRecParticles ; // list of particles modified by the response function
a73f33f0 79 Int_t fNRecParticles ; // number of detected particles
80 TRandom fRan ; // random number generator
b1aa729d 81 Double_t fResPara1 ; // parameter for the energy resolution dependence
82 Double_t fResPara2 ; // parameter for the energy resolution dependence
83 Double_t fResPara3 ; // parameter for the energy resolution dependence
84 Double_t fPosParaA0 ; // parameter for the position resolution
85 Double_t fPosParaA1 ; // parameter for the position resolution
86 Double_t fPosParaB0 ; // parameter for the position resolution
87 Double_t fPosParaB1 ; // parameter for the position resolution
88 Double_t fPosParaB2 ; // parameter for the position resolution
3decf5cb 89
b2a60966 90 ClassDef(AliPHOSvFast,1) // Implementation of the PHOS manager class for fast simulations
3decf5cb 91
92};
93
94#endif // AliPHOSVFAST_H