]>
Commit | Line | Data |
---|---|---|
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 | ||
5f20d3fb | 22 | #include "AliPHOSv1.h" |
6ad0bfa0 | 23 | #include "AliPHOSGeometry.h" |
26d4b141 | 24 | #include "AliPHOSPID.h" |
83974468 | 25 | #include "AliPHOSIndexToObject.h" |
6ad0bfa0 | 26 | |
27 | class AliPHOSAnalyze : public TObject { | |
28 | ||
29 | public: | |
30 | ||
31 | AliPHOSAnalyze() ; // ctor | |
32 | AliPHOSAnalyze(Text_t * name) ; // ctor | |
88714635 | 33 | AliPHOSAnalyze(const AliPHOSAnalyze & ana) ; // cpy ctor |
6ad0bfa0 | 34 | virtual ~AliPHOSAnalyze() ; // dtor |
35 | ||
36 | void AnalyzeOneEvent(Int_t evt = -999) ; // analyzes a single event ; | |
92862013 | 37 | void AnalyzeManyEvents(Int_t Nevtents = 100, Int_t Module=0) ; // analyzes many events ; |
38 | void BookingHistograms() ; // booking histograms for the ManyEvent analysis ; | |
88714635 | 39 | void Copy(TObject & obj) ; // copies an analysis into an other one |
6ad0bfa0 | 40 | Bool_t Init(Int_t evt) ; // does various initialisations |
41 | void DisplayKineEvent(Int_t evt = -999) ; // displays the Kine events in ALICE coordinate | |
42 | void DisplayRecParticles() ; // displays RecParticles in ALICE coordinate | |
43 | void DisplayRecPoints() ; // displays RecPoints in module coordinate | |
44 | void DisplayTrackSegments() ; // displays TrackSegments in module coordinate | |
45 | Bool_t OpenRootFile(Text_t * name) ; // opens the root file | |
92862013 | 46 | void SavingHistograms() ; // Save histograms in a root file |
6c370def | 47 | |
c6e196df | 48 | AliPHOSAnalyze & operator = (const AliPHOSAnalyze & rvalue) { |
6c370def | 49 | // assignement operator requested by coding convention |
50 | // but not needed | |
51 | assert(0==1) ; | |
52 | return *this ; | |
53 | } | |
6ad0bfa0 | 54 | |
88714635 | 55 | private: |
6ad0bfa0 | 56 | |
83974468 | 57 | AliPHOSClusterizer * fClu ; // a clusterizer |
58 | Int_t fEvt ; // the evt number being processed | |
59 | AliPHOSGeometry * fGeom ; // the PHOS Geometry object | |
60 | AliPHOSIndexToObject * fObjGetter ; // provides methods to retrieve objects from their index in a list | |
5f20d3fb | 61 | AliPHOSv1 * fPHOS ; // the PHOS object from the root file |
83974468 | 62 | AliPHOSPID * fPID ; // a particle identifier |
63 | AliPHOSReconstructioner * fRec ; // a reconstructioner | |
64 | TFile * fRootFile ; // the root file that contains the data | |
65 | AliPHOSTrackSegmentMaker * fTrs ; // a tracksegmentmaker ; | |
b2a60966 | 66 | TH1F * fhEmcDigit ; // Histo of digit energies in the Emc |
67 | TH1F * fhVetoDigit ; // Histo of digit energies in the Veto | |
68 | TH1F * fhConvertorDigit ; // Histo of digit energies in the Convertor | |
69 | TH1F * fhEmcCluster ; // Histo of Cluster energies in Emc | |
70 | TH1F * fhVetoCluster ; // Histo of Cluster energies in Veto | |
71 | TH1F * fhConvertorCluster ; // Histo of Cluster energies in Convertor | |
72 | TH2F * fhConvertorEmc ; // 2d Convertor versus Emc energies | |
73 | TH1F * fhPhotonEnergy ; // Spectrum of detected photons | |
74 | TH1F * fhElectronEnergy ; // Spectrum of detected electrons | |
75 | TH1F * fhNeutralHadronEnergy ; // Spectrum of detected neutral hadron | |
76 | TH1F * fhNeutralEMEnergy ; // Spectrum of detected neutral EM | |
77 | TH1F * fhChargedHadronEnergy ; // Spectrum of detected charged | |
78 | TH1F * fhPhotonHadronEnergy ; // Spectrum of detected Photon-Hadron | |
79 | TH1F * fhPhotonPositionX ; // X distribution of detected photons | |
80 | TH1F * fhElectronPositionX ; // X distribution of detected electrons | |
81 | TH1F * fhNeutralHadronPositionX ; // X distribution of detected neutral hadron | |
82 | TH1F * fhNeutralEMPositionX ; // X distribution of detected neutral EM | |
83 | TH1F * fhChargedHadronPositionX ; // X distribution of detected charged | |
84 | TH1F * fhPhotonHadronPositionX ; // X distribution of detected Photon-Hadron | |
85 | TH1F * fhPhotonPositionY ; // Y distribution of detected photons | |
86 | TH1F * fhElectronPositionY ; // Y distribution of detected electrons | |
87 | TH1F * fhNeutralHadronPositionY ; // Y distribution of detected neutral hadron | |
88 | TH1F * fhNeutralEMPositionY ; // Y distribution of detected neutral EM | |
89 | TH1F * fhChargedHadronPositionY ; // Y distribution of detected charged | |
90 | TH1F * fhPhotonHadronPositionY ; // Y distribution of detected Photon-Hadron | |
92862013 | 91 | |
6ad0bfa0 | 92 | |
5f20d3fb | 93 | ClassDef(AliPHOSAnalyze,1) // PHOSv1 event analyzis algorithm |
6ad0bfa0 | 94 | |
95 | }; | |
96 | ||
97 | #endif // AliPHOSANALYZE_H |