remove iostream
[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 ;
7b7c1533 27class AliPHOSGetter ;
6ad0bfa0 28
29class AliPHOSAnalyze : public TObject {
30
31public:
32
33 AliPHOSAnalyze() ; // ctor
34 AliPHOSAnalyze(Text_t * name) ; // ctor
88714635 35 AliPHOSAnalyze(const AliPHOSAnalyze & ana) ; // cpy ctor
6ad0bfa0 36 virtual ~AliPHOSAnalyze() ; // dtor
37
efad3788 38 void DrawRecon(Int_t Nevent= 0,Int_t Nmod = 1,
39 const char* branchName = "PHOSRP",
1c5cf796 40 const char* branchTitle = "Default") ;
efad3788 41 // draws positions of entering of primaries and reconstructed objects in PHOS
42
1c5cf796 43 void InvariantMass(const char* RecPartTitle = "Default") ; // Photons invariant mass distributions
efad3788 44
1c5cf796 45 void EnergyResolution (const char* RecPartTitle = "Default") ; // analyzes Energy resolution ;
efad3788 46
1c5cf796 47 void PositionResolution(const char* RecPartTitle = "Default") ; // analyzes Position resolution ;
efad3788 48
1c5cf796 49 void Contamination(const char* RecPartTitle = "Default") ; // Counts contamination of photon spectrum
efad3788 50
e4761a49 51 void Ls() ; //Prints PHOS-related contents of TreeS, TreeD and TreeR
52
efad3788 53 void SetEnergyCorrection(const Float_t ecor){fCorrection = ecor ;}
54
c6e196df 55 AliPHOSAnalyze & operator = (const AliPHOSAnalyze & rvalue) {
baef0810 56 // assignement operator requested by coding convention but not needed
83448140 57 abort() ;
6c370def 58 return *this ;
59 }
6ad0bfa0 60
baef0810 61private:
62
efad3788 63 Float_t CorrectedEnergy(const Float_t ReconstEnergy)const
64 {return ReconstEnergy * fCorrection;}
65 //Converts reconstructed energy (energy of the EMCRecPoint) to the energy of primary
66 //The coeficient shoud be (and was) calculated usin Erec vs. Eprim plot
67 //(see Energy Resolution function). However, if one change parameters of reconstruction
68 //or geometry, one have to recalculate coefficient!
69
baef0810 70private:
fc879520 71
baef0810 72 Float_t fCorrection ; //! Conversion coefficient between True and Reconstructed energies
73 Int_t fEvt ; //! the evt number being processed
efad3788 74 TString ffileName ; //! the root file that contains the data
92862013 75
6ad0bfa0 76
5f20d3fb 77ClassDef(AliPHOSAnalyze,1) // PHOSv1 event analyzis algorithm
6ad0bfa0 78
79};
80
81#endif // AliPHOSANALYZE_H