6 #include <TClonesArray.h> 11 #include <THnSparse.h> 13 #include <TLorentzVector.h> 15 #include "AliVVZERO.h" 20 #include "AliEMCALTriggerPatchInfo.h" 29 AliAnalysisTaskTriggerRejection::AliAnalysisTaskTriggerRejection() :
35 fMainPatchType(kManual),
36 fMainTrigCat(kTriggerLevel1Jet),
37 fMainTrigSimple(kFALSE)
71 Bool_t oldStatus = TH1::AddDirectoryStatus();
72 TH1::AddDirectory(kFALSE);
74 Int_t fgkNCentBins = 21;
78 Int_t fgkNPtBins = 170;
82 Int_t fgkNVZEROBins = 100;
86 const Int_t fgkNEPatch = 100;
90 const Int_t fgkNADC = 100;
94 const Int_t fgkNEta = 10;
95 const Int_t fgkNPhi = 10;
98 const Int_t nBins[nDim] = {fgkNCentBins,fgkNVZEROBins,fgkNPtBins,fgkNPtBins,fgkNEPatch,fgkNADC,fgkNEta,fgkNPhi};
99 const Double_t xmin0[nDim] = {kMinCent,kMinVZERO,kMinPt,kMinPt,kMinEPatch,kMinADC,-0.7,1.4};
100 const Double_t xmax0[nDim] = {kMaxCent,kMaxVZERO,kMaxPt,kMaxPt,kMaxEPatch,kMaxADC, 0.7,3.14};
102 "hnTriggerInfo;cent;V0mult;ptjet1;ptjet2;Epatch;ADCpatch;EtaPatch;PhiPatch",nDim,nBins,xmin0,xmax0);
122 THnSparse *hn =
dynamic_cast<THnSparse*
>(
fOutput->At(i));
126 TH1::AddDirectory(oldStatus);
143 for (
Int_t iPatch = 0; iPatch < nPatch; iPatch++) {
144 AliEMCALTriggerPatchInfo *patch = (AliEMCALTriggerPatchInfo*)
fTriggerPatchInfo->At( iPatch );
145 if(patch->GetPatchE()>emax) {
147 emax = patch->GetPatchE();
169 Double_t VZEROAmp = (
Double_t)(InputEvent()->GetVZEROData()->GetTriggerChargeA() + InputEvent()->GetVZEROData()->GetTriggerChargeC());
AliEMCALTriggerPatchInfo * fMaxPatch
THnSparse * fhnTriggerInfo
AliJetContainer * GetJetContainer(Int_t i=0) const
Bool_t FillHistograms()
Function filling histograms.
TriggerCategory fMainTrigCat
Level1 jet trigger patch.
AliEmcalJet * GetLeadingJet(const char *opt="")
Bool_t Run()
Run function. This is the core function of the analysis and contains the user code. Therefore users have to implement this function.
MainPatchType fMainPatchType
correlation between jets, patch energy and event observables
Double_t fCent
!event centrality
AliEMCALTriggerPatchInfo * GetMainTriggerPatch(TriggerCategory triggersel=kTriggerLevel1Jet, Bool_t doSimpleOffline=kFALSE)
Get main trigger match.
Double_t GetRhoVal(Int_t i=0) const
AliAnalysisTaskTriggerRejection()
AliEmcalList * fOutput
!output list
virtual ~AliAnalysisTaskTriggerRejection()
void SetMakeGeneralHistograms(Bool_t g)
TClonesArray * fTriggerPatchInfo
!trigger patch info array
Base task in the EMCAL jet framework.
Represent a jet reconstructed using the EMCal jet framework.
void UserCreateOutputObjects()
Main initialization function on the worker.
void Terminate(Option_t *option)
void UserCreateOutputObjects()