AliPhysics  b555aef (b555aef)
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 
120 
121 
126  void SetCaloTriggersOutName(const char *name) { fCaloTriggersOutName = name; }
127 
132  void SetV0InName(const char *name) { fV0InName = name; }
133 
140 
146 
156 
162 
170  void SetApplyTRUMaskingToFEE(Bool_t doApply = kTRUE) {
172  }
173 
176  }
179  }
182  }
185  }
186 
194 
200 
201 protected:
202 
203 #if !(defined(__CINT__) || defined(__MAKECINT__))
204 
209  std::function<int (unsigned int, unsigned int)> GetMaskHandler() const;
210 #endif
211 
222  void FillQAHistos(const TString &patchtype, const AliEMCALTriggerPatchInfo &recpatch);
223 
231  virtual void RunChanged(Int_t newrun);
232 
239 
244 
249 
251  AliVVZERO *fV0;
252 
259  TClonesArray *fCaloTriggersOut;
260 
263 
264 private:
267 
269  ClassDef(AliEmcalTriggerMakerTask, 2);
271 };
272 
273 #endif
AliVVZERO * fV0
! VZERO data
AliEmcalTriggerMakerTask()
Dummy constructor.
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
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.