]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWG4/PartCorrDep/AliAnaCaloTriggerMC.h
1)Terminate() method implemented in the frame. Simple examples on what to do with...
[u/mrichter/AliRoot.git] / PWG4 / PartCorrDep / AliAnaCaloTriggerMC.h
CommitLineData
1c5acb87 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
10//
11//*-- Yves Schutz (CERN) & Gustavo Conesa Balbastre (INFN-LNF)
12//////////////////////////////////////////////////////////////////////////////
13
14#include "AliAnalysisTask.h"
15
16class TFile ;
17class TNtuple ;
18class TH1D ;
19class TH1I ;
20class TChain;
21
22class AliMCEvent ;
23class AliESDEvent ;
24
25class AliAnaCaloTriggerMC : public AliAnalysisTask {
26
27public:
28 AliAnaCaloTriggerMC();
29 AliAnaCaloTriggerMC(const char *name) ;
30 AliAnaCaloTriggerMC(const AliAnaCaloTriggerMC & trig) ;
31 AliAnaCaloTriggerMC & operator=(const AliAnaCaloTriggerMC& source);
32 virtual ~AliAnaCaloTriggerMC() ;
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 = "") const ;
38
39 TString GetCalorimeter() const {return fCalorimeter ; }
40 void SetCalorimeter(TString calo) {fCalorimeter = calo ; }
41
42private:
43 TChain * fChain ; //!pointer to the analyzed TTree or TChain
44 AliESDEvent * fESD ; //! Declaration of leave types
45
46 TObjArray * fOutputContainer ; //! output data container
47
48 TString fCalorimeter ; // "PHOS" or "EMCAL"
49
50 // Histograms
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.
53
54 ClassDef(AliAnaCaloTriggerMC, 1); // a photon analysis task
55};
56#endif // ALIANACALOTRIGGERMC_H