AliPhysics  ec707b8 (ec707b8)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator 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 #include "AliEMCALTriggerChannelContainer.h"
28 
36  public:
37 
55  };
56 
73 
76 
79 
85 
88 
91 
95 
97  };
98 
100  AliEmcalTriggerQATask(const char *name);
101  virtual ~AliEmcalTriggerQATask();
102 
103  void SetTriggerPatchesName(const char *name) { fTriggerPatchesName = name; }
104  void SetBkgPatchType(Int_t t);
105  void SetADCperBin(Int_t n);
106  void SetNCentBins(Int_t n);
107 
108  AliEMCALTriggerQA* GetTriggerQA(Int_t i = 0) { return i >= 0 && i < fNcentBins ? static_cast<AliEMCALTriggerQA*>(fEMCALTriggerQA->At(i)) : 0; }
109 
111 
112  protected:
114  void ExecOnce();
115  Bool_t Run();
116  Bool_t FillHistograms();
117  void FillEventQA();
118 
119  UInt_t SteerFiredTriggers(const TString& firedTriggersStr) const;
120 
122 
124  TObjArray *fEMCALTriggerQA;
125  Int_t fADCperBin;
127  AliEMCALTriggerChannelContainer fBadChannels;
128 
129  TClonesArray *fTriggerPatches;
131  THnSparse *fHistEventQA;
132 
133  private:
134  AliEmcalTriggerQATask(const AliEmcalTriggerQATask&); // not implemented
135  AliEmcalTriggerQATask &operator=(const AliEmcalTriggerQATask&); // not implemented
136 
138  ClassDef(AliEmcalTriggerQATask, 1) // Task to make QA of EMCAL trigger
140 };
141 
142 #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.
AliEMCALTriggerChannelContainer fBadChannels
Container of bad channels.
TString fCaloTriggerNames[kLastCaloTrigger]
names of the calo trigger classes
AliEMCALTriggerQA * GetTriggerQA(Int_t i=0)