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 */
8 //_________________________________________________________________________
9 // Algorythm class to analyze PHOSv1 events:
10 // Construct histograms and displays them.
11 // Use the macro EditorBar.C for best access to the functionnalities
13 //*-- Author : Yves Schutz (SUBATECH)
15 // --- ROOT system ---
21 // --- Standard library ---
23 // --- AliRoot header files ---
25 #include "AliPHOSv1.h"
26 #include "AliPHOSGeometry.h"
27 #include "AliPHOSPID.h"
28 #include "AliPHOSIndexToObject.h"
30 class AliPHOSAnalyze : public TObject {
34 AliPHOSAnalyze() ; // ctor
35 AliPHOSAnalyze(Text_t * name) ; // ctor
36 AliPHOSAnalyze(const AliPHOSAnalyze & ana) ; // cpy ctor
37 virtual ~AliPHOSAnalyze() ; // dtor
39 void ActivePPSD(Int_t Nevents) ;
40 void AnalyzeManyEvents(Int_t Nevtents = 100, Int_t Module=0) ; // analyzes many events ;
41 void AnalyzeResolutions(Int_t Nevtents) ; // analyzes Energy and Position resolutions ;
42 void ReadAndPrintCPV(Int_t Nevents); // Read & print generated and reconstructed hits in CPV
43 void AnalyzeCPV(Int_t Nevents); // analyzes various CPV characteristics
44 void InvariantMass(Int_t Nevents = 100) ;
45 void Reconstruct(Int_t Nevtents = 100,Int_t FirstEvent = 0) ;
46 void BookingHistograms() ; // booking histograms for the ManyEvent analysis ;
47 void BookResolutionHistograms() ; // booking histograms for the Resoluion analysis ;
48 void Copy(TObject & obj) ; // copies an analysis into an other one
49 Float_t CorrectEnergy(Float_t ERecPart) ; //Corrects reconstracted energy
50 Bool_t Init(Int_t evt) ; // does various initialisations
51 void DisplayKineEvent(Int_t evt = -999) ; // displays the Kine events in ALICE coordinate
52 void DisplayRecParticles() ; // displays RecParticles in ALICE coordinate
53 void DisplayRecPoints() ; // displays RecPoints in module coordinate
54 void DisplayTrackSegments() ; // displays TrackSegments in module coordinate
55 Bool_t OpenRootFile(Text_t * name) ; // opens the root file
56 void SaveHistograms() ; // Save histograms in a root file
57 void ResetHistograms() ; //
58 AliPHOSAnalyze & operator = (const AliPHOSAnalyze & rvalue) {
59 // assignement operator requested by coding convention
64 void SetDebugLevel(Int_t flag) { fDebugLevel = flag; }
68 AliPHOSClusterizer * fClu ; // a clusterizer
69 Int_t fEvt ; // the evt number being processed
70 AliPHOSGeometry * fGeom ; // the PHOS Geometry object
71 AliPHOSIndexToObject * fObjGetter ; // provides methods to retrieve objects from their index in a list
72 AliPHOSv1 * fPHOS ; // the PHOS object from the root file
73 AliPHOSPID * fPID ; // a particle identifier
74 AliPHOSReconstructioner * fRec ; // a reconstructioner
75 TFile * fRootFile ; // the root file that contains the data
76 AliPHOSTrackSegmentMaker * fTrs ; // a tracksegmentmaker ;
78 Int_t fDebugLevel; // debug level for analysis
80 TH2F * fhEnergyCorrelations ; //Energy correlations between Eloss in Convertor and PPSD(2)
83 TH1F * fhEmcDigit ; // Histo of digit energies in the Emc
84 TH1F * fhVetoDigit ; // Histo of digit energies in the Veto
85 TH1F * fhConvertorDigit ; // Histo of digit energies in the Convertor
86 TH1F * fhEmcCluster ; // Histo of Cluster energies in Emc
87 TH1F * fhVetoCluster ; // Histo of Cluster energies in Veto
88 TH1F * fhConvertorCluster ; // Histo of Cluster energies in Convertor
89 TH2F * fhConvertorEmc ; // 2d Convertor versus Emc energies
91 TH2F * fhAllEnergy ; // Spectrum of detected photons with photon primary
92 TH2F * fhPhotEnergy ; // Total spectrum of detected photons
93 TH2F * fhEMEnergy ; // Spectrum of detected neutral EM with EM primary
96 TH2F * fhAllPosition ; // Position Resolution of photons with photon primary
97 TH2F * fhPhotPosition ; // Position Resolution of photons
98 TH2F * fhEMPosition ; // Position Resolution of neutral EM with EM primary
99 TH2F * fhPPSDPosition ; // Position Resolution of neutral EM
101 TH1F * fhPhotonPositionY ; // Y distribution of detected photons
102 TH1F * fhElectronPositionY ; // Y distribution of detected electrons
103 TH1F * fhNeutralHadronPositionY ; // Y distribution of detected neutral hadron
104 TH1F * fhNeutralEMPositionY ; // Y distribution of detected neutral EM
105 TH1F * fhChargedHadronPositionY ; // Y distribution of detected charged
106 TH1F * fhPhotonHadronPositionY ; // Y distribution of detected Photon-Hadron
112 TH1F * fhChargedReg ;
122 TH1F * fhChargedPPSD ;
139 ClassDef(AliPHOSAnalyze,1) // PHOSv1 event analyzis algorithm
143 #endif // AliPHOSANALYZE_H