1 #ifndef ALIANALYSISTASKCHARGEDJETSHADRONCF_H
2 #define ALIANALYSISTASKCHARGEDJETSHADRONCF_H
126 template <
class T>
T*
AddHistogram1D(
const char* name =
"CustomHistogram",
const char*
title =
"NO_TITLE",
const char* options =
"",
Int_t xBins = 100,
Double_t xMin = 0.0,
Double_t xMax = 20.0,
const char* xTitle =
"x axis",
const char* yTitle =
"y axis");
127 template <
class T>
T*
AddHistogram2D(
const char* name =
"CustomHistogram",
const char*
title =
"NO_TITLE",
const char* options =
"",
Int_t xBins = 100,
Double_t xMin = 0.0,
Double_t xMax = 20.0,
Int_t yBins = 100,
Double_t yMin = 0.0,
Double_t yMax = 20.0,
const char* xTitle =
"x axis",
const char* yTitle =
"y axis",
const char* zTitle =
"z axis");
128 template <
class T>
T*
AddHistogram3D(
const char* name =
"CustomHistogram",
const char*
title =
"NO_TITLE",
const char* options =
"",
Int_t xBins = 100,
Double_t xMin = 0.0,
Double_t xMax = 20.0,
Int_t yBins = 100,
Double_t yMin = 0.0,
Double_t yMax = 20.0,
Int_t zBins = 100,
Double_t zMin = 0.0,
Double_t zMax = 20.0,
const char* xTitle =
"x axis",
const char* yTitle =
"y axis",
const char* zTitle =
"z axis");
205 AliBasicJet() :
fEta(0),
fPhi(0),
fpT(0),
fTruepT(0),
fCharge(0),
fRadius(0),
fArea(0),
fPDGCode(0),
fBackgroundDensity(0),
fEventID(0),
fCentrality(0),
fConstituents() {}
207 :
fEta(eta),
fPhi(phi),
fpT(pt),
fCharge(charge),
fRadius(radius),
fArea(area),
fPDGCode(partid),
fBackgroundDensity(bgrd),
fEventID(id),
fCentrality(cent),
fConstituents()
void SetNumberOfCentralityBins(Int_t val)
virtual ~AliAnalysisTaskChargedJetsHadronCF()
Double_t fEventExtractionMaxJetPt
maximum jet pt of recorded events
Double_t fEventCriteriumMinSubleadingJetPt
Min subleading jet.
Double_t fEventCriteriumMinBackground
Minimum background.
void AddJetToTree(AliEmcalJet *jet)
void AddTrackToOutputArray(AliVTrack *track)
T * AddHistogram1D(const char *name="CustomHistogram", const char *title="NO_TITLE", const char *options="", Int_t xBins=100, Double_t xMin=0.0, Double_t xMax=20.0, const char *xTitle="x axis", const char *yTitle="y axis")
void GetLeadingJets(const char *opt, AliEmcalJet *&jetLeading, AliEmcalJet *&jetSubLeading)
TString fJetMatchingArrayName
Name of array used to match jets.
void UserCreateOutputObjects()
AliBasicJetConstituent(Float_t eta, Float_t phi, Float_t pt, Short_t charge, Short_t pid)
AliBasicJetConstituent * GetJetConstituent(Int_t index)
void * fJetsTreeBuffer
! buffer for one jet (that will be saved to the tree)
void SetEventCriteriumBackground(Double_t minValue, Double_t maxValue)
Container with name, TClonesArray and cuts for particles.
Support task for (charged) jet-hadron correlations.
Int_t fPythiaExtractionMode
Mode which PYTHIA-jets to extract for fJetOutputMode==6: 0: all, 1: quark-jets, 2: gluon jets...
void AddJetConstituent(AliBasicJetConstituent *constituent)
void BinLogAxis(const THn *h, Int_t axisNumber)
~AliBasicJetConstituent()
Int_t fJetOutputMode
mode which jets are written to array (0: all accepted, 1: leading, 2: subleading, 3: leading+subleadi...
Double_t fEventExtractionMinJetPt
minimum jet pt of recorded events
Int_t fEventCriteriumMode
Mode of event selection.
std::vector< AliEmcalJet * > fMatchedJetsReference
Jets matched in an event (reference)
Double_t fEventExtractionPercentage
percentage of events that is recorded
Simple class containing basic information for a constituent.
Double_t BackgroundDensity()
Float_t fBackgroundDensity
background
void ActivateJetMatching(const char *matchArray, Double_t maxDistance, Double_t minSharedFraction, Double_t matchMinPt, Double_t matchMaxPt, Int_t nLeading)
void SetJetOutputMode(Int_t mode)
AliEmcalJet * fSubleadingJet
! subleading jet (calculated event-by-event)
Simple class containing basic information for a jet.
void FillHistogram3D(const char *key, Double_t x, Double_t y, Double_t z, Double_t add=0)
UShort_t T(UShort_t m, UShort_t t)
Double_t fEventCriteriumMinJetDeltaPhi
Min jet delta phi in dijet criterium.
void SetEventCriteriumSelection(Int_t type)
void CalculateEventProperties()
Int_t GetNumbersOfConstituents()
void AddJetConstituent(Float_t eta, Float_t phi, Float_t pt, Short_t charge, Short_t pid=0)
Bool_t IsEqual(const TObject *obj)
Double_t CalculateFakeFactor(AliEmcalJet *jet)
void FillHistogram(const char *key, Double_t x)
Long64_t fEventID
Unique event id.
Double_t fEventCriteriumMaxBackground
Maximum background.
AliAnalysisTaskChargedJetsHadronCF()
void SetTruePt(Double_t val)
void SetEventCriteriumLeadingJets(Double_t leading, Double_t subleading, Double_t dphi)
Double_t fJetMatchingMaxPt
Max pt cut applied on the matchArray jets.
TString fJetParticleArrayName
Name of fJetsOutput array.
Bool_t IsEventCriteriumFulfilled()
void SetJetParticleArrayName(const char *name)
T * AddHistogram3D(const char *name="CustomHistogram", const char *title="NO_TITLE", const char *options="", Int_t xBins=100, Double_t xMin=0.0, Double_t xMax=20.0, Int_t yBins=100, Double_t yMin=0.0, Double_t yMax=20.0, Int_t zBins=100, Double_t zMin=0.0, Double_t zMax=20.0, const char *xTitle="x axis", const char *yTitle="y axis", const char *zTitle="z axis")
Int_t fNumberOfCentralityBins
Number of centrality bins.
std::vector< AliEmcalJet * > fMatchedJets
Jets matched in an event (embedded)
Int_t fPDGCode
PDG code of source particle.
Double_t fExtractionPercentage
percentage that is recorded
void AddJetToOutputArray(AliEmcalJet *jet)
TClonesArray * fJetsOutput
! Array of basic correlation particles attached to the event (jets)
TString fTrackParticleArrayName
Name of fTracksOutput array.
void Terminate(Option_t *option)
TClonesArray * fTracksOutput
! Array of basic correlation particles attached to the event (tracks)
Float_t fRadius
jet radius
Short_t fCentrality
centrality
AliEmcalJet * fLeadingJet
! leading jet (calculated event-by-event)
Double_t fExtractionMinPt
minimum pt of recorded jets
TTree * fJetsTree
! Jets that will be saved to a tree (optionally)
Bool_t IsTrackInCone(AliVParticle *track, Double_t eta, Double_t phi, Double_t radius)
void FillHistogramsJetConstituents(AliEmcalJet *jet)
Double_t fMaxFakeFactorPercentage
max fake factor (percentage relative to cut profile)
void FillHistogramsJets(AliEmcalJet *jet)
TClonesArray * fJetMatchingArray
! Array of generated jets imported into task (toy model/embedding)
AliEmcalJet * fInitialPartonMatchedJet1
! On PYTHIA data and fJetOutputMode=6, this holds the PDG code of the initial collisions that was mat...
AliEmcalJet * fInitialPartonMatchedJet2
! On PYTHIA data and fJetOutputMode=6, this holds the PDG code of the initial collisions that was mat...
void SetTrackParticleArrayName(const char *name)
TRandom3 * fRandom
random number generator
std::vector< AliBasicJetConstituent > fConstituents
vector of constituents
Base task in the EMCAL jet framework.
Represent a jet reconstructed using the EMCal jet framework.
AliAnalysisTaskChargedJetsHadronCF & operator=(const AliAnalysisTaskChargedJetsHadronCF &)
void ActivateEventExtraction(Double_t percentage, Double_t minJetPt, Double_t maxJetPt)
Double_t fExtractionMaxPt
maximum pt of recorded jets
AliTrackContainer * fTracksCont
! Tracks
Double_t fMinFakeFactorPercentage
min fake factor (percentage relative to cut profile)
Bool_t IsEqual(const TObject *obj)
Double_t fJetMatchingMaxDistance
Max distance allowed to accept a matching jet (for embedding)
Double_t fJetMatchingMinPt
Min pt cut applied on the matchArray jets.
void GetInitialCollisionJets()
Int_t fJetMatchingUseOnlyNLeading
Number of matched leading jets that will be used.
void FillHistogramsTracks(AliVTrack *track)
Double_t fEventCriteriumMinLeadingJetPt
Min leading jet.
void ActivateJetExtraction(Double_t percentage, Double_t minPt, Double_t maxPt)
Int_t fAcceptedJets
! number accepted jets (calculated event-by-event)
AliBasicJet(Float_t eta, Float_t phi, Float_t pt, Short_t charge, Float_t radius, Float_t area, Float_t partid, Float_t bgrd, Long64_t id, Short_t cent)
AliJetContainer * fJetsCont
! Jets
T * AddHistogram2D(const char *name="CustomHistogram", const char *title="NO_TITLE", const char *options="", Int_t xBins=100, Double_t xMin=0.0, Double_t xMax=20.0, Int_t yBins=100, Double_t yMin=0.0, Double_t yMax=20.0, const char *xTitle="x axis", const char *yTitle="y axis", const char *zTitle="z axis")
Container for jet within the EMCAL jet framework.
Bool_t IsJetSelected(AliEmcalJet *jet)
Int_t fAcceptedTracks
! number accepted tracks (calculated event-by-event)
Double_t fJetMatchingMinSharedFraction
An embedded jet must carry this pt fraction to be accepted.
Float_t fTruepT
true pT (optional, e.g. from matching)
void SetPythiaExtractionMode(Int_t mode)