X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=PHOS%2FAliPHOSAnalyze.h;h=a8bbcb6120460d214b43a5bd0de2b6078bf20620;hb=df0d5123c5f576fd3be27dedd1166bb90547c95b;hp=09d63888b0968edd76f7fcecde40350f67885357;hpb=6ad0bfa0999be42354e6caa187cf84fabe5cfa39;p=u%2Fmrichter%2FAliRoot.git diff --git a/PHOS/AliPHOSAnalyze.h b/PHOS/AliPHOSAnalyze.h index 09d63888b09..a8bbcb61204 100644 --- a/PHOS/AliPHOSAnalyze.h +++ b/PHOS/AliPHOSAnalyze.h @@ -5,23 +5,27 @@ /* $Id$ */ -//////////////////////////////////////////////// -// Algorythm class to analyze PHOS events // -// Yves Schutz SUBATECH // -// // -// // -//////////////////////////////////////////////// +//_________________________________________________________________________ +// Algorythm class to analyze PHOSv1 events: +// Construct histograms and displays them. +// Use the macro EditorBar.C for best access to the functionnalities +//*-- +//*-- Author : Yves Schutz (SUBATECH) // --- ROOT system --- -#include "TFile.h" +class TFile ; +class TH1F ; +class TH2F ; // --- Standard library --- // --- AliRoot header files --- -#include "AliPHOSv0.h" -#include "AliPHOSGeometry.h" +class AliPHOSv1 ; +class AliPHOSGeometry ; +class AliPHOSLoader ; +class AliRunLoader ; class AliPHOSAnalyze : public TObject { @@ -29,29 +33,48 @@ public: AliPHOSAnalyze() ; // ctor AliPHOSAnalyze(Text_t * name) ; // ctor + AliPHOSAnalyze(const AliPHOSAnalyze & ana) ; // cpy ctor virtual ~AliPHOSAnalyze() ; // dtor - void AnalyzeOneEvent(Int_t evt = -999) ; // analyzes a single event ; - Bool_t Init(Int_t evt) ; // does various initialisations - void DisplayKineEvent(Int_t evt = -999) ; // displays the Kine events in ALICE coordinate - void DisplayRecParticles() ; // displays RecParticles in ALICE coordinate - void DisplayRecPoints() ; // displays RecPoints in module coordinate - void DisplayTrackSegments() ; // displays TrackSegments in module coordinate - Bool_t OpenRootFile(Text_t * name) ; // opens the root file + void DrawRecon(Int_t Nevent= 0,Int_t Nmod = 1) ; + // draws positions of entering of primaries and reconstructed objects in PHOS + + void InvariantMass() ; // Photons invariant mass distributions + + void EnergyResolution () ; // analyzes Energy resolution ; + + void PositionResolution() ; // analyzes Position resolution ; + + void Contamination() ; // Counts contamination of photon spectrum + + void Ls() ; //Prints PHOS-related contents of TreeS, TreeD and TreeR + + void SetEnergyCorrection(Float_t ecor){fCorrection = ecor ;} + + AliPHOSAnalyze & operator = (const AliPHOSAnalyze & /*rvalue*/) { + // assignement operator requested by coding convention but not needed + Fatal("operator =", "not implemented") ; + return *this ; + } private: - - AliPHOSClusterizer * fClu ; // a clusterizer - Int_t fEvt ; // the evt number being processed - AliPHOSGeometry * fGeom; // the PHOS Geometry object - AliPHOSv0 * fPHOS ; // the PHOS object from the root file - AliPHOSParticleGuesser * fPag ; // a particle guesser - AliPHOSReconstructioner * fRec ; // a reconstructioner - TFile * fRootFile ; // the root file that contains the data - AliPHOSTrackSegmentMaker * fTrs ; // a tracksegmentmaker ; -public: -ClassDef(AliPHOSAnalyze,1) // PHOS event analyzis , version 1 + Float_t CorrectedEnergy(Float_t ReconstEnergy)const + {return ReconstEnergy * fCorrection;} + //Converts reconstructed energy (energy of the EMCRecPoint) to the energy of primary + //The coeficient shoud be (and was) calculated usin Erec vs. Eprim plot + //(see Energy Resolution function). However, if one change parameters of reconstruction + //or geometry, one have to recalculate coefficient! + +private: + + Float_t fCorrection ; //! Conversion coefficient between True and Reconstructed energies + Int_t fEvt ; //! the evt number being processed + TString ffileName ; //! the root file that contains the data + + AliRunLoader* fRunLoader; //! run loader of the specified filename + +ClassDef(AliPHOSAnalyze,1) // PHOSv1 event analyzis algorithm };