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 ---
26 class AliPHOSGeometry ;
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 DrawRecon(Int_t Nevent= 0,Int_t Nmod = 1,
40 const char* branchName = "PHOSRP",
41 const char* branchTitle = "Default") ;
42 // draws positions of entering of primaries and reconstructed objects in PHOS
44 void InvariantMass(const char* RecPartTitle = "Default") ; // Photons invariant mass distributions
46 void EnergyResolution (const char* RecPartTitle = "Default") ; // analyzes Energy resolution ;
48 void PositionResolution(const char* RecPartTitle = "Default") ; // analyzes Position resolution ;
50 void Contamination(const char* RecPartTitle = "Default") ; // Counts contamination of photon spectrum
52 void Ls() ; //Prints PHOS-related contents of TreeS, TreeD and TreeR
54 void SetEnergyCorrection(const Float_t ecor){fCorrection = ecor ;}
56 AliPHOSAnalyze & operator = (const AliPHOSAnalyze & rvalue) {
57 // assignement operator requested by coding convention but not needed
58 Fatal("operator =", "not implemented") ;
64 Float_t CorrectedEnergy(const Float_t ReconstEnergy)const
65 {return ReconstEnergy * fCorrection;}
66 //Converts reconstructed energy (energy of the EMCRecPoint) to the energy of primary
67 //The coeficient shoud be (and was) calculated usin Erec vs. Eprim plot
68 //(see Energy Resolution function). However, if one change parameters of reconstruction
69 //or geometry, one have to recalculate coefficient!
73 Float_t fCorrection ; //! Conversion coefficient between True and Reconstructed energies
74 Int_t fEvt ; //! the evt number being processed
75 TString ffileName ; //! the root file that contains the data
77 AliRunLoader* fRunLoader; //! run loader of the specified filename
79 ClassDef(AliPHOSAnalyze,1) // PHOSv1 event analyzis algorithm
83 #endif // AliPHOSANALYZE_H