AliPhysics  66e96a0 (66e96a0)
 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 
122  void SetTriggerThresholdJetLow ( Int_t a, Int_t b, Int_t c ) {
124  }
125  void SetTriggerThresholdJetHigh ( Int_t a, Int_t b, Int_t c ) {
127  }
128  void SetTriggerThresholdGammaLow ( Int_t a, Int_t b, Int_t c ) {
130  }
131  void SetTriggerThresholdGammaHigh( Int_t a, Int_t b, Int_t c ) {
133  }
134 
136 
137  void SetUseL0Amplitudes(Bool_t b) { fUseL0Amplitudes = b ; }
138 
139 protected:
140 
141  void FillQAHistos(const TString &patchtype, const AliEMCALTriggerPatchInfo &recpatch);
142 
144  AliVVZERO *fV0;
145 
147  TString fV0InName;
149  TClonesArray *fCaloTriggersOut;
150 
151  Bool_t fDoQA;
152  THistManager *fQAHistos;
153 
154 private:
157 
159  ClassDef(AliEmcalTriggerMakerTask, 2);
161 };
162 
163 #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 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 fCaloTriggersOutName
name of output track array
TClonesArray * fCaloTriggersOut
! trigger array out
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)