Compilation on Windows/Cygwin
[u/mrichter/AliRoot.git] / PWG4 / AliAnaCaloTrigger.h
CommitLineData
f3299f82 1#ifndef ALIANACALOTRIGGER_H
2#define ALIANACALOTRIGGER_H
6c3efb37 3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5//______________________________________________________________________________
f38b754b 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
6c3efb37 10//
f38b754b 11//*-- Yves Schutz (CERN) & Gustavo Conesa Balbastre (INFN-LNF)
6c3efb37 12//////////////////////////////////////////////////////////////////////////////
13
9ea45617 14
6c3efb37 15#include "AliAnalysisTask.h"
f38b754b 16class TFile ;
6c3efb37 17class TNtuple ;
18class TH1D ;
19class TH1I ;
9ea45617 20class TChain;
6c3efb37 21
f38b754b 22class AliAnalysisManager ;
23class AliESDEvent ;
24
f3299f82 25class AliAnaCaloTrigger : public AliAnalysisTask {
6c3efb37 26
27public:
9ea45617 28 AliAnaCaloTrigger() ;
f3299f82 29 AliAnaCaloTrigger(const char *name) ;
463ee300 30 AliAnaCaloTrigger(const AliAnaCaloTrigger & trig) ;
31 AliAnaCaloTrigger & operator=(const AliAnaCaloTrigger& source);
f3299f82 32 virtual ~AliAnaCaloTrigger() ;
6c3efb37 33
34 virtual void Exec(Option_t * opt = "") ;
35 virtual void ConnectInputData(Option_t *);
36 virtual void CreateOutputObjects();
37 virtual void Terminate(Option_t * opt = "") ;
38
f3299f82 39 TString GetCalorimeter() const {return fCalorimeter ; }
40 void SetCalorimeter(TString calo) {fCalorimeter = calo ; }
41
6c3efb37 42private:
9ea45617 43 TChain * fChain ; //!pointer to the analyzed TTree or TChain
44 AliESDEvent * fESD ; //! Declaration of leave types
6c3efb37 45
46 TObjArray * fOutputContainer ; //! output data container
47
f3299f82 48 TString fCalorimeter ; // "PHOS" or "EMCAL"
49
6c3efb37 50 // Histograms
f38b754b 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.
6c3efb37 53
4b707925 54 ClassDef(AliAnaCaloTrigger, 1); // a photon analysis task
6c3efb37 55};
f3299f82 56#endif // ALIANACALOTRIGGER_H