AliPhysics  4c20e6b (4c20e6b)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliEmcalTriggerQATask.h
Go to the documentation of this file.
1 
13 #ifndef ALIEMCALTRIGGERQATASK_H
14 #define ALIEMCALTRIGGERQATASK_H
15 /* Copyright(c) 1998-2015, ALICE Experiment at CERN, All rights reserved. *
16  * See cxx source for full Copyright notice */
17 
18 class TClonesArray;
19 class TObjArray;
20 class THistManager;
21 class TString;
22 class THnSparse;
23 
24 #include "AliEMCALTriggerQA.h"
25 #include "AliLog.h"
26 #include "AliAnalysisTaskEmcal.h"
27 
35  public:
36 
54  };
55 
72 
75 
78 
84 
87 
90 
94 
96  };
97 
99  AliEmcalTriggerQATask(const char *name);
100  virtual ~AliEmcalTriggerQATask();
101 
102  void SetTriggerPatchesName(const char *name) { fTriggerPatchesName = name; }
103  void SetBkgPatchType(Int_t t);
104  void SetADCperBin(Int_t n);
105  void SetNCentBins(Int_t n);
106 
107  AliEMCALTriggerQA* GetTriggerQA(Int_t i = 0) { return i >= 0 && i < fNcentBins ? static_cast<AliEMCALTriggerQA*>(fEMCALTriggerQA->At(i)) : 0; }
108 
110 
111  protected:
113  void ExecOnce();
114  Bool_t Run();
115  Bool_t FillHistograms();
116  void FillEventQA();
117 
118  UInt_t SteerFiredTriggers(const TString& firedTriggersStr) const;
119 
121 
123  TObjArray *fEMCALTriggerQA;
124  Int_t fADCperBin;
126 
127  TClonesArray *fTriggerPatches;
129  THnSparse *fHistEventQA;
130 
131  private:
132  AliEmcalTriggerQATask(const AliEmcalTriggerQATask&); // not implemented
133  AliEmcalTriggerQATask &operator=(const AliEmcalTriggerQATask&); // not implemented
134 
136  ClassDef(AliEmcalTriggerQATask, 2) // Task to make QA of EMCAL trigger
138 };
139 
140 #endif
Int_t fADCperBin
ADC counts per bin.
void SetTriggerPatchesName(const char *name)
TClonesArray * fTriggerPatches
! trigger array in
Base task in the EMCAL framework.
EMCAL trigger QA task.
TString fTriggerPatchesName
name of input trigger array
TH1 * fHistEMCalTriggers
! EMCal triggers
THnSparse * fHistEventQA
! Event QA
UInt_t SteerFiredTriggers(const TString &firedTriggersStr) const
AliEmcalTriggerQATask & operator=(const AliEmcalTriggerQATask &)
TObjArray * fEMCALTriggerQA
produces the QA histograms
Int_t fBkgPatchType
Background patch type.
TString fCaloTriggerNames[kLastCaloTrigger]
names of the calo trigger classes
AliEMCALTriggerQA * GetTriggerQA(Int_t i=0)