AliPhysics  781d0c7 (781d0c7)
 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 TObjArray;
32 class THistManager;
33 class TString;
34 class AliEMCALTriggerQA;
35 class THnSparse;
36 class AliESDEvent;
37 
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  protected:
68  void ExecOnce();
69  Bool_t Run();
71  void FillEventQA();
72 
81 
83  TClonesArray *fTriggerPatches;
84 
85  private:
86  AliEmcalTriggerQATask(const AliEmcalTriggerQATask&); // not implemented
87  AliEmcalTriggerQATask &operator=(const AliEmcalTriggerQATask&); // not implemented
88 
90  ClassDef(AliEmcalTriggerQATask, 5);
92 };
93 
94 #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
Int_t nCentBins
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 &)
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 for the high- charged particle analysis.
Definition: THistManager.h:43
bool Bool_t
Definition: External.C:53
AliEMCALTriggerQA * GetTriggerQA(Int_t i=0)