]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWG4/AliAnaGammaPhos.h
filter out additional compile defines to fit into rootcints 1024 char limit
[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
d40a7452 7// A basic analysis task to analyse photon detected by PHOS
8// A basic analysis task to analyse photon detected by PHOS
ce9d0223 9//
10//*-- Yves Schutz
11//////////////////////////////////////////////////////////////////////////////
12
13#include <TTree.h>
14#include "AliAnalysisTask.h"
15
9ea45617 16class AliESDEvent ;
ce9d0223 17class AliAOD ;
18class AliAODEvent ;
19class TNtuple ;
20class TH1D ;
21class TH1I ;
22class TTree ;
23
24class AliAnaGammaPhos : public AliAnalysisTask {
25
26public:
27 AliAnaGammaPhos() ;
28 AliAnaGammaPhos(const char *name) ;
d40a7452 29 AliAnaGammaPhos(const AliAnaGammaPhos& ap) ;
30 AliAnaGammaPhos& operator = (const AliAnaGammaPhos& ap) ;
ce9d0223 31 virtual ~AliAnaGammaPhos() ;
32
33 virtual void ConnectInputData(Option_t * = "");
34 virtual void CreateOutputObjects();
35 virtual void Init() ;
36 virtual void LocalInit() { Init() ; }
37 virtual void Exec(Option_t * opt = "") ;
38 const Float_t GetPhotonId() const { return fPhotonId ; }
39 void SetDebugLevel(Int_t level) { fDebug = level ; }
40 void SetPhotonId(Float_t threshold) { fPhotonId = threshold ; }
41 virtual void Terminate(Option_t * opt = "") ;
42
43private:
44 // input and output
45 TTree * fChain ; //!pointer to the analyzed TTree or TChain
46 Int_t fDebug ; // Debug flag
9ea45617 47 AliESDEvent * fESD ; //! ESD
ce9d0223 48 AliAODEvent * fAOD ; //! AOD
49 TClonesArray * fAODPhotons ; //! reconstructed photons
50 Int_t fPhotonsInPhos ; //! number of photons found
32392f88 51 TTree * fTreeA ; // tree of identified photons
ce9d0223 52 // task parameters
53 Float_t fPhotonId ; // threshold for photon identification
54
55 // Histograms
d40a7452 56 TList * fOutputList ; //! output data list
57 TNtuple * fhPHOSPos ; // PHOS (x,y)
58 TNtuple * fhPHOS ; // all PHOS parameters
59 TH1D * fhPHOSEnergy ; // PHOS energy
60 TH1I * fhPHOSDigits ; // PHOS numer of SDigits
61 TH1D * fhPHOSRecParticles ;// PHOS number of RecParticles
62 TH1I * fhPHOSPhotons ; // PHOS number of photons
63 TH1D * fhPHOSInvariantMass ;// PHOS invariant mass
64 TH1I * fhPHOSDigitsEvent ; //PHOS numbet of Sdigits per event
ce9d0223 65
4b707925 66 ClassDef(AliAnaGammaPhos, 1); // a PHOS photon analysis task
ce9d0223 67};
68#endif // ALIANAGAMMAPHOS_H