18 #include <THashList.h> 22 #include "AliAODMCParticle.h" 26 #include "AliVCluster.h" 27 #include "AliVEvent.h" 28 #include "AliVParticle.h" 29 #include "AliVTrack.h" 30 #include "AliVVertex.h" 44 AliAnalysisTaskEmcalTriggerEmulation::AliAnalysisTaskEmcalTriggerEmulation() :
54 fPhiRange(0, 2*TMath::Pi())
95 binfact.Create(&binhandler);
97 std::stringstream kinestring;
117 const AliAODMCParticle *mcpart(
nullptr);
120 mcpart =
static_cast<const AliAODMCParticle *
>(mcen);
121 if(!mcpart->IsPhysicalPrimary())
continue;
122 if(mcpart->Charge() == 0)
continue;
136 const AliVCluster *clust(
nullptr);
138 clust =
static_cast<const AliVCluster *
>(clusten);
144 const AliVTrack *track(
nullptr);
145 const AliAODMCParticle *assocMC(
nullptr), *tmp(
nullptr);
147 track =
static_cast<const AliVTrack *
>(tracken);
148 double pt = TMath::Abs(track->Pt());
151 tmp =
static_cast<const AliAODMCParticle *
>(mcen);
152 if(TMath::Abs(tmp->GetLabel()) == TMath::Abs(track->GetLabel())){
157 if(!assocMC)
continue;
158 if(!assocMC->IsPhysicalPrimary())
continue;
159 pt = TMath::Abs(assocMC->Pt());
virtual bool Run()
Run function. This is the core function of the analysis and contains the user code. Therefore users have to implement this function.
AliAnalysisTaskEmcalTriggerEmulation()
Base task in the EMCAL framework.
TString fNameTracks
Name of the track container.
TBinning * GetBinning(const char *name) const
Emulate EMCAL trigger offline in simulation, and monitor reference distribution.
const AliEMCalTriggerWeightHandler * fkWeightHandler
Handler containing bin weights for -hard productions.
Global binning handler used by several analysis components.
AliCutValueRange< double > fEtaRange
Acceptance range for particles and tracks in -direction.
THistManager * fHistManager
Handler for output histograms.
AliGenPythiaEventHeader * fPythiaHeader
!event Pythia header
TH1 * CreateTH1(const char *name, const char *title, int nbins, double xmin, double xmax, Option_t *opt="")
Create a new TH1 within the container.
AliClusterContainer * GetClusterContainer(Int_t i=0) const
Get cluster container attached to this task.
virtual void UserCreateOutputObjects()
void FillTH1(const char *hname, double x, double weight=1., Option_t *opt="")
Fill a 1D histogram within the container.
Global binning definition for the high- charged particle analysis.
virtual ~AliAnalysisTaskEmcalTriggerEmulation()
TString fNameMCParticles
Name of the MC particle container.
bool SelectEvent(const AliEmcalContainer *const cont) const
double GetEventWeight(const AliMCEvent *const event) const
AliEmcalList * fOutput
!output list
AliMCParticleContainer * GetMCParticleContainer(Int_t i=0) const
const AliEmcalTriggerEmulation * fkTriggerEmulation
Offline emulation of the EMCAL trigger.
Analysis of high- tracks in triggered events.
AliTrackContainer * GetTrackContainer(Int_t i=0) const
Bool_t fIsMC
Specify whether running on MC events.
Container class for histograms.
void UserCreateOutputObjects()
Main initialization function on the worker.
AliCutValueRange< double > fPhiRange
Acceptance range for particles and tracks in -direction.
TString fNameClusters
Name of the cluster container.
bool IsInRange(t value) const