15 #include <THashList.h>
19 #include "AliEMCALGeometry.h"
20 #include "AliInputEventHandler.h"
21 #include "AliVCaloTrigger.h"
22 #include "AliVEvent.h"
32 fLocalInitialized(false),
34 fRequestTrigger(AliVEvent::kAny),
44 fLocalInitialized(false),
46 fRequestTrigger(AliVEvent::kAny),
49 DefineOutput(1, TList::Class());
59 const int kMaxCol = 48, kMaxRow = 104, kMaxFastOr = kMaxRow * kMaxCol;
62 fHistos->
CreateTH1(
"hFastOrFrequency",
"FastOr frequency", kMaxFastOr, -0.5, kMaxFastOr - 0.5);
63 fHistos->
CreateTH2(
"hFastOrAmplitude",
"FastOr amplitudes", kMaxFastOr, -0.5, kMaxFastOr - 0.5, 513, -0.5, 512.5);
64 fHistos->
CreateTH2(
"hFastOrTimeSum",
"FastOr time sum", kMaxFastOr, -0.5, kMaxFastOr - 0.5, 2049, -0.5, 2048.5);
65 fHistos->
CreateTH2(
"hFastOrNL0Times",
"FastOr Number of L0 times", kMaxFastOr, -0.5, kMaxFastOr - 0.5, 16, -0.5, 15.5);
66 fHistos->
CreateTH2(
"hFastOrColRowFrequency",
"FastOr Frequency (col-row)", kMaxCol, -0.5, kMaxCol - 0.5, kMaxRow, -0.5, kMaxRow - 0.5);
88 fOldRun = InputEvent()->GetRunNumber();
99 AliVCaloTrigger *triggerdata = InputEvent()->GetCaloTrigger(
"EMCAL");
100 triggerdata->Reset();
101 Int_t nl0times, l1timesum, fastOrID, globCol, globRow;
103 while(triggerdata->Next()){
104 triggerdata->GetAmplitude(amp);
105 triggerdata->GetNL0Times(nl0times);
106 triggerdata->GetL1TimeSum(l1timesum);
107 triggerdata->GetPosition(globCol, globRow);
108 fGeom->GetTriggerMapping()->GetAbsFastORIndexFromPositionInEMCAL(globCol, globRow, fastOrID);
AliEmcalFastOrMonitorTask()
Int_t fOldRun
Old Run (for RunChanged())
void FillTH2(const char *hname, double x, double y, double weight=1., Option_t *opt="")
TH2 * CreateTH2(const char *name, const char *title, int nbinsx, double xmin, double xmax, int nbinsy, double ymin, double ymax, Option_t *opt="")
ULong_t fRequestTrigger
Trigger selection bits.
THashList * GetListOfHistograms() const
virtual void UserCreateOutputObjects()
TH1 * CreateTH1(const char *name, const char *title, int nbins, double xmin, double xmax, Option_t *opt="")
AliEMCALGeometry * fGeom
! EMCAL Geometry object
void FillTH1(const char *hname, double x, double weight=1., Option_t *opt="")
Bool_t fLocalInitialized
Switch whether task is initialized (for ExecOnce)
virtual ~AliEmcalFastOrMonitorTask()
ClassImp(AliAnalysisTaskCRC) AliAnalysisTaskCRC
TString fTriggerPattern
Trigger string pattern used in addition to the trigger selection bits.
virtual void RunChanged()
Container class for histograms for the high- charged particle analysis.
Int_t GetRunNumber(TString)
virtual void UserExec(Option_t *)
THistManager * fHistos
! Histogram handler
Simlple monitoring of EMCAL FastOr quantities.