Make compatible with TVirtualMC.
[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//_________________________________________________________________________
a3dfe79c 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
12//*--
b2a60966 13//*-- Author : Yves Schutz (SUBATECH)
6ad0bfa0 14
15// --- ROOT system ---
16
83448140 17class TFile ;
18class TH1F ;
19class TH2F ;
6ad0bfa0 20
21// --- Standard library ---
22
23// --- AliRoot header files ---
24
83448140 25class AliPHOSv1 ;
26class AliPHOSGeometry ;
88cb7938 27class AliPHOSLoader ;
28class AliRunLoader ;
6ad0bfa0 29
30class AliPHOSAnalyze : public TObject {
31
32public:
33
34 AliPHOSAnalyze() ; // ctor
35 AliPHOSAnalyze(Text_t * name) ; // ctor
88714635 36 AliPHOSAnalyze(const AliPHOSAnalyze & ana) ; // cpy ctor
6ad0bfa0 37 virtual ~AliPHOSAnalyze() ; // dtor
38
90cceaf6 39 void DrawRecon(Int_t Nevent= 0,Int_t Nmod = 1) ;
efad3788 40 // draws positions of entering of primaries and reconstructed objects in PHOS
41
90cceaf6 42 void InvariantMass() ; // Photons invariant mass distributions
efad3788 43
90cceaf6 44 void EnergyResolution () ; // analyzes Energy resolution ;
efad3788 45
90cceaf6 46 void PositionResolution() ; // analyzes Position resolution ;
efad3788 47
90cceaf6 48 void Contamination() ; // Counts contamination of photon spectrum
efad3788 49
e4761a49 50 void Ls() ; //Prints PHOS-related contents of TreeS, TreeD and TreeR
51
efad3788 52 void SetEnergyCorrection(const Float_t ecor){fCorrection = ecor ;}
53
c6e196df 54 AliPHOSAnalyze & operator = (const AliPHOSAnalyze & rvalue) {
baef0810 55 // assignement operator requested by coding convention but not needed
f1611b7c 56 Fatal("operator =", "not implemented") ;
6c370def 57 return *this ;
58 }
6ad0bfa0 59
baef0810 60private:
61
efad3788 62 Float_t CorrectedEnergy(const Float_t ReconstEnergy)const
63 {return ReconstEnergy * fCorrection;}
64 //Converts reconstructed energy (energy of the EMCRecPoint) to the energy of primary
65 //The coeficient shoud be (and was) calculated usin Erec vs. Eprim plot
66 //(see Energy Resolution function). However, if one change parameters of reconstruction
67 //or geometry, one have to recalculate coefficient!
68
baef0810 69private:
fc879520 70
baef0810 71 Float_t fCorrection ; //! Conversion coefficient between True and Reconstructed energies
72 Int_t fEvt ; //! the evt number being processed
efad3788 73 TString ffileName ; //! the root file that contains the data
92862013 74
88cb7938 75 AliRunLoader* fRunLoader; //! run loader of the specified filename
6ad0bfa0 76
5f20d3fb 77ClassDef(AliPHOSAnalyze,1) // PHOSv1 event analyzis algorithm
6ad0bfa0 78
79};
80
81#endif // AliPHOSANALYZE_H