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 trigger data in ESD with MC data
7 // Creates an ntuple for 2x2 and NxN triggers
8 // Each ntuple connects the maximum trigger amplitudes
9 // and its positions with reconstructed clusters and MC
11 //*-- Yves Schutz (CERN) & Gustavo Conesa Balbastre (INFN-LNF)
12 //////////////////////////////////////////////////////////////////////////////
14 #include "AliAnalysisTask.h"
25 class AliAnaCaloTriggerMC : public AliAnalysisTask {
28 AliAnaCaloTriggerMC();
29 AliAnaCaloTriggerMC(const char *name) ;
30 AliAnaCaloTriggerMC(const AliAnaCaloTriggerMC & trig) ;
31 AliAnaCaloTriggerMC & operator=(const AliAnaCaloTriggerMC& source);
32 virtual ~AliAnaCaloTriggerMC() ;
34 virtual void Exec(Option_t * opt = "") ;
35 virtual void ConnectInputData(Option_t *);
36 virtual void CreateOutputObjects();
37 virtual void Terminate(Option_t * opt = "") ;
39 TString GetCalorimeter() const {return fCalorimeter ; }
40 void SetCalorimeter(TString calo) {fCalorimeter = calo ; }
43 TChain * fChain ; //!pointer to the analyzed TTree or TChain
44 AliESDEvent * fESD ; //! Declaration of leave types
46 TObjArray * fOutputContainer ; //! output data container
48 TString fCalorimeter ; // "PHOS" or "EMCAL"
51 TNtuple * fNtTrigger22 ; //Ntuple with 2x2 max dig amplitude and MC particle and cluster energy, and positions.
52 TNtuple * fNtTriggerNN ; //Ntuple with NxN max dig amplitude and MC particle and cluster energy, and positions.
54 ClassDef(AliAnaCaloTriggerMC, 1); // a photon analysis task
56 #endif // ALIANACALOTRIGGERMC_H