]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWG4/AliAnaCaloTriggerMC.h
Changing from TTree to TChain in the tag creation - Fixing TTree memory leak - Common...
[u/mrichter/AliRoot.git] / PWG4 / AliAnaCaloTriggerMC.h
CommitLineData
884e9012 1#ifndef ALIANACALOTRIGGERMC_H
2#define ALIANACALOTRIGGERMC_H
3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5//______________________________________________________________________________
6// An analysis task to check the PHOS photon data in simulated data
7//
8//*-- Yves Schutz
9//////////////////////////////////////////////////////////////////////////////
10
11#include "AliAnalysisTask.h"
12
13class AliESDEvent ;
14class TNtuple ;
15class TH1D ;
16class TH1I ;
17class TChain;
18
19class AliAnaCaloTriggerMC : public AliAnalysisTask {
20
21public:
22 AliAnaCaloTriggerMC();
23 AliAnaCaloTriggerMC(const char *name) ;
24 AliAnaCaloTriggerMC(const AliAnaCaloTriggerMC & trig) ;
25 AliAnaCaloTriggerMC & operator=(const AliAnaCaloTriggerMC& source);
26 virtual ~AliAnaCaloTriggerMC() ;
27
28 virtual void Exec(Option_t * opt = "") ;
29 virtual void ConnectInputData(Option_t *);
30 virtual void CreateOutputObjects();
31 virtual void Terminate(Option_t * opt = "") ;
32
33 TString GetCalorimeter() const {return fCalorimeter ; }
34 void SetCalorimeter(TString calo) {fCalorimeter = calo ; }
35
36private:
37 TChain * fChain ; //!pointer to the analyzed TTree or TChain
38 AliESDEvent * fESD ; //! Declaration of leave types
39
40 TObjArray * fOutputContainer ; //! output data container
41
42 TString fCalorimeter ; // "PHOS" or "EMCAL"
43
44 // Histograms
45 TNtuple * fNtTrigger22 ;
46 TNtuple * fNtTriggerNN ;
47
48 ClassDef(AliAnaCaloTriggerMC, 0); // a PHOS photon analysis task
49};
50#endif // ALIANACALOTRIGGERMC_H