]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWG4/AliAnaGammaPhos.h
coding conventions, compilation warnings, code cleanup
[u/mrichter/AliRoot.git] / PWG4 / AliAnaGammaPhos.h
CommitLineData
ce9d0223 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
7//
8//*-- Yves Schutz
9//////////////////////////////////////////////////////////////////////////////
10
11#include <TTree.h>
12#include "AliAnalysisTask.h"
13
9ea45617 14class AliESDEvent ;
ce9d0223 15class AliAOD ;
16class AliAODEvent ;
17class TNtuple ;
18class TH1D ;
19class TH1I ;
20class TTree ;
21
22class AliAnaGammaPhos : public AliAnalysisTask {
23
24public:
25 AliAnaGammaPhos() ;
26 AliAnaGammaPhos(const char *name) ;
27 virtual ~AliAnaGammaPhos() ;
28
29 virtual void ConnectInputData(Option_t * = "");
30 virtual void CreateOutputObjects();
31 virtual void Init() ;
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 = "") ;
38
39private:
40 // input and output
41 TTree * fChain ; //!pointer to the analyzed TTree or TChain
42 Int_t fDebug ; // Debug flag
9ea45617 43 AliESDEvent * fESD ; //! ESD
ce9d0223 44 AliAODEvent * fAOD ; //! AOD
45 TClonesArray * fAODPhotons ; //! reconstructed photons
46 Int_t fPhotonsInPhos ; //! number of photons found
32392f88 47 TTree * fTreeA ; // tree of identified photons
ce9d0223 48 // task parameters
49 Float_t fPhotonId ; // threshold for photon identification
50
51 // Histograms
52 TList * fOutputList ; //! output data list
53 TNtuple * fhPHOSPos ;
54 TNtuple * fhPHOS ;
55 TH1D * fhPHOSEnergy ;
56 TH1I * fhPHOSDigits ;
57 TH1D * fhPHOSRecParticles ;
58 TH1I * fhPHOSPhotons ;
59 TH1D * fhPHOSInvariantMass ;
60 TH1I * fhPHOSDigitsEvent ;
61
62 ClassDef(AliAnaGammaPhos, 0); // a PHOS photon analysis task
63};
64#endif // ALIANAGAMMAPHOS_H