]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PHOS/AliPHOSAnalyze.h
638f143a1c1340541917198c53e046b53a2998c4
[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 //  Algorythm class to analyze PHOS events    //
10 //  Yves Schutz            SUBATECH           //
11 //                                            //  
12 //                                            //
13 ////////////////////////////////////////////////
14
15 // --- ROOT system ---
16
17 #include "TFile.h"
18 #include "TH1.h"
19 #include "TH2.h"
20
21 // --- Standard library ---
22
23 // --- AliRoot header files ---
24
25 #include "AliPHOSv0.h"
26 #include "AliPHOSGeometry.h"
27
28 class AliPHOSAnalyze : public TObject {
29
30 public:
31
32   AliPHOSAnalyze() ;              // ctor
33   AliPHOSAnalyze(Text_t * name) ; // 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 BookingHistograms() ;                // booking histograms for the ManyEvent analysis ;
39   Bool_t Init(Int_t evt) ;                  // does various initialisations
40   void DisplayKineEvent(Int_t evt = -999) ; // displays the Kine events in ALICE coordinate 
41   void DisplayRecParticles() ;              // displays RecParticles in ALICE coordinate  
42   void DisplayRecPoints() ;                 // displays RecPoints in module coordinate  
43   void DisplayTrackSegments() ;             // displays TrackSegments in module coordinate  
44   Bool_t OpenRootFile(Text_t * name) ;      // opens the root file
45   void SavingHistograms() ;                 // Save histograms in a root file
46  
47 private:
48   
49   AliPHOSClusterizer * fClu ;       // a clusterizer 
50   Int_t fEvt ;                      // the evt number being processed 
51   AliPHOSGeometry * fGeom;          // the PHOS Geometry object
52   AliPHOSv0 * fPHOS ;               // the PHOS object from the root file 
53   AliPHOSParticleGuesser * fPag ;   // a particle guesser
54   AliPHOSReconstructioner * fRec ;  // a reconstructioner  
55   TFile * fRootFile ;               // the root file that contains the data
56   AliPHOSTrackSegmentMaker * fTrs ; // a tracksegmentmaker ;
57   TH1F * fhEmcDigit        ;   // Histo of digit energies in the Emc 
58   TH1F * fhVetoDigit       ;   // Histo of digit energies in the Veto 
59   TH1F * fhConvertorDigit  ;   // Histo of digit energies in the Convertor
60   TH1F * fhEmcCluster      ;   // Histo of Cluster energies in Emc
61   TH1F * fhVetoCluster     ;   // Histo of Cluster energies in Veto
62   TH1F * fhConvertorCluster;   // Histo of Cluster energies in Convertor
63   TH2F * fhConvertorEmc    ;   // 2d Convertor versus Emc energies
64   TH1F * fhPhotonEnergy    ;   // Spectrum of detected photons
65   TH1F * fhElectronEnergy  ;   // Spectrum of detected electrons
66   TH1F * fhNeutralEnergy   ;   // Spectrum of detected neutrals
67   TH1F * fhChargedEnergy   ;   // Spectrum of detected charged
68   TH1F * fhPhotonPositionX ;   // X distribution of detected photons
69   TH1F * fhElectronPositionX ; // X distribution of detected electrons
70   TH1F * fhNeutralPositionX  ; // X distribution of detected neutrals
71   TH1F * fhChargedPositionX  ; // X distribution of detected charged
72   TH1F * fhPhotonPositionY   ; // Y distribution of detected photons
73   TH1F * fhElectronPositionY ; // Y distribution of detected electrons
74   TH1F * fhNeutralPositionY  ; // Y distribution of detected neutrals
75   TH1F * fhChargedPositionY  ; // Y distribution of detected charged
76
77
78 ClassDef(AliPHOSAnalyze,1)  // PHOS event analyzis , version 1
79
80 };
81
82 #endif // AliPHOSANALYZE_H