AliPhysics  59e0e03 (59e0e03)
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 
57  };
58 
61  virtual ~AliEmcalTriggerQATask();
62 
63  void SetTriggerPatchesName(const char *name) { fTriggerPatchesName = name; }
64  void SetADCperBin(Int_t n);
66  void EnableDCal(Bool_t e = kTRUE) { fDCalPlots = e ; }
67  void SetTimeStampRange(UInt_t min, UInt_t max) { fMinTimeStamp = min ; fMaxTimeStamp = max; }
68  void EnableHistogramsByTimeStamp(UInt_t binWidth = 600){ fTimeStampBinWidth = binWidth ; }
69 
70  AliEMCALTriggerQA* GetTriggerQA(Int_t i = 0) { return i >= 0 && static_cast<std::size_t>(i) < fEMCALTriggerQA.size() ? fEMCALTriggerQA[i] : 0; }
71 
72  static AliEmcalTriggerQATask* AddTaskEmcalTriggerQA(TString triggerPatchesName = "EmcalTriggers", TString cellsName = "", TString triggersName = "", EBeamType_t beamType = kpp, ETriggerAnalysisType_t anaType=kTriggerOfflineExpertAnalysis, TString subdir = "", TString suffix = "");
74 
75  protected:
77  void ExecOnce();
78  Bool_t Run();
80  void FillEventQA();
81 
83  std::vector<AliEMCALTriggerQA*> fEMCALTriggerQA;
90 
92  TClonesArray *fTriggerPatches;
93 
94  private:
95  AliEmcalTriggerQATask(const AliEmcalTriggerQATask&); // not implemented
96  AliEmcalTriggerQATask &operator=(const AliEmcalTriggerQATask&); // not implemented
97 
99  ClassDef(AliEmcalTriggerQATask, 6);
101 };
102 
103 #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.
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
void EnableHistogramsByTimeStamp(UInt_t binWidth=600)
void SetTimeStampRange(UInt_t min, UInt_t max)
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 &)
static AliEmcalTriggerQATask * AddTaskEmcalTriggerQA(TString triggerPatchesName="EmcalTriggers", TString cellsName="", TString triggersName="", EBeamType_t beamType=kpp, ETriggerAnalysisType_t anaType=kTriggerOfflineExpertAnalysis, TString subdir="", TString suffix="")
std::vector< AliEMCALTriggerQA * > fEMCALTriggerQA
produces the QA histograms
void EnableDCal(Bool_t e=kTRUE)
const Bool_t anaType
UInt_t fMaxTimeStamp
Maximum event time stamp (only ESD)
Container class for histograms.
Definition: THistManager.h:99
bool Bool_t
Definition: External.C:53
static AliEmcalTriggerQATask * AddTaskEmcalTriggerQA_QAtrain(Int_t runnumber)
EBeamType_t
Switch for the beam type.
AliEMCALTriggerQA * GetTriggerQA(Int_t i=0)