]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PHOS/AliPHOSv4.h
Moving to the new VMC naming convention
[u/mrichter/AliRoot.git] / PHOS / AliPHOSv4.h
CommitLineData
5f20d3fb 1#ifndef ALIPHOSV4_H
2#define ALIPHOSV4_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
cede8016 21class TVector3 ;
2ab0c725 22class TFile;
23
5f20d3fb 24// --- AliRoot header files ---
25#include "AliPHOS.h"
cede8016 26class AliPHOSGeometry ;
27class AliPHOSFastRecParticle ;
5f20d3fb 28
29class AliPHOSv4 : public AliPHOS {
30
31public:
32
735e58f1 33 AliPHOSv4() ;
25132bb9 34 AliPHOSv4(const char *name, const char *title="") ;
5f20d3fb 35 AliPHOSv4(const AliPHOSv4 & fast) {
36 // cpy ctor: no implementation yet
37 // requested by the Coding Convention
88cb7938 38 assert(0==1) ;
5f20d3fb 39 }
40 virtual ~AliPHOSv4(void) ;
41
88bdfa12 42 virtual void AddHit( Int_t shunt, Int_t primary, Int_t track, Int_t id, Float_t *hits ) {
43 // useless since there are no hits
88cb7938 44 assert(0==1) ;
88bdfa12 45 }
5f20d3fb 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
baef0810 49 Float_t GetBigBox(Int_t index) const;
5f20d3fb 50 virtual void Init(void) ; // does nothing
e04976bd 51 virtual Int_t IsVersion(void) const {
88bdfa12 52 // Gives the version number
53 return 4 ;
54 }
55
9e1a0ddb 56 void MakeBranch(Option_t* opt, const char *file=0) ;
5f20d3fb 57 Double_t MakeEnergy(const Double_t energy) ; // makes the detected energy
58 TVector3 MakePosition(const Double_t energy, const TVector3 pos, const Double_t th, const Double_t ph) ;
59 // makes the detected position
60 void MakeRecParticle(const Int_t modid, const 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
baef0810 63 TClonesArray * FastRecParticles() const { return fFastRecParticles ; }
5f20d3fb 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
9d496c8c 68 Double_t SigmaP(Double_t energy, Double_t inc) ; // calulates the position resolution at a given Energy at a given incidence
5f20d3fb 69 virtual void StepManager(void) ; // does the tracking through PHOS and a preliminary digitalization
bd46a237 70 virtual const TString Version(void)const {
88bdfa12 71 // As IsVersion
72 return TString("v4") ;
73 }
5f20d3fb 74
2f04ed65 75 AliPHOSv4 & operator = (const AliPHOSv4 & ) {
baef0810 76 // assignement operator requested by coding convention but not needed
88cb7938 77 assert(0==1) ;
5f20d3fb 78 return *this ;
79 }
80
81private:
82
83 Float_t fBigBoxX ; // main box containing all PHOS (EMC+PPSD)
84 Float_t fBigBoxY ; // main box containing all PHOS (EMC+PPSD)
85 Float_t fBigBoxZ ; // main box containing all PHOS (EMC+PPSD)
cede8016 86 TClonesArray * fFastRecParticles ; // list of particles modified by the response function
5f20d3fb 87 Int_t fNRecParticles ; // number of detected particles
88 TRandom fRan ; // random number generator
89 Double_t fResPara1 ; // parameter for the energy resolution dependence
90 Double_t fResPara2 ; // parameter for the energy resolution dependence
91 Double_t fResPara3 ; // parameter for the energy resolution dependence
92 Double_t fPosParaA0 ; // parameter for the position resolution
93 Double_t fPosParaA1 ; // parameter for the position resolution
94 Double_t fPosParaB0 ; // parameter for the position resolution
95 Double_t fPosParaB1 ; // parameter for the position resolution
96 Double_t fPosParaB2 ; // parameter for the position resolution
97
98 ClassDef(AliPHOSv4,1) // Implementation of the PHOS manager class for fast simulations
99
100};
101
102#endif // AliPHOSV4_H