1 #ifndef ALIANACALOTRIGGER_H
2 #define ALIANACALOTRIGGER_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
7 // Creates an ntuple for 2x2 and NxN triggers
8 // Each ntuple connects the maximum trigger amplitudes
9 // and its positions with reconstructed clusters
11 //*-- Yves Schutz (CERN) & Gustavo Conesa Balbastre (INFN-LNF)
12 //////////////////////////////////////////////////////////////////////////////
15 #include "AliAnalysisTask.h"
22 class AliAnalysisManager ;
25 class AliAnaCaloTrigger : public AliAnalysisTask {
29 AliAnaCaloTrigger(const char *name) ;
30 AliAnaCaloTrigger(const AliAnaCaloTrigger & trig) ;
31 AliAnaCaloTrigger & operator=(const AliAnaCaloTrigger& source);
32 virtual ~AliAnaCaloTrigger() ;
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 cluster energy, and positions.
52 TNtuple * fNtTriggerNN ; //Ntuple with NxN max dig amplitude and cluster energy, and positions.
54 ClassDef(AliAnaCaloTrigger, 1); // a photon analysis task
56 #endif // ALIANACALOTRIGGER_H