AliPhysics  a5cd6b6 (a5cd6b6)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliEmcalFastOrMonitorTask.h
Go to the documentation of this file.
1 #ifndef ALIEMCALFASTORMONITORTASK_H
2 #define ALIEMCALFASTORMONITORTASK_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 "AliEMCALTriggerDataGrid.h"
8 #include <TString.h>
9 
10 class AliEMCALGeometry;
11 class AliOADBContainer;
12 class THistManager;
13 
37 public:
38 
45 
50  AliEmcalFastOrMonitorTask(const char *name);
51 
56 
64  void SetRequestTrigger(ULong_t triggerbits, TString triggerstring = "") {
65  fRequestTrigger = triggerbits;
66  fTriggerPattern = triggerstring;
67  }
68 
75  void AddMaskedFastor(int fastorID){ fMaskedFastors.push_back(fastorID); }
76 
81  void DefineMaskedFastorOADB(const char *oadbname) { fNameMaskedFastorOADB = oadbname; }
82 
87  void DefineMaskedCellOADB(const char *oadbname) { fNameMaskedCellOADB = oadbname; }
88 
89 protected:
90 
97  virtual void UserCreateOutputObjects();
98 
110  virtual void UserExec(Option_t *);
111 
120  virtual void ExecOnce();
121 
131  virtual void RunChanged(Int_t newrun);
132 
140  Double_t GetTransverseTimeSum(Int_t fastorAbsID, Double_t adc, const Double_t *vtx) const;
141 
150  void LoadEventCellData();
151 
153  AliEMCALGeometry *fGeom;
156 
159 
161  std::vector<int> fMaskedFastors;
162  std::vector<int> fMaskedCells;
163 
166  AliOADBContainer *fMaskedFastorOADB;
167  AliOADBContainer *fMaskedCellOADB;
168 
170  ClassDef(AliEmcalFastOrMonitorTask, 1);
172 };
173 
174 #endif /* ALIEMCALFASTORMONITORTASK_H */
AliEmcalFastOrMonitorTask()
Default constructor.
void AddMaskedFastor(int fastorID)
Add masked fastor to the list of masked fastors.
double Double_t
Definition: External.C:58
AliEMCALTriggerDataGrid< double > fCellData
Grid with summed cell data.
Int_t fOldRun
Old Run (for RunChanged())
void LoadEventCellData()
Load event-dependent cell data.
TString fNameMaskedFastorOADB
Name of the OADB container with masked fastors.
int Int_t
Definition: External.C:63
ULong_t fRequestTrigger
Trigger selection bits.
AliOADBContainer * fMaskedFastorOADB
! OADB container with masked fastors
Double_t GetTransverseTimeSum(Int_t fastorAbsID, Double_t adc, const Double_t *vtx) const
Calculate transverse L1 time sum of a FastOR.
virtual void UserCreateOutputObjects()
Creating output objects.
AliEMCALGeometry * fGeom
! EMCAL Geometry object
virtual void RunChanged(Int_t newrun)
Run-dependent setup of the task.
void DefineMaskedFastorOADB(const char *oadbname)
Specify location of the OADB container with masked FastORs.
unsigned long ULong_t
Definition: External.C:38
std::vector< int > fMaskedCells
List of masked cells.
void DefineMaskedCellOADB(const char *oadbname)
Specify location of the OADB container with masked cells.
virtual void ExecOnce()
Initialization of the task.
void SetRequestTrigger(ULong_t triggerbits, TString triggerstring="")
Define trigger selection.
Bool_t fLocalInitialized
Switch whether task is initialized (for ExecOnce)
virtual ~AliEmcalFastOrMonitorTask()
Destructor.
std::vector< int > fMaskedFastors
List of masked fastors.
TString fTriggerPattern
Trigger string pattern used in addition to the trigger selection bits.
TString fNameMaskedCellOADB
Name of the OADB container with masked cells.
AliOADBContainer * fMaskedCellOADB
! OADB container with masked cells
Container class for histograms.
Definition: THistManager.h:99
const char Option_t
Definition: External.C:48
virtual void UserExec(Option_t *)
Event loop.
bool Bool_t
Definition: External.C:53
THistManager * fHistos
! Histogram handler
Simlple monitoring of EMCAL FastOr quantities.