AliPhysics  9538fdd (9538fdd)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliEmcalTriggerQATask.h
Go to the documentation of this file.
1 
12 #ifndef ALIEMCALTRIGGERQATASK_H
13 #define ALIEMCALTRIGGERQATASK_H
14 
15 /**************************************************************************
16  * Copyright(c) 1998-2016, ALICE Experiment at CERN, All rights reserved. *
17  * *
18  * Author: The ALICE Off-line Project. *
19  * Contributors are mentioned in the code where appropriate. *
20  * *
21  * Permission to use, copy, modify and distribute this software and its *
22  * documentation strictly for non-commercial purposes is hereby granted *
23  * without fee, provided that the above copyright notice appears in all *
24  * copies and that both the copyright notice and this permission notice *
25  * appear in the supporting documentation. The authors make no claims *
26  * about the suitability of this software for any purpose. It is *
27  * provided "as is" without express or implied warranty. *
28  **************************************************************************/
29 
30 class TClonesArray;
31 class THistManager;
32 class TString;
33 class AliEMCALTriggerQA;
34 class THnSparse;
35 class AliESDEvent;
36 
37 #include <TObjArray.h>
38 #include <AliEMCALTriggerQA.h>
39 #include <AliLog.h>
40 #include <AliEMCALTriggerChannelContainer.h>
41 
43 
51  public:
52 
54  AliEmcalTriggerQATask(const char *name, UInt_t nCentBins=0, Bool_t online=kFALSE);
55  virtual ~AliEmcalTriggerQATask();
56 
57  void SetTriggerPatchesName(const char *name) { fTriggerPatchesName = name; }
58  void SetADCperBin(Int_t n);
60  void EnableDCal(Bool_t e = kTRUE) { fDCalPlots = e ; }
61  void SetTimeStampRange(UInt_t min, UInt_t max) { fMinTimeStamp = min ; fMaxTimeStamp = max; }
62  void EnableHistogramsByTimeStamp(UInt_t binWidth = 600){ fTimeStampBinWidth = binWidth ; }
63 
64  AliEMCALTriggerQA* GetTriggerQA(Int_t i = 0) { return i >= 0 && i < fEMCALTriggerQA.GetEntriesFast() ? static_cast<AliEMCALTriggerQA*>(fEMCALTriggerQA.At(i)) : 0; }
65 
66  static AliEmcalTriggerQATask* AddTaskEmcalTriggerQA(TString triggerPatchesName = "EmcalTriggers", TString cellsName = "", TString triggersName = "", Int_t nCentBins = 0, Bool_t online = kFALSE, TString subdir = "", TString suffix = "");
67  static void AddTaskEmcalTriggerQA_QAtrain(Int_t runnumber);
68 
69  protected:
71  void ExecOnce();
72  Bool_t Run();
74  void FillEventQA();
75 
84 
86  TClonesArray *fTriggerPatches;
87 
88  private:
89  AliEmcalTriggerQATask(const AliEmcalTriggerQATask&); // not implemented
90  AliEmcalTriggerQATask &operator=(const AliEmcalTriggerQATask&); // not implemented
91 
93  ClassDef(AliEmcalTriggerQATask, 5);
95 };
96 
97 #endif
Int_t fADCperBin
ADC counts per bin.
void SetTriggerPatchesName(const char *name)
TClonesArray * fTriggerPatches
! trigger array in
UInt_t fTimeStampBinWidth
Time stamp bin width.
static AliEmcalTriggerQATask * AddTaskEmcalTriggerQA(TString triggerPatchesName="EmcalTriggers", TString cellsName="", TString triggersName="", Int_t nCentBins=0, Bool_t online=kFALSE, TString subdir="", TString suffix="")
Class to do some fast QA of the EMCal trigger. Useful also to tune trigger thresholds.
AliESDEvent * fESDEvent
! current ESD event
Bool_t fDCalPlots
Whether to add DCal QA plots.
TString fTriggerPatchesName
name of input trigger array
Int_t nCentBins
void EnableHistogramsByTimeStamp(UInt_t binWidth=600)
void SetTimeStampRange(UInt_t min, UInt_t max)
static void AddTaskEmcalTriggerQA_QAtrain(Int_t runnumber)
UInt_t fMinTimeStamp
Minimum event time stamp (only ESD)
Int_t fMinAmplitude
Minimum trigger patch amplitude.
int Int_t
Definition: External.C:63
unsigned int UInt_t
Definition: External.C:33
Base task in the EMCAL framework (lighter version of AliAnalysisTaskEmcal)
AliEmcalTriggerQATask & operator=(const AliEmcalTriggerQATask &)
void EnableDCal(Bool_t e=kTRUE)
TObjArray fEMCALTriggerQA
produces the QA histograms
UInt_t fMaxTimeStamp
Maximum event time stamp (only ESD)
Container class for histograms.
Definition: THistManager.h:43
bool Bool_t
Definition: External.C:53
AliEMCALTriggerQA * GetTriggerQA(Int_t i=0)