]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PHOS/AliPHOSAnalyze.h
Splitting of the QA maker into simulation and reconstruction dependent parts (Yves)
[u/mrichter/AliRoot.git] / PHOS / AliPHOSAnalyze.h
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 // 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 //*--
13 //*-- Author : Yves Schutz (SUBATECH)
14
15 // --- ROOT system ---
16
17 class TFile ;
18 class TH1F ;
19 class TH2F ;
20
21 // --- Standard library ---
22
23 // --- AliRoot header files ---
24
25 class AliPHOSv1 ;
26 class AliPHOSGeometry ;
27 class AliPHOSLoader ;
28 class AliRunLoader ; 
29
30 class AliPHOSAnalyze : public TObject {
31
32 public:
33
34   AliPHOSAnalyze() ;              // ctor
35   AliPHOSAnalyze(Text_t * name) ; // ctor
36   AliPHOSAnalyze(const AliPHOSAnalyze & ana) ; // cpy ctor                   
37   virtual ~AliPHOSAnalyze() ;     // dtor
38
39   void DrawRecon(Int_t Nevent= 0,Int_t Nmod = 1) ; 
40   // draws positions of entering of primaries and reconstructed objects in PHOS
41
42   void InvariantMass() ;      // Photons invariant mass distributions
43
44   void EnergyResolution () ;  // analyzes Energy resolution ;
45
46   void PositionResolution() ; // analyzes Position resolution ;
47
48   void Contamination() ;      // Counts contamination of photon spectrum
49
50   void Ls() ; //Prints PHOS-related contents of TreeS, TreeD and TreeR
51
52   void SetEnergyCorrection(Float_t ecor){fCorrection = ecor ;} 
53
54   AliPHOSAnalyze & operator = (const AliPHOSAnalyze & /*rvalue*/)  {
55     // assignement operator requested by coding convention but not needed
56     Fatal("operator =", "not implemented") ;
57     return *this ; 
58   }
59  
60 private:
61
62   Float_t CorrectedEnergy(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
69 private:
70
71   Float_t fCorrection ;               //! Conversion coefficient between True and Reconstructed energies
72   Int_t   fEvt ;                      //! the evt number being processed 
73   TString ffileName ;                 //! the root file that contains the data
74
75   AliRunLoader* fRunLoader;           //! run loader of the specified filename
76
77 ClassDef(AliPHOSAnalyze,1)  // PHOSv1 event analyzis algorithm
78
79 };
80
81 #endif // AliPHOSANALYZE_H