1 #ifndef ALIANAGAMMAPHOS_H
2 #define ALIANAGAMMAPHOS_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5 //______________________________________________________________________________
6 // A basic analysis task to analyse photon detected by PHOS
9 //////////////////////////////////////////////////////////////////////////////
12 #include "AliAnalysisTask.h"
22 class AliAnaGammaPhos : public AliAnalysisTask {
26 AliAnaGammaPhos(const char *name) ;
27 virtual ~AliAnaGammaPhos() ;
29 virtual void ConnectInputData(Option_t * = "");
30 virtual void CreateOutputObjects();
32 virtual void LocalInit() { Init() ; }
33 virtual void Exec(Option_t * opt = "") ;
34 const Float_t GetPhotonId() const { return fPhotonId ; }
35 void SetDebugLevel(Int_t level) { fDebug = level ; }
36 void SetPhotonId(Float_t threshold) { fPhotonId = threshold ; }
37 virtual void Terminate(Option_t * opt = "") ;
41 TTree * fChain ; //!pointer to the analyzed TTree or TChain
42 Int_t fDebug ; // Debug flag
43 AliESD * fESD ; //! ESD
44 AliAODEvent * fAOD ; //! AOD
45 TClonesArray * fAODPhotons ; //! reconstructed photons
46 Int_t fPhotonsInPhos ; //! number of photons found
47 TTree * fTreeA ; // tree of identified photons
49 Float_t fPhotonId ; // threshold for photon identification
52 TList * fOutputList ; //! output data list
57 TH1D * fhPHOSRecParticles ;
58 TH1I * fhPHOSPhotons ;
59 TH1D * fhPHOSInvariantMass ;
60 TH1I * fhPHOSDigitsEvent ;
62 ClassDef(AliAnaGammaPhos, 0); // a PHOS photon analysis task
64 #endif // ALIANAGAMMAPHOS_H