1 #ifndef ALIANALYSISTASKPHOSEXAMPLE_H
2 #define ALIANALYSISTASKPHOSEXAMPLE_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 // A basic analysis task to analyse photon detected by PHOS
8 // Adapted for AliAnalysisTaskSE and AOD production
12 //////////////////////////////////////////////////////////////////////////////
15 #include "AliAnalysisTaskSE.h"
23 class AliAnalysisTaskPHOSExample : public AliAnalysisTaskSE {
26 AliAnalysisTaskPHOSExample() ;
27 AliAnalysisTaskPHOSExample(const char *name) ;
28 AliAnalysisTaskPHOSExample(const AliAnalysisTaskPHOSExample& ap) ;
29 AliAnalysisTaskPHOSExample& operator = (const AliAnalysisTaskPHOSExample& ap) ;
30 virtual ~AliAnalysisTaskPHOSExample() ;
32 virtual void UserCreateOutputObjects();
34 virtual void LocalInit() { Init() ; }
35 virtual void UserExec(Option_t * opt = "") ;
36 Float_t GetPhotonId() const { return fPhotonId ; }
37 void SetDebugLevel(Int_t level) { fDebug = level ; }
38 void SetPhotonId(Float_t threshold) { fPhotonId = threshold ; }
39 virtual void Terminate(Option_t * opt = "") ;
43 Int_t fDebug ; // Debug flag
44 TClonesArray * fAODPhotons ; //! reconstructed photons
45 Int_t fPhotonsInPhos ; //! number of photons found
47 Float_t fPhotonId ; // threshold for photon identification
50 TList * fOutputList ; //! output data list
51 TNtuple * fhPHOSPos ; //! PHOS (x,y)
52 TNtuple * fhPHOS ; //! all PHOS parameters
53 TH1D * fhPHOSEnergy ; //! PHOS energy
54 TH1I * fhPHOSDigits ; //! PHOS numer of SDigits
55 TH1D * fhPHOSRecParticles ;//! PHOS number of RecParticles
56 TH1I * fhPHOSPhotons ; //! PHOS number of photons
57 TH1D * fhPHOSInvariantMass ; //! PHOS invariant mass
58 TH1I * fhPHOSDigitsEvent ; //! PHOS numbet of Sdigits per event
60 ClassDef(AliAnalysisTaskPHOSExample, 1); // a PHOS photon analysis task
62 #endif // ALIANALYSISTASKPHOSEXAMPLE_H