]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PHOS/AliPHOSAnalyze.h
Pointer to RPlists etc changed to pointer-to-pointer to listRP etc -- to allow readin...
[u/mrichter/AliRoot.git] / PHOS / AliPHOSAnalyze.h
1 #ifndef ALIPHOSANALYZE_H
2 #define ALIPHOSANALYZE_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 //  Algorithm class to analyze PHOSv1 events    
10 //*-- Author : Yves Schutz (SUBATECH)
11
12 // --- ROOT system ---
13
14 #include "TFile.h"
15 #include "TH1.h"
16 #include "TH2.h"
17
18 // --- Standard library ---
19
20 // --- AliRoot header files ---
21
22 #include "AliPHOSv1.h"
23 #include "AliPHOSGeometry.h"
24 #include "AliPHOSPID.h"
25 #include "AliPHOSIndexToObject.h"
26
27 class AliPHOSAnalyze : public TObject {
28
29 public:
30
31   AliPHOSAnalyze() ;              // ctor
32   AliPHOSAnalyze(Text_t * name) ; // ctor
33   AliPHOSAnalyze(const AliPHOSAnalyze & ana) ; // cpy ctor                   
34   virtual ~AliPHOSAnalyze() ;     // dtor
35
36   void AnalyzeOneEvent(Int_t evt = -999) ;  // analyzes a single event ;
37   void AnalyzeManyEvents(Int_t Nevtents = 100, Int_t Module=0) ;  // analyzes many events   ;
38   void Reconstruct(Int_t Nevtents = 100) ;
39   void AnalyzeResolutions(Int_t Nevtents) ;  // analyzes Energy and Position resolutions   ;
40   void BookingHistograms() ;                // booking histograms for the ManyEvent analysis ;
41   void BookResolutionHistograms() ;         // booking histograms for the Resoluion analysis ;
42   void Copy(TObject & obj) ;                // copies an analysis into an other one   
43   Bool_t Init(Int_t evt) ;                  // does various initialisations
44   void DisplayKineEvent(Int_t evt = -999) ; // displays the Kine events in ALICE coordinate 
45   void DisplayRecParticles() ;              // displays RecParticles in ALICE coordinate  
46   void DisplayRecPoints() ;                 // displays RecPoints in module coordinate  
47   void DisplayTrackSegments() ;             // displays TrackSegments in module coordinate  
48   Bool_t OpenRootFile(Text_t * name) ;      // opens the root file
49   void SavingHistograms() ;                 // Save histograms in a root file
50   void SaveResolutionHistograms() ;         // Save histograms in a root file
51
52   AliPHOSAnalyze & operator = (const AliPHOSAnalyze & rvalue)  {
53     // assignement operator requested by coding convention
54     // but not needed
55     assert(0==1) ;
56     return *this ; 
57   }
58  
59  private:
60   
61   AliPHOSClusterizer * fClu ;         // a clusterizer 
62   Int_t fEvt ;                        // the evt number being processed 
63   AliPHOSGeometry * fGeom ;           // the PHOS Geometry object
64   AliPHOSIndexToObject * fObjGetter ; // provides methods to retrieve objects from their index in a list
65   AliPHOSv1 * fPHOS ;                 // the PHOS object from the root file 
66   AliPHOSPID * fPID ;                 // a particle identifier
67   AliPHOSReconstructioner * fRec ;    // a reconstructioner  
68   TFile * fRootFile ;                 // the root file that contains the data
69   AliPHOSTrackSegmentMaker * fTrs ;   // a tracksegmentmaker ;
70   TH1F * fhEmcDigit ;               // Histo of digit energies in the Emc 
71   TH1F * fhVetoDigit ;              // Histo of digit energies in the Veto 
72   TH1F * fhConvertorDigit ;         // Histo of digit energies in the Convertor
73   TH1F * fhEmcCluster ;             // Histo of Cluster energies in Emc
74   TH1F * fhVetoCluster ;            // Histo of Cluster energies in Veto
75   TH1F * fhConvertorCluster ;       // Histo of Cluster energies in Convertor
76   TH1F * fhConvertorEmc ;           // 2d Convertor versus Emc energies
77   TH2F * fhPhotonEnergy ;           // Spectrum of detected photons with photon primary
78   TH2F * fhPhotonAllEnergy ;        // Total spectrum of detected photons
79   TH2F * fhElectronEnergy ;         // Spectrum of detected electrons with electron primary
80   TH2F * fhElectronAllEnergy ;      // Total spectrum of detected electrons
81   TH2F * fhNeutralHadronEnergy ;    // Spectrum of detected neutral hadron
82   TH2F * fhNeutralEMEnergy ;        // Spectrum of detected neutral EM with EM primary
83   TH2F * fhNeutralEMAllEnergy ;     // Spectrum of detected neutral EM
84   TH2F * fhChargedHadronEnergy ;    // Spectrum of detected charged
85   TH2F * fhPhotonHadronEnergy ;     // Spectrum of detected Photon-Hadron
86   TH2F * fhPhotonPosition ;        // Position Resolution of  photons with photon primary
87   TH2F * fhPhotonAllPosition ;     // Position Resolution of  photons
88   TH2F * fhElectronPosition ;      // Position Resolution of electrons with electron primary
89   TH2F * fhElectronAllPosition ;   // Position Resolution of electrons
90   TH2F * fhNeutralHadronPosition ; // Position Resolution of neutral hadron
91   TH2F * fhNeutralEMPosition ;     // Position Resolution of neutral EM with EM primary
92   TH2F * fhNeutralEMAllPosition ;  // Position Resolution of neutral EM
93   TH2F * fhChargedHadronPosition ; // Position Resolution of charged
94   TH2F * fhPhotonHadronPosition ;  // Position Resolution of Photon-Hadron
95   TH1F * fhPhotonPositionY ;        // Y distribution of detected photons
96   TH1F * fhElectronPositionY ;      // Y distribution of detected electrons
97   TH1F * fhNeutralHadronPositionY ; // Y distribution of detected neutral hadron
98   TH1F * fhNeutralEMPositionY ;     // Y distribution of detected neutral EM
99   TH1F * fhChargedHadronPositionY ; // Y distribution of detected charged
100   TH1F * fhPhotonHadronPositionY ;  // Y distribution of detected Photon-Hadron
101   TH1F * fhPhotonReg ;          
102   TH1F * fhAllReg ;          
103   TH1F * fhNReg ;          
104   TH1F * fhNBarReg ;          
105   TH1F * fhChargedReg ;          
106   TH1F * fhPhotonEM ;          
107   TH1F * fhAllEM ;          
108   TH1F * fhNEM ;          
109   TH1F * fhNBarEM ;          
110   TH1F * fhChargedEM ;          
111   TH1F * fhPrimary ;          
112
113   TH1F * fhPhotPhot ;
114   TH1F * fhPhotElec ;
115   TH1F * fhPhotNeuH ;
116   TH1F * fhPhotNuEM ; 
117   TH1F * fhPhotChHa ;
118   TH1F * fhPhotGaHa ;
119
120
121
122 ClassDef(AliPHOSAnalyze,1)  // PHOSv1 event analyzis algorithm
123
124 };
125
126 #endif // AliPHOSANALYZE_H