AliPhysics  e34b7ac (e34b7ac)
 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 
59 public:
60 
65 
70  AliEmcalCellMonitorTask(const char *name);
71 
75  virtual ~AliEmcalCellMonitorTask();
76 
83 
89  void SetRequestTrigger(ULong_t triggerbits, TString triggerstring = "") {
90  fRequestTrigger = triggerbits;
91  fTriggerString = triggerstring;
92  }
93 
97  void SetRun2() { fNumberOfCells = 17664; }
98 
103  void SetBadCell(Int_t cellId);
104 
114  void SetNameClusterContainer(const TString &nameclusters) { fNameClusters = nameclusters; }
115 
121  void InitBadChannelsFromContainer(const TString &containername) { fBadChannelContainer = containername; }
122 
123 protected:
124 
139  public:
140 
145 
150  };
151 
158  virtual void UserCreateOutputObjects();
159 
168  virtual void UserExec(Option_t *);
169 
181  virtual void ExecOnce();
182 
188  virtual void RunChanged();
189 
203  void CreateHistograms();
204 
210  bool IsCellMasked(Int_t cellId) const;
211 
215  void LoadCellMasking();
216 
217 private:
220  AliEMCALGeometry *fGeometry;
221 
229 
230  std::vector<Int_t> fMaskedCells;
231 
234 
236  ClassDef(AliEmcalCellMonitorTask, 1);
238 };
239 
240 #endif /* ALIEMCALCELLMONITORTASK_H_ */
void SetRequestTrigger(ULong_t triggerbits, TString triggerstring="")
double Double_t
Definition: External.C:58
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)
int Int_t
Definition: External.C:63
TString fNameClusters
Name of the cluster container (as TClonesArray)
Helper class creating user defined custom binning.
Int_t fNumberOfCells
Number of cells.
void SetNameClusterContainer(const TString &nameclusters)
virtual void UserExec(Option_t *)
TString fTriggerString
Trigger string in addition to trigger selection.
unsigned long ULong_t
Definition: External.C:38
Bool_t fInitialized
Check whether task is initialized (for ExecOnce)
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)
const char Option_t
Definition: External.C:48
AliEMCALGeometry * fGeometry
! EMCAL geometry
bool Bool_t
Definition: External.C:53
TString fBadChannelContainer
Bad channel container name.
THistManager * fHistManager
! Histogram handler
Simple monitoring task for cell related quantities.