AliPhysics  e59a9ba (e59a9ba)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliEmcalCellMonitorTask.h
Go to the documentation of this file.
1 #ifndef ALIEMCALCELLMONITOR_H_
2 #define ALIEMCALCELLMONITOR_H_
3 /* Copyright(c) 1998-2016, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice */
5 
6 #include "AliAnalysisTaskSE.h"
7 #include <TCustomBinning.h>
8 #include <TString.h>
9 #include <vector>
10 
11 class TArrayD;
12 class THistManager;
13 class AliEMCALGeometry;
14 
33 class AliEmcalCellMonitorTask : public AliAnalysisTaskSE {
34 public:
35 
40 
45  AliEmcalCellMonitorTask(const char *name);
46 
50  virtual ~AliEmcalCellMonitorTask();
51 
57  void SetMinCellAmplitudeForCellTime(Double_t minAmp) { fMinCellAmplitude = minAmp; }
58 
64  void SetRequestTrigger(ULong_t triggerbits, TString triggerstring = "") {
65  fRequestTrigger = triggerbits;
66  fTriggerString = triggerstring;
67  }
68 
72  void SetRun2() { fNumberOfCells = 17664; }
73 
78  void SetBadCell(Int_t cellId);
79 
85  void InitBadChannelsFromContainer(const TString &containername) { fBadChannelContainer = containername; }
86 
87 protected:
88 
102  public:
103 
108 
113  };
114 
126  virtual void UserCreateOutputObjects();
127 
136  virtual void UserExec(Option_t *);
137 
143  bool IsCellMasked(Int_t cellId) const;
144 
148  void LoadCellMasking();
149 
150 private:
152  AliEMCALGeometry *fGeometry;
153 
154  Double_t fMinCellAmplitude;
155  ULong_t fRequestTrigger;
156  TString fTriggerString;
159  Int_t fOldRun;
160 
161  std::vector<Int_t> fMaskedCells;
162 
165 
167  ClassDef(AliEmcalCellMonitorTask, 1);
169 };
170 
171 #endif /* ALIEMCALCELLMONITORTASK_H_ */
void SetRequestTrigger(ULong_t triggerbits, TString triggerstring="")
std::vector< Int_t > fMaskedCells
Vector of masked cells.
void InitBadChannelsFromContainer(const TString &containername)
ULong_t fRequestTrigger
Trigger selection.
bool IsCellMasked(Int_t cellId) const
void SetMinCellAmplitudeForCellTime(Double_t minAmp)
Helper class creating user defined custom binning.
Int_t fNumberOfCells
Number of cells.
virtual void UserExec(Option_t *)
TString fTriggerString
Trigger string in addition to trigger selection.
Double_t fMinCellAmplitude
Min. cell amplitude requested for cell time and frequency.
Int_t fOldRun
! Old Run number (for run change check)
Container class for histograms for the high- charged particle analysis.
Definition: THistManager.h:43
AliEmcalCellMonitorTask & operator=(const AliEmcalCellMonitorTask &ref)
AliEMCALGeometry * fGeometry
! EMCAL geometry
TString fBadChannelContainer
Bad channel container name.
THistManager * fHistManager
! Histogram handler
Simple monitoring task for cell related quantities.