15 #include <TClonesArray.h>
16 #include <THashList.h>
17 #include <THnSparse.h>
19 #include "AliEMCALTriggerPatchInfo.h"
21 #include "AliEMCALTriggerFastOR.h"
22 #include "AliEMCALTriggerConstants.h"
26 using namespace EMCALTrigger;
37 fTriggerPatchesName("EmcalTriggers"),
52 fTriggerPatchesName(
"EmcalTriggers"),
92 if (!cls.InheritsFrom(
"AliEMCALTriggerPatchInfo")) {
93 AliError(Form(
"%s: Objects of type %s in %s are not inherited from AliEMCALTriggerPatchInfo!",
101 AliError(Form(
"%s: Unable to get trigger patch container with name %s. Aborting", GetName(),
fTriggerPatchesName.Data()));
148 AliDebug(2, Form(
"nPatches = %d", nPatches));
150 for (Int_t i = 0; i < nPatches; i++) {
151 AliDebug(2, Form(
"Processing patch %d", i));
153 AliEMCALTriggerPatchInfo* patch =
static_cast<AliEMCALTriggerPatchInfo*
>(
fTriggerPatches->At(i));
154 if (!patch)
continue;
162 AliEMCALTriggerFastOR fastor;
164 Int_t globCol = -1, globRow = -1;
174 if (L1amp < 0) L1amp = 0;
177 if (L0amp < 0) L0amp = 0;
183 TArrayI l0times(nl0times);
185 for(
int itime = 0; itime < nl0times; itime++){
186 time = l0times[itime];
191 fastor.Initialize(L0amp, L1amp, globRow, globCol, time,
fGeom);
198 const Int_t ncells =
fCaloCells->GetNumberOfCells();
200 for (Int_t pos = 0; pos < ncells; pos++) {
203 cellInfo.
Set(absId, amp);
ClassImp(AliAnalysisTaskTriggerRates) AliAnalysisTaskTriggerRates
void Set(Int_t absId, Double_t e)
Base task in the EMCAL framework.
TObjArray * fEMCALTriggerQA
produces the QA histograms
void SetDebugLevel(Int_t l)
void ExecOnce()
Actions to be executed only once for the first event.
Int_t fCentBin
!event centrality bin
virtual ~AliEmcalTriggerQATaskPP()
TClonesArray * fTriggerPatches
! trigger array in
void SetADCperBin(Int_t i)
TList * fOutput
!output list
AliEmcalTriggerQATaskPP()
void SetForceBeamType(BeamType f)
void ProcessFastor(AliEMCALTriggerFastOR *fastor, AliVCaloCells *cells)
void EnableDCal(Bool_t e=kTRUE)
AliEMCALGeometry * fGeom
!emcal geometry
Int_t fMinAmplitude
Minimum trigger patch amplitude.
void SetADCperBin(Int_t n)
Int_t fNcentBins
if MC label > fMCLabelShift, MC label -= fMCLabelShift
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 ProcessPatch(AliEMCALTriggerPatchInfo *patch)
Bool_t fDCalPlots
Whether to add DCal QA plots.
virtual void SetNCentBins(Int_t n)
AliVCaloCells * fCaloCells
!cells
TString fTriggerPatchesName
name of input trigger array
void SetMakeGeneralHistograms(Bool_t g)
void Init()
Initialize the class, i.e. allocate histograms.
AliVCaloTrigger * fCaloTriggers
!calo triggers
void UserCreateOutputObjects()
Class to generate EMCal trigger QA plots in pp collisions.
Bool_t fInitialized
whether or not it should fill some general histograms
void UserCreateOutputObjects()
Int_t fADCperBin
ADC counts per bin.
void ProcessCell(const AliEmcalCellInfo &cell)