]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWG4/PartCorrDep/AliAnalysisTaskPHOSExample.h
declare the size of this histograms array in the header after //
[u/mrichter/AliRoot.git] / PWG4 / PartCorrDep / AliAnalysisTaskPHOSExample.h
CommitLineData
1c5acb87 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
9// by Gustavo Conesa
10//
11//*-- Yves Schutz
12//////////////////////////////////////////////////////////////////////////////
13
14class TTree ;
15#include "AliAnalysisTaskSE.h"
16
17class AliESDEvent ;
18class AliAODEvent ;
19class TNtuple ;
20class TH1D ;
21class TH1I ;
22
23class AliAnalysisTaskPHOSExample : public AliAnalysisTaskSE {
24
25public:
26 AliAnalysisTaskPHOSExample() ;
27 AliAnalysisTaskPHOSExample(const char *name) ;
28 AliAnalysisTaskPHOSExample(const AliAnalysisTaskPHOSExample& ap) ;
29 AliAnalysisTaskPHOSExample& operator = (const AliAnalysisTaskPHOSExample& ap) ;
30 virtual ~AliAnalysisTaskPHOSExample() ;
31
32 virtual void UserCreateOutputObjects();
33 virtual void Init() ;
34 virtual void LocalInit() { Init() ; }
35 virtual void UserExec(Option_t * opt = "") ;
3c769bf6 36 Float_t GetPhotonId() const { return fPhotonId ; }
1c5acb87 37 void SetDebugLevel(Int_t level) { fDebug = level ; }
38 void SetPhotonId(Float_t threshold) { fPhotonId = threshold ; }
39 virtual void Terminate(Option_t * opt = "") ;
40
41private:
42 // input and output
43 Int_t fDebug ; // Debug flag
44 TClonesArray * fAODPhotons ; //! reconstructed photons
45 Int_t fPhotonsInPhos ; //! number of photons found
46 // task parameters
47 Float_t fPhotonId ; // threshold for photon identification
48
49 // Histograms
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
59
60 ClassDef(AliAnalysisTaskPHOSExample, 1); // a PHOS photon analysis task
61};
62#endif // ALIANALYSISTASKPHOSEXAMPLE_H