]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PHOS/PHOS-HTML/AliPHOSAnalyze.h
Reading Trees branches directly to the TFolders added
[u/mrichter/AliRoot.git] / PHOS / PHOS-HTML / AliPHOSAnalyze.h
CommitLineData
29c81279 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 PHOSv0 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 "AliPHOSv0.h"
23#include "AliPHOSGeometry.h"
24#include "AliPHOSPID.h"
25
26class AliPHOSAnalyze : public TObject {
27
28public:
29
30 AliPHOSAnalyze() ; // ctor
31 AliPHOSAnalyze(Text_t * name) ; // ctor
32 virtual ~AliPHOSAnalyze() ; // dtor
33
34 void AnalyzeOneEvent(Int_t evt = -999) ; // analyzes a single event ;
35 void AnalyzeManyEvents(Int_t Nevtents = 100, Int_t Module=0) ; // analyzes many events ;
36 void BookingHistograms() ; // booking histograms for the ManyEvent analysis ;
37 Bool_t Init(Int_t evt) ; // does various initialisations
38 void DisplayKineEvent(Int_t evt = -999) ; // displays the Kine events in ALICE coordinate
39 void DisplayRecParticles() ; // displays RecParticles in ALICE coordinate
40 void DisplayRecPoints() ; // displays RecPoints in module coordinate
41 void DisplayTrackSegments() ; // displays TrackSegments in module coordinate
42 Bool_t OpenRootFile(Text_t * name) ; // opens the root file
43 void SavingHistograms() ; // Save histograms in a root file
44
45private:
46
47 AliPHOSClusterizer * fClu ; // a clusterizer
48 Int_t fEvt ; // the evt number being processed
49 AliPHOSGeometry * fGeom ; // the PHOS Geometry object
50 AliPHOSv0 * fPHOS ; // the PHOS object from the root file
51 AliPHOSPID * fPID ; // a particle identifier
52 AliPHOSReconstructioner * fRec ; // a reconstructioner
53 TFile * fRootFile ; // the root file that contains the data
54 AliPHOSTrackSegmentMaker * fTrs ; // a tracksegmentmaker ;
55 TH1F * fhEmcDigit ; // Histo of digit energies in the Emc
56 TH1F * fhVetoDigit ; // Histo of digit energies in the Veto
57 TH1F * fhConvertorDigit ; // Histo of digit energies in the Convertor
58 TH1F * fhEmcCluster ; // Histo of Cluster energies in Emc
59 TH1F * fhVetoCluster ; // Histo of Cluster energies in Veto
60 TH1F * fhConvertorCluster ; // Histo of Cluster energies in Convertor
61 TH2F * fhConvertorEmc ; // 2d Convertor versus Emc energies
62 TH1F * fhPhotonEnergy ; // Spectrum of detected photons
63 TH1F * fhElectronEnergy ; // Spectrum of detected electrons
64 TH1F * fhNeutralHadronEnergy ; // Spectrum of detected neutral hadron
65 TH1F * fhNeutralEMEnergy ; // Spectrum of detected neutral EM
66 TH1F * fhChargedHadronEnergy ; // Spectrum of detected charged
67 TH1F * fhPhotonHadronEnergy ; // Spectrum of detected Photon-Hadron
68 TH1F * fhPhotonPositionX ; // X distribution of detected photons
69 TH1F * fhElectronPositionX ; // X distribution of detected electrons
70 TH1F * fhNeutralHadronPositionX ; // X distribution of detected neutral hadron
71 TH1F * fhNeutralEMPositionX ; // X distribution of detected neutral EM
72 TH1F * fhChargedHadronPositionX ; // X distribution of detected charged
73 TH1F * fhPhotonHadronPositionX ; // X distribution of detected Photon-Hadron
74 TH1F * fhPhotonPositionY ; // Y distribution of detected photons
75 TH1F * fhElectronPositionY ; // Y distribution of detected electrons
76 TH1F * fhNeutralHadronPositionY ; // Y distribution of detected neutral hadron
77 TH1F * fhNeutralEMPositionY ; // Y distribution of detected neutral EM
78 TH1F * fhChargedHadronPositionY ; // Y distribution of detected charged
79 TH1F * fhPhotonHadronPositionY ; // Y distribution of detected Photon-Hadron
80
81
82ClassDef(AliPHOSAnalyze,1) // PHOSv0 event analyzis algorithm
83
84};
85
86#endif // AliPHOSANALYZE_H