AliPhysics  32b88a8 (32b88a8)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliEmcalTriggerMakerTask.h
Go to the documentation of this file.
1 #ifndef ALIEMCALTRIGGERMAKERTASK_H
2 #define ALIEMCALTRIGGERMAKERTASK_H
3 /* Copyright(c) 1998-2014, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice */
5 
7 #include "AliAnalysisTaskEmcal.h"
8 #include <TString.h>
9 #if !(defined(__CINT__) || defined(__MAKECINT__))
10 #include <functional>
11 #endif
12 
13 class TClonesArray;
14 class THistManager;
15 class AliVVZERO;
16 class AliEMCALTriggerPatchInfo;
17 
38 public:
39  /***
40  * @enum TriggerMakerTriggerBitConfig_t
41  * @brief Definition of trigger bit configurations
42  *
43  * This enumeration handles different trigger bit configurations for the
44  * EMCAL Level1 triggers (with and without different thresholds) applied
45  * in the reconstruction of different samples.
46  */
50  };
51 
59  enum Exception_t {
61  };
62 
67 
74  AliEmcalTriggerMakerTask(const char *name, Bool_t doQA = kFALSE);
75 
79  virtual ~AliEmcalTriggerMakerTask();
80 
86  virtual void UserCreateOutputObjects();
87 
93  virtual void ExecOnce();
94 
105  virtual Bool_t Run();
106 
111  void SetRunQA(Bool_t doQA = kTRUE) { fDoQA = doQA; }
112 
119 
120 
125  void SetCaloTriggersOutName(const char *name) { fCaloTriggersOutName = name; }
126 
131  void SetV0InName(const char *name) { fV0InName = name; }
132 
139 
145 
153 
160  void SetApplyTRUMaskingToFEE(Bool_t doApply = kTRUE) {
162  }
163 
166  }
169  }
172  }
175  }
176 
178 
180 
181 protected:
182 
183 #if !(defined(__CINT__) || defined(__MAKECINT__))
184 
189  std::function<int (unsigned int, unsigned int)> GetMaskHandler() const;
190 #endif
191 
200  void FillQAHistos(const TString &patchtype, const AliEMCALTriggerPatchInfo &recpatch);
201 
207  virtual void RunChanged();
208 
213 
218 
220  AliVVZERO *fV0;
221 
227  TClonesArray *fCaloTriggersOut;
228 
231 
232 private:
235 
237  ClassDef(AliEmcalTriggerMakerTask, 2);
239 };
240 
241 #endif
AliVVZERO * fV0
! VZERO data
New configuration, distinction between high and low threshold.
AliEmcalTriggerMakerTask & operator=(const AliEmcalTriggerMakerTask &)
Base task in the EMCAL framework.
TCanvas * c
Definition: TestFitELoss.C:172
Bool_t fUseL0Amplitudes
Use L0 amplitudes instead of L1 time sum (useful for runs where STU was not read) ...
void SetCaloTriggersOutName(const char *name)
Bool_t fLoadFastORMaskingFromOCDB
Load FastOR masking from the OCDB.
TString fV0InName
name of output track array
void SetRunQA(Bool_t doQA=kTRUE)
int Int_t
Definition: External.C:63
Exception_t
Definition of various exception codes used in the trigger maker.
Old configuration, no distinction between high and low threshold.
void SetMaskedFEEChannelOADBContainer(const TString &name)
void SetV0InName(const char *name)
void SetUseTriggerBitConfig(TriggerMakerBitConfig_t bitConfig)
AliEmcalTriggerMakerKernel * fTriggerMaker
The actual trigger maker kernel.
void SetTriggerThresholdGammaHigh(Int_t a, Int_t b, Int_t c)
void SetTriggerThresholdJetHigh(Int_t a, Int_t b, Int_t c)
void SetL0TimeRange(Int_t min, Int_t max)
void SetApplyOnlineBadChannelMaskingToOffline(Bool_t doApply=kTRUE)
void SetTriggerThresholdGammaLow(Int_t a, Int_t b, Int_t c)
void SetApplyTRUMaskingToFEE(Bool_t doApply=kTRUE)
EMCAL trigger maker task.
void SetTriggerThresholdGammaLow(Int_t a, Int_t b, Int_t c)
void SetL0TimeRange(Int_t min, Int_t max)
void SetTriggerThresholdGammaHigh(Int_t a, Int_t b, Int_t c)
std::function< int(unsigned int, unsigned int)> GetMaskHandler() const
void FillQAHistos(const TString &patchtype, const AliEMCALTriggerPatchInfo &recpatch)
TString fBadFEEChannelOADB
name of the OADB container containing channels to be masked inside the trigger maker ...
TString fCaloTriggersOutName
name of output track array
TClonesArray * fCaloTriggersOut
! trigger array out
Container class for histograms for the high- charged particle analysis.
Definition: THistManager.h:43
Kernel of the EMCAL trigger patch maker.
void SetTriggerThresholdJetHigh(Int_t a, Int_t b, Int_t c)
bool Bool_t
Definition: External.C:53
THistManager * fQAHistos
! Histograms for QA
void SetTriggerThresholdJetLow(Int_t a, Int_t b, Int_t c)
Bool_t fDoQA
Fill QA histograms.
AliEmcalTriggerMakerKernel * GetTriggerMaker() const
void SetTriggerThresholdJetLow(Int_t a, Int_t b, Int_t c)
void SetLoadFastORMaskingFromOCDB(Bool_t doLoad=kTRUE)