]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PHOS/AliPHOSAnalyze.h
Name-convetion rule violation corrected
[u/mrichter/AliRoot.git] / PHOS / AliPHOSAnalyze.h
CommitLineData
6ad0bfa0 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
b2a60966 8//_________________________________________________________________________
5f20d3fb 9// Algorithm class to analyze PHOSv1 events
b2a60966 10//*-- Author : Yves Schutz (SUBATECH)
6ad0bfa0 11
12// --- ROOT system ---
13
14#include "TFile.h"
92862013 15#include "TH1.h"
16#include "TH2.h"
6ad0bfa0 17
18// --- Standard library ---
19
20// --- AliRoot header files ---
21
788dcca4 22#include "AliPHOSv1.h"
6ad0bfa0 23#include "AliPHOSGeometry.h"
26d4b141 24#include "AliPHOSPID.h"
83974468 25#include "AliPHOSIndexToObject.h"
6ad0bfa0 26
27class AliPHOSAnalyze : public TObject {
28
29public:
30
31 AliPHOSAnalyze() ; // ctor
32 AliPHOSAnalyze(Text_t * name) ; // ctor
88714635 33 AliPHOSAnalyze(const AliPHOSAnalyze & ana) ; // cpy ctor
6ad0bfa0 34 virtual ~AliPHOSAnalyze() ; // dtor
35
46b146ca 36 void ActivePPSD(Int_t Nevents) ;
92862013 37 void AnalyzeManyEvents(Int_t Nevtents = 100, Int_t Module=0) ; // analyzes many events ;
69183710 38 void InvariantMass(Int_t Nevents = 100) ;
39 void Reconstruct(Int_t Nevtents = 100,Int_t FirstEvent = 0) ;
40 void AnalyzeResolutions(Int_t Nevtents) ; // analyzes Energy and Position resolutions ;
92862013 41 void BookingHistograms() ; // booking histograms for the ManyEvent analysis ;
134ce69a 42 void BookResolutionHistograms() ; // booking histograms for the Resoluion analysis ;
88714635 43 void Copy(TObject & obj) ; // copies an analysis into an other one
69183710 44 Float_t CorrectEnergy(Float_t ERecPart) ; //Corrects reconstracted energy
6ad0bfa0 45 Bool_t Init(Int_t evt) ; // does various initialisations
46 void DisplayKineEvent(Int_t evt = -999) ; // displays the Kine events in ALICE coordinate
47 void DisplayRecParticles() ; // displays RecParticles in ALICE coordinate
48 void DisplayRecPoints() ; // displays RecPoints in module coordinate
49 void DisplayTrackSegments() ; // displays TrackSegments in module coordinate
50 Bool_t OpenRootFile(Text_t * name) ; // opens the root file
46b146ca 51 void SaveHistograms() ; // Save histograms in a root file
52 void ResetHistograms() ; //
c6e196df 53 AliPHOSAnalyze & operator = (const AliPHOSAnalyze & rvalue) {
6c370def 54 // assignement operator requested by coding convention
55 // but not needed
56 assert(0==1) ;
57 return *this ;
58 }
6ad0bfa0 59
88714635 60 private:
6ad0bfa0 61
83974468 62 AliPHOSClusterizer * fClu ; // a clusterizer
63 Int_t fEvt ; // the evt number being processed
64 AliPHOSGeometry * fGeom ; // the PHOS Geometry object
65 AliPHOSIndexToObject * fObjGetter ; // provides methods to retrieve objects from their index in a list
788dcca4 66 AliPHOSv1 * fPHOS ; // the PHOS object from the root file
83974468 67 AliPHOSPID * fPID ; // a particle identifier
68 AliPHOSReconstructioner * fRec ; // a reconstructioner
69 TFile * fRootFile ; // the root file that contains the data
70 AliPHOSTrackSegmentMaker * fTrs ; // a tracksegmentmaker ;
46b146ca 71
72 TH2F * fhEnergyCorrelations ; //Energy correlations between Eloss in Convertor and PPSD(2)
73
74
b2a60966 75 TH1F * fhEmcDigit ; // Histo of digit energies in the Emc
76 TH1F * fhVetoDigit ; // Histo of digit energies in the Veto
77 TH1F * fhConvertorDigit ; // Histo of digit energies in the Convertor
78 TH1F * fhEmcCluster ; // Histo of Cluster energies in Emc
79 TH1F * fhVetoCluster ; // Histo of Cluster energies in Veto
80 TH1F * fhConvertorCluster ; // Histo of Cluster energies in Convertor
46b146ca 81 TH2F * fhConvertorEmc ; // 2d Convertor versus Emc energies
82
69183710 83 TH2F * fhAllEnergy ; // Spectrum of detected photons with photon primary
84 TH2F * fhPhotEnergy ; // Total spectrum of detected photons
85 TH2F * fhEMEnergy ; // Spectrum of detected neutral EM with EM primary
86 TH2F * fhPPSDEnergy ;
87
88 TH2F * fhAllPosition ; // Position Resolution of photons with photon primary
89 TH2F * fhPhotPosition ; // Position Resolution of photons
90 TH2F * fhEMPosition ; // Position Resolution of neutral EM with EM primary
91 TH2F * fhPPSDPosition ; // Position Resolution of neutral EM
92
b2a60966 93 TH1F * fhPhotonPositionY ; // Y distribution of detected photons
94 TH1F * fhElectronPositionY ; // Y distribution of detected electrons
95 TH1F * fhNeutralHadronPositionY ; // Y distribution of detected neutral hadron
96 TH1F * fhNeutralEMPositionY ; // Y distribution of detected neutral EM
97 TH1F * fhChargedHadronPositionY ; // Y distribution of detected charged
98 TH1F * fhPhotonHadronPositionY ; // Y distribution of detected Photon-Hadron
69183710 99
100 TH1F * fhPhotReg ;
fc879520 101 TH1F * fhAllReg ;
102 TH1F * fhNReg ;
103 TH1F * fhNBarReg ;
104 TH1F * fhChargedReg ;
69183710 105 TH1F * fhPhotEM ;
fc879520 106 TH1F * fhAllEM ;
107 TH1F * fhNEM ;
108 TH1F * fhNBarEM ;
109 TH1F * fhChargedEM ;
69183710 110 TH1F * fhPhotPPSD ;
111 TH1F * fhAllPPSD ;
112 TH1F * fhNPPSD ;
113 TH1F * fhNBarPPSD ;
114 TH1F * fhChargedPPSD ;
115
fc879520 116 TH1F * fhPrimary ;
69183710 117 TH1F * fhAllRP ;
118 TH1F * fhPPSD ;
119 TH1F * fhShape ;
120 TH1F * fhVeto ;
fc879520 121
122 TH1F * fhPhotPhot ;
123 TH1F * fhPhotElec ;
124 TH1F * fhPhotNeuH ;
125 TH1F * fhPhotNuEM ;
126 TH1F * fhPhotChHa ;
127 TH1F * fhPhotGaHa ;
128
92862013 129
6ad0bfa0 130
5f20d3fb 131ClassDef(AliPHOSAnalyze,1) // PHOSv1 event analyzis algorithm
6ad0bfa0 132
133};
134
135#endif // AliPHOSANALYZE_H