AliPhysics  9538fdd (9538fdd)
 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 
113 
114 
119  void SetCaloTriggersOutName(const char *name) { fCaloTriggersOutName = name; }
120 
125  void SetV0InName(const char *name) { fV0InName = name; }
126 
133 
139 
147 
149 
156  void SetApplyTRUMaskingToFEE(Bool_t doApply = kTRUE) {
158  }
159 
162  }
165  }
168  }
171  }
172 
174 
176 
177 protected:
178 
179 #if !(defined(__CINT__) || defined(__MAKECINT__))
180 
185  std::function<int (unsigned int, unsigned int)> GetMaskHandler() const;
186 #endif
187 
196  void FillQAHistos(const TString &patchtype, const AliEMCALTriggerPatchInfo &recpatch);
197 
204  virtual void RunChanged(Int_t newrun);
205 
210 
215 
220 
222  AliVVZERO *fV0;
223 
230  TClonesArray *fCaloTriggersOut;
231 
234 
235 private:
238 
240  ClassDef(AliEmcalTriggerMakerTask, 2);
242 };
243 
244 #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.
void SetMaskedFastorOADBContainer(const TString &name)
TString fV0InName
name of output track array
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)
Apply online bad channel masking to offline channel energies. This means that cell energies in cells ...
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)
Set range for L0 time.
void SetTriggerThresholdGammaHigh(Int_t a, Int_t b, Int_t c)
std::function< int(unsigned int, unsigned int)> GetMaskHandler() const
virtual void RunChanged(Int_t newrun)
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.
Definition: THistManager.h:43
Kernel of the EMCAL trigger patch maker.
TString fMaskedFastorOADB
name of the OADB container containing fastors to be masked inside the trigger 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)