AliPhysics  0937c79 (0937c79)
AliEmcalCellMonitorTask.h
Go to the documentation of this file.
1 /**************************************************************************************
2  * Copyright (C) 2017, Copyright Holders of the ALICE Collaboration *
3  * All rights reserved. *
4  * *
5  * Redistribution and use in source and binary forms, with or without *
6  * modification, are permitted provided that the following conditions are met: *
7  * * Redistributions of source code must retain the above copyright *
8  * notice, this list of conditions and the following disclaimer. *
9  * * Redistributions in binary form must reproduce the above copyright *
10  * notice, this list of conditions and the following disclaimer in the *
11  * documentation and/or other materials provided with the distribution. *
12  * * Neither the name of the <organization> nor the *
13  * names of its contributors may be used to endorse or promote products *
14  * derived from this software without specific prior written permission. *
15  * *
16  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND *
17  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED *
18  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE *
19  * DISCLAIMED. IN NO EVENT SHALL ALICE COLLABORATION BE LIABLE FOR ANY *
20  * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES *
21  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; *
22  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND *
23  * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT *
24  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS *
25  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. *
26  **************************************************************************************/
27 #ifndef ALIEMCALCELLMONITOR_H_
28 #define ALIEMCALCELLMONITOR_H_
29 
30 #include "AliAnalysisTaskSE.h"
31 #include <TCustomBinning.h>
32 #include <TString.h>
33 #include <vector>
34 
35 class TArrayD;
36 class THistManager;
37 class AliEMCALGeometry;
38 
43 namespace PWG {
44 
50 namespace EMCAL {
51 
96 public:
97 
102 
107  AliEmcalCellMonitorTask(const char *name);
108 
112  virtual ~AliEmcalCellMonitorTask();
113 
120 
126  void SetRequestTrigger(ULong_t triggerbits, TString triggerstring = "") {
127  fRequestTrigger = triggerbits;
128  fTriggerString = triggerstring;
129  }
130 
134  void SetRun2() { fNumberOfCells = 17664; }
135 
140  void SetBadCell(Int_t cellId);
141 
151  void SetNameClusterContainer(const TString &nameclusters) { fNameClusters = nameclusters; }
152 
158  void InitBadChannelsFromContainer(const TString &containername) { fBadChannelContainer = containername; }
159 
160 protected:
161 
176  public:
177 
182 
187  };
188 
195  virtual void UserCreateOutputObjects();
196 
205  virtual void UserExec(Option_t *);
206 
218  virtual void ExecOnce();
219 
225  virtual void RunChanged();
226 
240  void CreateHistograms();
241 
247  bool IsCellMasked(Int_t cellId) const;
248 
252  void LoadCellMasking();
253 
254 private:
257  AliEMCALGeometry *fGeometry;
258 
266 
267  std::vector<Int_t> fMaskedCells;
268 
271 
273  ClassDef(AliEmcalCellMonitorTask, 1);
275 };
276 
277 } /* namespace EMCAL */
278 
279 } /* namespace PWG */
280 
281 #endif /* ALIEMCALCELLMONITORTASK_H_ */
AliEMCALGeometry * fGeometry
! EMCAL geometry
double Double_t
Definition: External.C:58
void SetMinCellAmplitudeForCellTime(Double_t minAmp)
Int_t fOldRun
! Old Run number (for run change check)
Namespace for EMCAL framework classes and task.
TString fBadChannelContainer
Bad channel container name.
int Int_t
Definition: External.C:63
Simple monitoring task for cell related quantities.
THistManager * fHistManager
! Histogram handler
TString fNameClusters
Name of the cluster container (as TClonesArray)
std::vector< Int_t > fMaskedCells
Vector of masked cells.
Helper class creating user defined custom binning.
unsigned long ULong_t
Definition: External.C:38
Namespace for PWG framework classes.
void InitBadChannelsFromContainer(const TString &containername)
Double_t fMinCellAmplitude
Min. cell amplitude requested for cell time and frequency.
Bool_t fLocalInitialized
Check whether task is initialized (for ExecOnce)
ULong_t fRequestTrigger
Trigger selection.
TString fTriggerString
Trigger string in addition to trigger selection.
void SetRequestTrigger(ULong_t triggerbits, TString triggerstring="")
void SetNameClusterContainer(const TString &nameclusters)
Container class for histograms.
Definition: THistManager.h:99
const char Option_t
Definition: External.C:48
bool Bool_t
Definition: External.C:53
AliEmcalCellMonitorTask & operator=(const AliEmcalCellMonitorTask &ref)