AliPhysics  vAN-20150429 (ffa5c54)
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros
AliEMCalTriggerPatchAnalysisComponent.h
Go to the documentation of this file.
1 
8 #ifndef ALIEMCALTRIGGERPATCHANALYSISCOMPONENT_H
9 #define ALIEMCALTRIGGERPATCHANALYSISCOMPONENT_H
10 /* Copyright(c) 1998-2014, ALICE Experiment at CERN, All rights reserved. *
11  * See cxx source for full Copyright notice */
12 
13 #include <TString.h>
15 
16 class AliEmcalTriggerPatchInfo;
17 
25 namespace EMCalTriggerPtAnalysis {
26 
27 class AliEMCalTriggerEventData;
28 
39 public:
41  AliEMCalTriggerPatchAnalysisComponent(const char *name, Bool_t withEventSelection = kFALSE);
43 
44  virtual void CreateHistos();
45  virtual void Process(const AliEMCalTriggerEventData * const data);
46 
52  Bool_t IsSwapOnlineThresholds() const { return fSwapOnlineThresholds; }
53 
60 
66  void SetSwapOnlineThresholds(Bool_t doSwap = kTRUE) { fSwapOnlineThresholds = doSwap; }
67 
73  void SetTriggerMethod(ETriggerMethod_t triggermethod) { fTriggerMethod = triggermethod; }
74 
80  void SetSwapOfflineThresholds(Bool_t doSwap = kTRUE) { fSwapOfflineThresholds = doSwap; }
81 
82 protected:
83 
93  public:
99  AliEmcalTriggerPatchHandlerFactory(Bool_t swapThresholdsOnline, Bool_t swapThresholdsOffline):
100  fSwapThresholdsOnline(swapThresholdsOnline),
101  fSwapThresholdsOffline(swapThresholdsOffline)
102  {}
107  Bool_t IsPatchOfType(const AliEmcalTriggerPatchInfo *const patch, TString patchtype) const;
108 
109  protected:
110 
119  public:
123  AliEmcalTriggerPatchHandler(Bool_t doSwapOnline, Bool_t doSwapOffline):
124  fPatchSwapThresholdsOnline(doSwapOnline),
125  fPatchSwapThresholdsOffline(doSwapOffline)
126  {}
131 
132  virtual Bool_t IsOfType(const AliEmcalTriggerPatchInfo * const patch) const = 0;
133  protected:
136  };
137 
145  public:
149  AliEmcalTriggerPatchHandlerJetLow(Bool_t doSwapOnline, Bool_t doSwapOffline) :
150  AliEmcalTriggerPatchHandler(doSwapOnline, doSwapOffline)
151  {}
156  virtual Bool_t IsOfType(const AliEmcalTriggerPatchInfo * const patch) const;
157  };
158 
166  public:
170  AliEmcalTriggerPatchHandlerJetHigh(Bool_t doSwapOnline, Bool_t doSwapOffline) :
171  AliEmcalTriggerPatchHandler(doSwapOnline, doSwapOffline)
172  {}
177  virtual Bool_t IsOfType(const AliEmcalTriggerPatchInfo * const patch) const;
178  };
179 
187  public:
191  AliEmcalTriggerPatchHandlerGammaLow(Bool_t doSwapOnline, Bool_t doSwapOffline) :
192  AliEmcalTriggerPatchHandler(doSwapOnline, doSwapOffline)
193  {}
198  virtual Bool_t IsOfType(const AliEmcalTriggerPatchInfo * const patch) const;
199  };
200 
208  public:
212  AliEmcalTriggerPatchHandlerGammaHigh(Bool_t doSwapOnline, Bool_t doSwapOffline) :
213  AliEmcalTriggerPatchHandler(doSwapOnline, doSwapOffline)
214  {}
219  virtual Bool_t IsOfType(const AliEmcalTriggerPatchInfo * const patch) const;
220  };
221 
229  public:
233  AliEmcalTriggerPatchHandlerLevel0(Bool_t doSwapOnline, Bool_t doSwapOffline) :
234  AliEmcalTriggerPatchHandler(doSwapOnline, doSwapOffline)
235  {}
240  virtual Bool_t IsOfType(const AliEmcalTriggerPatchInfo * const patch) const;
241  };
242 
245  };
246 
247  void FillStandardMonitoring(const AliEmcalTriggerPatchInfo * const patch, TString eventclass = "");
248  void FillTriggerInfoHistogram(TString histo, const AliEmcalTriggerPatchInfo *const patch);
249  void FillAmplitudeHistogram(TString histo, const AliEmcalTriggerPatchInfo *const patch);
250 
255 
257  ClassDef(AliEMCalTriggerPatchAnalysisComponent, 1); // Component for trigger patch analysis
259 };
260 
261 } /* namespace EMCalTriggerPtAnalysis */
262 
263 #endif /* ALIEMCALTRIGGERPATCHANALYSISCOMPONENT_H */
ETriggerMethod_t
Methods available to select event as triggered events.
Base class for analysis components.
void FillAmplitudeHistogram(TString histo, const AliEmcalTriggerPatchInfo *const patch)
Bool_t fWithEventSelection
Define whether patches are analysed with event selection.
ETriggerMethod_t fTriggerMethod
Trigger method used for event selection.
void FillTriggerInfoHistogram(TString histo, const AliEmcalTriggerPatchInfo *const patch)
Base class for analysis components in the analysis of EMCAL-triggered events.
void FillStandardMonitoring(const AliEmcalTriggerPatchInfo *const patch, TString eventclass="")
Bool_t fSwapOfflineThresholds
Swap trigger thresholds for offline patches.