AliPhysics  v5-07-15-01 (b3d7633)
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros
AliAnalysisTaskSEHFQA.h
Go to the documentation of this file.
1 #ifndef ALIANALYSISTASKSEHFQUALITYASSURANCE_H
2 #define ALIANALYSISTASKSEHFQUALITYASSURANCE_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 
9 //*************************************************************************
13 //*************************************************************************
14 
15 #include <TROOT.h>
16 #include <TSystem.h>
17 
18 #include "AliAnalysisTaskSE.h"
19 
20 class AliRDHFCuts;
21 class TH1F;
22 class AliAODEvent;
23 class AliFlowEvent;
24 class AliFlowTrackCuts;
25 
26 class AliAnalysisTaskSEHFQA : public AliAnalysisTaskSE
27 {
28 
29  public:
30 
32 
34  AliAnalysisTaskSEHFQA(const char *name, DecChannel ch, AliRDHFCuts* cuts);
35  virtual ~AliAnalysisTaskSEHFQA();
36 
38  virtual void UserCreateOutputObjects();
39  virtual void Init();
40  virtual void LocalInit() {Init();}
41  virtual void UserExec(Option_t *option);
42  virtual void Terminate(Option_t *option);
43 
45  void SetReadMC(Bool_t mcflag){fReadMC=mcflag;}
46  void SetSimpleMode(Bool_t flag){fSimpleMode=flag;}
47  void SetTrackOn(Bool_t trackon=kTRUE){fOnOff[0]=trackon;}
48  void SetPIDOn(Bool_t pidon=kTRUE){fOnOff[1]=pidon;}
49  void SetCentralityOn(Bool_t centron=kTRUE){fOnOff[2]=centron;}
50  void SetEvSelectionOn(Bool_t evselon=kTRUE){fOnOff[3]=evselon;}
51  void SetFlowObsOn(Bool_t flowobson=kTRUE){fOnOff[4]=flowobson;}
52  void SetUseSelectionBit(Bool_t selectionbiton=kTRUE){fUseSelectionBit=selectionbiton;}
54  void SetFillDistributionsForTrackEffChecks(Bool_t filldistrtrackeffcheckson=kFALSE){fFillDistrTrackEffChecks = filldistrtrackeffcheckson;}
55 
57  AliRDHFCuts* GetCutObject() const {return fCuts;}
59  Bool_t GetTrackStatus() const {return fOnOff[0];}
60  Bool_t GetPIDStatus() const {return fOnOff[1];}
61  Bool_t GetCentralityStatus() const {return fOnOff[2];}
62  Bool_t GetEvSelStatus() const {return fOnOff[3];}
63  Bool_t GetFlowObsStatus() const {return fOnOff[4];}
64  Bool_t GetUseSelectionBit() const {return fUseSelectionBit;}
67 
68  private:
71  void FillFlowObs(AliAODEvent *aod);
72 
73  TList* fOutputEntries;
74  TList* fOutputPID;
75  TList* fOutputTrack;
76  TList* fOutputCounters;
79  TList* fOutputFlowObs;
80  DecChannel fDecayChannel; //identify the decay channel
81  AliRDHFCuts* fCuts; // object containing cuts
82  AliFlowEvent *fFlowEvent;
83  AliFlowTrackCuts *fRFPcuts;
84  AliRDHFCuts::ECentrality fEstimator; //2nd estimator for centrality
85  Bool_t fReadMC;
86  Bool_t fSimpleMode;
88  Bool_t fOnOff[5];
90 
92  ClassDef(AliAnalysisTaskSEHFQA,10);
93 };
95 
96 #endif
97 
Bool_t fOnOff[5]
flag to use or not the selection bit
void SetEvSelectionOn(Bool_t evselon=kTRUE)
TList * fOutputCounters
! list sent on output slot 5
Bool_t GetUseSelectionBit() const
Bool_t GetFillDistributionsForTrackEffChecks() const
Bool_t fUseSelectionBit
if true, don't do candidates (much faster in PbPb)
virtual void UserCreateOutputObjects()
Implementation of interface methods.
void SetUseSelectionBit(Bool_t selectionbiton=kTRUE)
AliRDHFCuts * GetCutObject() const
getters
Bool_t GetEvSelStatus() const
Bool_t GetCentralityStatus() const
DecChannel GetDecayChannel() const
TList * fOutputEvSelection
! list sent on output slot 7
AliFlowEvent * fFlowEvent
! to handle the reusage of the flowEvent object
void SetPIDOn(Bool_t pidon=kTRUE)
AliRDHFCuts::ECentrality fEstimator
void SetTrackOn(Bool_t trackon=kTRUE)
void SetReadMC(Bool_t mcflag)
setters
TList * fOutputPID
! list sent on output slot 2
AliRDHFCuts::ECentrality GetSecondCentralityEstimator() const
TList * fOutputCheckCentrality
! list sent on output slot 6
TList * fOutputEntries
! list sent on output slot 1
virtual void UserExec(Option_t *option)
Bool_t GetFlowObsStatus() const
void SetFlowObsOn(Bool_t flowobson=kTRUE)
TList * fOutputFlowObs
! list sent on output slot 8
Bool_t fSimpleMode
flag to read MC
AliFlowTrackCuts * fRFPcuts
! reference flow particle cuts
void SetFillDistributionsForTrackEffChecks(Bool_t filldistrtrackeffcheckson=kFALSE)
Bool_t GetTrackStatus() const
void SetSimpleMode(Bool_t flag)
TList * fOutputTrack
! list sent on output slot 3
void SetSecondCentralityEstimator(AliRDHFCuts::ECentrality est)
virtual void Terminate(Option_t *option)
void FillFlowObs(AliAODEvent *aod)
AliAnalysisTaskSEHFQA operator=(const AliAnalysisTaskSEHFQA &source)
void SetCentralityOn(Bool_t centron=kTRUE)
Bool_t fFillDistrTrackEffChecks
on-off the QA on tracks (0), PID (1), centrality (2), event selection – default is {kTRUE...