c9b2f104 |
1 | #ifndef ALIEMCALPIDV1_H |
2 | #define ALIEMCALPIDV1_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 | //_________________________________________________________________________ |
10 | // Implementation version v1 of the EMCAL particle identifier |
11 | // Identification is based on information from CPV and EMC |
12 | // Oh yeah |
13 | //*-- Author: Yves Schutz (SUBATECH), Gustavo Conesa. |
14 | |
15 | // --- ROOT system --- |
16 | //class TFormula ; |
17 | class TVector3 ; |
88cb7938 |
18 | class TMatrix ; |
c9b2f104 |
19 | class TPrincipal ; |
20 | |
21 | // --- Standard library --- |
22 | |
23 | // --- AliRoot header files --- |
c9b2f104 |
24 | class AliEMCALRecPoint ; |
25 | |
26 | #include "AliEMCALPID.h" |
27 | |
28 | class AliEMCALPIDv1 : public AliEMCALPID { |
29 | |
30 | public: |
31 | |
32 | AliEMCALPIDv1() ; // ctor |
88cb7938 |
33 | AliEMCALPIDv1(const TString alirunFileNameFile, const TString eventFolderName = AliConfig::fgkDefaultEventFolderName) ; |
34 | AliEMCALPIDv1(const AliEMCALPIDv1 & pid) ; // cpy ctor |
35 | |
c9b2f104 |
36 | virtual ~AliEMCALPIDv1() ; // dtor |
37 | |
38 | virtual void Exec(Option_t * option) ; |
88cb7938 |
39 | |
c9b2f104 |
40 | virtual const Int_t GetRecParticlesInRun() const {return fRecParticlesInRun ;} |
af9bd3cf |
41 | Float_t GetCalibratedEnergy (Float_t e) const; |
70a93198 |
42 | TVector3 GetMomentumDirection(AliEMCALRecPoint * emc)const ; |
af9bd3cf |
43 | |
9e5d2067 |
44 | virtual void Print(Option_t * option) const ; |
c9b2f104 |
45 | |
46 | //To turn on or off the Pi0 analysis |
d64c959b |
47 | Bool_t GetPi0Analysis() const {return fPi0Analysis;} |
c9b2f104 |
48 | void SetPi0Analysis(Bool_t turnonoff){ fPi0Analysis = turnonoff; } |
7b8d3392 |
49 | |
c9b2f104 |
50 | private: |
51 | |
52 | const TString BranchName() const ; |
53 | virtual void Init() ; |
54 | virtual void InitParameters() ; |
55 | void MakeRecParticles(void ) ; |
56 | void PrintRecParticles(Option_t * option) ; |
9e5d2067 |
57 | virtual void WriteRecParticles() ; |
88cb7938 |
58 | void Unload(); |
c9b2f104 |
59 | |
7b8d3392 |
60 | void Print() const ; |
61 | |
8e8eae84 |
62 | virtual const char * Version() const { return "pid-v1" ; } |
7b8d3392 |
63 | |
64 | AliEMCALPIDv1 & operator = (const AliEMCALPIDv1 & /*pid*/) { return *this ;} |
65 | |
c9b2f104 |
66 | private: |
67 | |
88cb7938 |
68 | Bool_t fDefaultInit; //! Says if the task was created by defaut ctor (only parameters are initialized) |
69 | Int_t fNEvent ; //! current event number |
70 | TString fFileName ; // File that contains the Principal file for analysis |
71 | TString fFileNamePar ; // File that contains the parameters for analysis |
72 | Bool_t fPi0Analysis; //! Pi0 analysis on or off |
73 | Int_t fRecParticlesInRun ; //! Total number of recparticles in one run |
c9b2f104 |
74 | |
75cc8a15 |
75 | ClassDef( AliEMCALPIDv1,8) // Particle identifier implementation version 1 |
c9b2f104 |
76 | |
77 | }; |
78 | |
79 | #endif // AliEMCALPIDV1_H |