AliPhysics  e59a9ba (e59a9ba)
 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 
10 class TClonesArray;
11 class THistManager;
12 class AliVVZERO;
13 class AliEMCALTriggerPatchInfo;
14 
32 public:
33  /***
34  * \enum TriggerMakerTriggerBitConfig_t
35  * \brief Definition of trigger bit configurations
36  *
37  * This enumeration handles different trigger bit configurations for the
38  * EMCAL Level1 triggers (with and without different thresholds) applied
39  * in the reconstruction of different samples.
40  */
44  };
45 
50 
57  AliEmcalTriggerMakerTask(const char *name, Bool_t doQA = kFALSE);
58 
62  virtual ~AliEmcalTriggerMakerTask();
63 
69  virtual void UserCreateOutputObjects();
70 
76  virtual void ExecOnce();
77 
88  virtual Bool_t Run();
89 
94  void SetRunQA(Bool_t doQA = kTRUE) { fDoQA = doQA; }
95 
101  void SetL0TimeRange(Int_t min, Int_t max) { if (fTriggerMaker) fTriggerMaker->SetL0TimeRange(min, max); }
102 
103 
108  void SetCaloTriggersOutName(const char *name) { fCaloTriggersOutName = name; }
109 
114  void SetV0InName(const char *name) { fV0InName = name; }
115 
121  void SetMaskedFEEChannelOADBContainer(const TString &name) { fBadFEEChannelOADB = name; }
122 
128 
129  void SetTriggerThresholdJetLow ( Int_t a, Int_t b, Int_t c ) {
131  }
132  void SetTriggerThresholdJetHigh ( Int_t a, Int_t b, Int_t c ) {
134  }
135  void SetTriggerThresholdGammaLow ( Int_t a, Int_t b, Int_t c ) {
137  }
138  void SetTriggerThresholdGammaHigh( Int_t a, Int_t b, Int_t c ) {
140  }
141 
143 
144  void SetUseL0Amplitudes(Bool_t b) { fUseL0Amplitudes = b ; }
145 
146 protected:
147 
156  void FillQAHistos(const TString &patchtype, const AliEMCALTriggerPatchInfo &recpatch);
157 
163  virtual void RunChanged();
164 
169 
171  AliVVZERO *fV0;
172 
174  TString fV0InName;
177  TClonesArray *fCaloTriggersOut;
178 
179  Bool_t fDoQA;
181 
182 private:
185 
187  ClassDef(AliEmcalTriggerMakerTask, 2);
189 };
190 
191 #endif
AliVVZERO * fV0
! VZERO data
New configuration, distiction between high and low threshold.
AliEmcalTriggerMakerTask & operator=(const AliEmcalTriggerMakerTask &)
Base task in the EMCAL framework.
Bool_t fUseL0Amplitudes
Use L0 amplitudes instead of L1 time sum (useful for runs where STU was not read) ...
void SetCaloTriggersOutName(const char *name)
TString fV0InName
name of output track array
void SetRunQA(Bool_t doQA=kTRUE)
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 SetTriggerThresholdGammaLow(Int_t a, Int_t b, Int_t c)
EMCAL trigger maker taskThe EMCAL trigger maker task steers the process building trigger patches...
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)
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 makerThe trigger maker kernel contains the core functionality of th...
void SetTriggerThresholdJetHigh(Int_t a, Int_t b, Int_t c)
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)