AliPhysics  75b74d3 (75b74d3)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
AliEmcalTriggerQATaskPP.h
Go to the documentation of this file.
1 
13 #ifndef ALIEMCALTRIGGERQATASKPP_H
14 #define ALIEMCALTRIGGERQATASKPP_H
15 
16 /**************************************************************************
17  * Copyright(c) 1998-2016, ALICE Experiment at CERN, All rights reserved. *
18  * *
19  * Author: The ALICE Off-line Project. *
20  * Contributors are mentioned in the code where appropriate. *
21  * *
22  * Permission to use, copy, modify and distribute this software and its *
23  * documentation strictly for non-commercial purposes is hereby granted *
24  * without fee, provided that the above copyright notice appears in all *
25  * copies and that both the copyright notice and this permission notice *
26  * appear in the supporting documentation. The authors make no claims *
27  * about the suitability of this software for any purpose. It is *
28  * provided "as is" without express or implied warranty. *
29  **************************************************************************/
30 
31 class TClonesArray;
32 class TObjArray;
33 class THistManager;
34 class TString;
36 class THnSparse;
37 
38 #include "AliLog.h"
39 #include "AliAnalysisTaskEmcal.h"
40 #include "AliEMCALTriggerChannelContainer.h"
41 
49  public:
50 
52  AliEmcalTriggerQATaskPP(const char *name);
53  virtual ~AliEmcalTriggerQATaskPP();
54 
55  void SetTriggerPatchesName(const char *name) { fTriggerPatchesName = name; }
56  void SetADCperBin(Int_t n);
57  void SetMinAmplitude(Int_t m) { fMinAmplitude = m ; }
58  void EnableDCal(Bool_t e = kTRUE) { fDCalPlots = e ; }
59 
60  AliEmcalTriggerQAPP* GetTriggerQA(Int_t i = 0) { return i >= 0 && i < fNcentBins ? static_cast<AliEmcalTriggerQAPP*>(fEMCALTriggerQA->At(i)) : 0; }
61 
62  protected:
64  void ExecOnce();
65  Bool_t Run();
66  Bool_t FillHistograms();
67  void FillEventQA();
68 
70  TObjArray *fEMCALTriggerQA;
71  Int_t fADCperBin;
72  Int_t fMinAmplitude;
73  Bool_t fDCalPlots;
74 
75  TClonesArray *fTriggerPatches;
76 
77  private:
78  AliEmcalTriggerQATaskPP(const AliEmcalTriggerQATaskPP&); // not implemented
79  AliEmcalTriggerQATaskPP &operator=(const AliEmcalTriggerQATaskPP&); // not implemented
80 
82  ClassDef(AliEmcalTriggerQATaskPP, 2)
84 };
85 
86 #endif
void EnableDCal(Bool_t e=kTRUE)
Base task in the EMCAL framework.
TObjArray * fEMCALTriggerQA
produces the QA histograms
TClonesArray * fTriggerPatches
! trigger array in
Int_t fMinAmplitude
Minimum trigger patch amplitude.
AliEmcalTriggerQAPP * GetTriggerQA(Int_t i=0)
Class to do some fast QA of the EMCal trigger (pp collisions). Useful also to tune trigger thresholds...
void SetTriggerPatchesName(const char *name)
Bool_t fDCalPlots
Whether to add DCal QA plots.
TString fTriggerPatchesName
name of input trigger array
AliEmcalTriggerQATaskPP & operator=(const AliEmcalTriggerQATaskPP &)
Class to generate EMCal trigger QA plots in pp collisions.
Int_t fADCperBin
ADC counts per bin.