AliPhysics  5eaf189 (5eaf189)
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 
18 namespace EMCalTriggerPtAnalysis {
19 
20 class AliEMCalTriggerEventData;
21 
32 public:
34  AliEMCalTriggerPatchAnalysisComponent(const char *name, Bool_t withEventSelection = kFALSE);
36 
37  virtual void CreateHistos();
38  virtual void Process(const AliEMCalTriggerEventData * const data);
39 
46 
53 
59  void SetSwapOnlineThresholds(Bool_t doSwap = kTRUE) { fSwapOnlineThresholds = doSwap; }
60 
66  void SetSwapOfflineThresholds(Bool_t doSwap = kTRUE) { fSwapOfflineThresholds = doSwap; }
67 
68 protected:
69 
79  public:
85  AliEmcalTriggerPatchHandlerFactory(Bool_t swapThresholdsOnline, Bool_t swapThresholdsOffline):
86  fSwapThresholdsOnline(swapThresholdsOnline),
87  fSwapThresholdsOffline(swapThresholdsOffline)
88  {}
93  Bool_t IsPatchOfType(const AliEMCALTriggerPatchInfo *const patch, TString patchtype) const;
94 
95  protected:
96 
105  public:
109  AliEmcalTriggerPatchHandler(Bool_t doSwapOnline, Bool_t doSwapOffline):
110  fPatchSwapThresholdsOnline(doSwapOnline),
111  fPatchSwapThresholdsOffline(doSwapOffline)
112  {}
117 
118  virtual Bool_t IsOfType(const AliEMCALTriggerPatchInfo * const patch) const = 0;
119  protected:
122  };
123 
131  public:
135  AliEmcalTriggerPatchHandlerJetLow(Bool_t doSwapOnline, Bool_t doSwapOffline) :
136  AliEmcalTriggerPatchHandler(doSwapOnline, doSwapOffline)
137  {}
142  virtual Bool_t IsOfType(const AliEMCALTriggerPatchInfo * const patch) const;
143  };
144 
152  public:
156  AliEmcalTriggerPatchHandlerJetHigh(Bool_t doSwapOnline, Bool_t doSwapOffline) :
157  AliEmcalTriggerPatchHandler(doSwapOnline, doSwapOffline)
158  {}
163  virtual Bool_t IsOfType(const AliEMCALTriggerPatchInfo * const patch) const;
164  };
165 
173  public:
177  AliEmcalTriggerPatchHandlerGammaLow(Bool_t doSwapOnline, Bool_t doSwapOffline) :
178  AliEmcalTriggerPatchHandler(doSwapOnline, doSwapOffline)
179  {}
184  virtual Bool_t IsOfType(const AliEMCALTriggerPatchInfo * const patch) const;
185  };
186 
194  public:
198  AliEmcalTriggerPatchHandlerGammaHigh(Bool_t doSwapOnline, Bool_t doSwapOffline) :
199  AliEmcalTriggerPatchHandler(doSwapOnline, doSwapOffline)
200  {}
205  virtual Bool_t IsOfType(const AliEMCALTriggerPatchInfo * const patch) const;
206  };
207 
215  public:
219  AliEmcalTriggerPatchHandlerLevel0(Bool_t doSwapOnline, Bool_t doSwapOffline) :
220  AliEmcalTriggerPatchHandler(doSwapOnline, doSwapOffline)
221  {}
226  virtual Bool_t IsOfType(const AliEMCALTriggerPatchInfo * const patch) const;
227  };
228 
231  };
232 
233  void FillStandardMonitoring(const AliEMCALTriggerPatchInfo * const patch, TString eventclass = "");
234  void FillTriggerInfoHistogram(TString histo, const AliEMCALTriggerPatchInfo *const patch);
235  void FillAmplitudeHistogram(TString histo, const AliEMCALTriggerPatchInfo *const patch);
236 
240 
242  ClassDef(AliEMCalTriggerPatchAnalysisComponent, 1); // Component for trigger patch analysis
244 };
245 
246 } /* namespace EMCalTriggerPtAnalysis */
247 
248 #endif /* ALIEMCALTRIGGERPATCHANALYSISCOMPONENT_H */
Base class for analysis components.
Bool_t fWithEventSelection
Define whether patches are analysed with event selection.
void FillTriggerInfoHistogram(TString histo, const AliEMCALTriggerPatchInfo *const patch)
void FillStandardMonitoring(const AliEMCALTriggerPatchInfo *const patch, TString eventclass="")
Base class for analysis components in the analysis of EMCAL-triggered events.
Analysis of high- tracks in triggered events.
Bool_t fSwapOfflineThresholds
Swap trigger thresholds for offline patches.
Simple event container within the high- track analysis.
bool Bool_t
Definition: External.C:53
void FillAmplitudeHistogram(TString histo, const AliEMCALTriggerPatchInfo *const patch)