AliPhysics  ff07904 (ff07904)
AliAnalysisTaskSEHFTreeCreator.h
Go to the documentation of this file.
1 #ifndef AliAnalysisTaskSEHFTreeCreator_H
2 #define AliAnalysisTaskSEHFTreeCreator_H
3 
4 /* Copyright(c) 1998-2009, ALICE Experiment at CERN, All rights reserved. *
5  * See cxx source for full Copyright notice */
6 
7 /* $Id$ */
8 
17 
18 #include <TROOT.h>
19 #include <TSystem.h>
20 #include <TNtuple.h>
21 #include <TTree.h>
22 #include <TH1F.h>
23 #include <TH2F.h>
24 #include <TH3F.h>
25 
26 #include "AliAnalysisTaskSE.h"
27 #include "AliRDHFCutsD0toKpi.h"
28 #include "AliRDHFCutsDstoKKpi.h"
31 #include "AliHFCutOptTreeHandler.h"
32 
33 
34 class AliAODEvent;
35 
37 {
38 public:
39 
41  AliAnalysisTaskSEHFTreeCreator(const char *name,TList *cutsList);
43 
44 
46  virtual void UserCreateOutputObjects();
47  virtual void Init();
48  virtual void LocalInit() {Init();}
49  virtual void UserExec(Option_t *option);
50  virtual void Terminate(Option_t *option);
51 
52 
53  void SetReadMC(Bool_t opt=kFALSE){fReadMC=opt;}
63 
64 
65  Int_t GetSystem() const {return fSys;}
67 
68  void Process2Prong(TClonesArray *array2prong, AliAODEvent *aod, TClonesArray *arrMC, Float_t centrality);
69  void Process3Prong(TClonesArray *array3Prong, AliAODEvent *aod, TClonesArray *arrMC, Float_t centrality);
70 
71 private:
72 
75 
76 
77 
78  TH1F *fNentries;
79  TList *fListCuts; // list of cuts sent to output slot 2
80  AliRDHFCutsD0toKpi *fFiltCutsD0toKpi; // D0toKpi filtering (or loose) cuts
81  AliRDHFCutsDstoKKpi *fFiltCutsDstoKKpi; // DstoKKpi filtering (or loose) cuts
82  AliRDHFCutsDplustoKpipi *fFiltCutsDplustoKpipi; // DplustoKpipi filtering (or loose) cuts
83  AliRDHFCutsD0toKpi *fCutsD0toKpi; // D0toKpi analysis cuts
84  AliRDHFCutsDstoKKpi *fCutsDstoKKpi; // DstoKKpi analysis cuts
85  AliRDHFCutsDplustoKpipi *fCutsDplustoKpipi; // DplustoKpipi analysis cuts
86  Bool_t fReadMC; // flag for MC array: kTRUE = read it, kFALSE = do not read it
90  Int_t fSys; // fSys=0 -> p-p; fSys=1 ->PbPb
91  Int_t fAODProtection; // flag to activate protection against AOD-dAOD mismatch.
92  // -1: no protection, 0: check AOD/dAOD nEvents only, 1: check AOD/dAOD nEvents + TProcessID names
93  Int_t fWriteVariableTreeD0; // flag to decide whether to write the candidate variables on a tree variables
94  // 0 don't fill
95  // 1 fill standard tree
96  Int_t fWriteVariableTreeDs; // flag to decide whether to write the candidate variables on a tree variables
97  // 0 don't fill
98  // 1 fill standard tree
99  Int_t fWriteVariableTreeDplus; // flag to decide whether to write the candidate variables on a tree variables
100  // 0 don't fill
101  // 1 fill standard tree
113 
114 
115 
117  ClassDef(AliAnalysisTaskSEHFTreeCreator,1);
119 };
120 
121 #endif
122 
TTree * fVariablesTreeD0
! tree of the candidate variables
TList * fListCounter
! list for normalization counter on output slot 3
TTree * fVariablesTreeDs
! tree of the candidate variables
centrality
virtual void UserCreateOutputObjects()
Implementation of interface methods.
void Process3Prong(TClonesArray *array3Prong, AliAODEvent *aod, TClonesArray *arrMC, Float_t centrality)
Class for cuts on AOD reconstructed D+->Kpipi.
AliHFCutOptTreeHandler * fTreeHandlerDplus
! helper object for the tree with topological variables
int Int_t
Definition: External.C:63
float Float_t
Definition: External.C:68
AliHFCutOptTreeHandler * fTreeHandlerD0
! helper object for the tree with topological variables
TTree * fVariablesTreeDplus
! tree of the candidate variables
AliNormalizationCounter * fCounter
! AliNormalizationCounter
AliHFCutOptTreeHandler * fTreeHandlerDs
! helper object for the tree with topological variables
const char Option_t
Definition: External.C:48
bool Bool_t
Definition: External.C:53
AliRDHFCutsDplustoKpipi * fFiltCutsDplustoKpipi
void Process2Prong(TClonesArray *array2prong, AliAODEvent *aod, TClonesArray *arrMC, Float_t centrality)
AliAnalysisTaskSEHFTreeCreator & operator=(const AliAnalysisTaskSEHFTreeCreator &)
TH1F * fNentries
! histogram with number of events on output slot 1