AliPhysics  4c9ecbb (4c9ecbb)
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 
75  AliEmcalTriggerMakerTask(const char *name, Bool_t doQA = kFALSE);
76 
80  virtual ~AliEmcalTriggerMakerTask();
81 
88  virtual void UserCreateOutputObjects();
89 
101  virtual void ExecOnce();
102 
112  virtual Bool_t Run();
113 
122  virtual Bool_t IsEventSelected() { return true; }
123 
130 
131 
136  void SetCaloTriggersOutName(const char *name) { fCaloTriggersOutName = name; }
137 
142  void SetV0InName(const char *name) { fV0InName = name; }
143 
150 
156 
166 
172 
180  void SetApplyTRUMaskingToFEE(Bool_t doApply = kTRUE) {
182  }
183 
186  }
189  }
192  }
195  }
196 
204 
210 
211 protected:
212 
213 #if !(defined(__CINT__) || defined(__MAKECINT__))
214 
219  std::function<int (unsigned int, unsigned int)> GetMaskHandler() const;
220 #endif
221 
236  int RemapTRUIndex(int itru) const;
237 
248  void FillQAHistos(const TString &patchtype, const AliEMCALTriggerPatchInfo &recpatch);
249 
257  virtual void RunChanged(Int_t newrun);
258 
265 
270 
275 
277  AliVVZERO *fV0;
278 
285  TClonesArray *fCaloTriggersOut;
286 
289 
290 private:
293 
295  ClassDef(AliEmcalTriggerMakerTask, 2);
297 };
298 
299 #endif
AliVVZERO * fV0
! VZERO data
AliEmcalTriggerMakerTask()
Dummy constructor.
int RemapTRUIndex(int itru) const
Fix mapping in TRU index.
New configuration, distinction between high and low threshold.
void InitializeBadFEEChannels()
Initialize bad channels from the OADB container.
AliEmcalTriggerMakerTask & operator=(const AliEmcalTriggerMakerTask &)
void SetUseL0Amplitudes(Bool_t b)
Switch whether to use L0 or L1 amplitudes in the patch finder.
virtual void ExecOnce()
Initialize the trigger maker kernel.
Base task in the EMCAL framework.
virtual Bool_t Run()
Run trigger patch finding.
void InitializeFastORMaskingFromOADB()
Initialize the FastOR masking from the OADB.
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)
Set the name of the output container.
virtual void UserCreateOutputObjects()
Initializing output objects.
Bool_t fLoadFastORMaskingFromOCDB
Load FastOR masking from the OCDB.
void SetMaskedFastorOADBContainer(const TString &name)
Specify nane of the OADB container with masked FastOR absolute IDs.
virtual ~AliEmcalTriggerMakerTask()
Destructor.
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)
Set the name of the OADB container providing a list of absolute IDs of FEE channels to be masked (TOb...
void SetV0InName(const char *name)
Set the name of the V0 input object.
void SetUseTriggerBitConfig(TriggerMakerBitConfig_t bitConfig)
Trigger bit configuration to be used in the trigger patch maker.
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)
Set range for L0 time.
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)
Apply online bad channels (FastOR masking) to offline FEE energies.
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)
RunChanged method of the trigger maker.
void FillQAHistos(const TString &patchtype, const AliEMCALTriggerPatchInfo &recpatch)
Internal QA handler for trigger pathches of given type.
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
virtual Bool_t IsEventSelected()
Perfrom Event Selection.
Container class for histograms.
Definition: THistManager.h:99
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)
void InitializeFastORMaskingFromOCDB()
Initialize the FastOR masking from the OCDB.
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
Getter providing external access to the trigger maker kernel.
void SetTriggerThresholdJetLow(Int_t a, Int_t b, Int_t c)
void SetLoadFastORMaskingFromOCDB(Bool_t doLoad=kTRUE)
Defining whether to use the FastOR masking from the OCDB.