1 #ifndef ALIANALYSISTASKCHARGEDJETSHADRONCF_H
2 #define ALIANALYSISTASKCHARGEDJETSHADRONCF_H
42 if(pt < fPtMin || pt >=
fPtMax)
44 if(cent < fCentMin || cent >=
fCentMax)
53 if(ptRatio > cutLineValue)
201 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");
202 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");
203 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");
279 AliBasicJet() :
fEta(0),
fPhi(0),
fpT(0),
fTruepT(0),
fCharge(0),
fRadius(0),
fArea(0),
fPDGCode(0),
fBackgroundDensity(0),
fMagneticField(0),
fVertexX(0),
fVertexY(0),
fVertexZ(0),
fEventID(0),
fCentrality(0),
fConstituents() {}
280 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,
Float_t magfield,
Float_t vtxX,
Float_t vtxY,
Float_t vtxZ,
Long64_t id,
Short_t cent)
281 :
fEta(eta),
fPhi(phi),
fpT(pt),
fCharge(charge),
fRadius(radius),
fArea(area),
fPDGCode(partid),
fBackgroundDensity(bgrd),
fMagneticField(magfield),
fVertexX(vtxX),
fVertexY(vtxY),
fVertexZ(vtxZ),
fEventID(id),
fCentrality(cent),
fConstituents()
AliChargedJetsHadronCFCuts()
Int_t fArrayIndex
array index that holds the output array index
void SetNumberOfCentralityBins(Int_t val)
virtual ~AliAnalysisTaskChargedJetsHadronCF()
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, Float_t magfield, Float_t vtxX, Float_t vtxY, Float_t vtxZ, Long64_t id, Short_t cent)
Double_t fEventExtractionMaxJetPt
maximum jet pt of recorded events
void AddJetToTree(AliEmcalJet *jet)
void AddTrackToOutputArray(AliVTrack *track)
Double_t fPtMin
valid for jets above this pT
TString fCutName
name of this cut
Bool_t fJetVetoJetByJet
If true, the jet veto will be applied on a jet-by-jet basis.
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)
std::vector< AliChargedJetsHadronCFCuts > fJetEmbeddingCuts
Cuts used in jet embedding.
Bool_t IsJetVetoed(AliEmcalJet *jet)
void UserCreateOutputObjects()
Double_t fCentMax
valid for centralities below
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)
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...
AliChargedJetsHadronCFCuts(const char *cutName, const char *outputName, Double_t minPt, Double_t maxPt, Double_t minCent, Double_t maxCent, Double_t lowerOffset, Double_t offset2D, Double_t slope2D)
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
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.
std::vector< TClonesArray * > fJetsOutput
! vector of arrays of basic correlation particles attached to the event (jets)
Double_t BackgroundDensity()
Float_t fBackgroundDensity
background
void SetJetOutputMode(Int_t mode)
AliEmcalJet * fSubleadingJet
! subleading jet (calculated event-by-event)
Double_t fCentMin
valid for centralities above
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)
Container class of cuts for AliAnalysisTaskChargedJetsHadronCF.
UShort_t T(UShort_t m, UShort_t t)
void SetConstPtFilterBit(Int_t val)
void CalculateEventProperties()
void GetLeadingJetsInArray(TClonesArray *arr, const char *opt, AliEmcalJet *&jetLeading, AliEmcalJet *&jetSubLeading)
TClonesArray * fJetEmbeddingArray
! Array of generated jets imported into task (for embedding)
void GetTrackMCRatios(AliEmcalJet *jet, AliEmcalJet *mcJet, Double_t &trackRatio, Double_t &ptRatio)
Int_t GetNumbersOfConstituents()
void AddJetConstituent(Float_t eta, Float_t phi, Float_t pt, Short_t charge, Short_t pid=0)
void FillHistogram(const char *key, Double_t x)
Float_t fVertexX
event vertex X
Long64_t fEventID
Unique event id.
AliAnalysisTaskChargedJetsHadronCF()
void SetTruePt(Double_t val)
TString fJetParticleArrayName
Name of fJetsOutput array (if one uses only one)
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")
TString fJetEmbeddingArrayName
Name of array used to match jets.
Int_t fNumberOfCentralityBins
Number of centrality bins.
Double_t fCutLowerPercentageOffset
cut value
std::vector< AliEmcalJet * > fMatchedJets
Jets matched in an event (embedded)
TString fJetEmbeddingTrackArrayName
Name of array used to match tracks of jets.
Float_t fVertexY
event vertex Y
Int_t fPDGCode
PDG code of source particle.
~AliChargedJetsHadronCFCuts()
Double_t fExtractionPercentage
percentage that is recorded
void AddJetToOutputArray(AliEmcalJet *jet)
Double_t fJetVetoMinPt
Min pt cut applied on the fJetVetoArray jets.
Double_t fJetVetoMaxPt
Max pt cut applied on the fJetVetoArray 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
Double_t fPtMax
valid for jets below this pT
void ActivateJetEmbedding(const char *embArray, const char *embTrackArray, Double_t maxDistance, Int_t numMatchedJets)
Float_t fMagneticField
event magnetic field
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)
Bool_t fJetEmbeddingUsePerTrackMCPercentage
When cutting on MC percentage, calculate it per track and not for all MC tracks.
Int_t fAcceptedJets
temporary var that holds how many jets passed
void ActivateJetVetoInEmbedding(const char *vetoArray, Double_t jetVetoMinPt, Double_t jetVetoMaxPt, Bool_t jetVetoJetByJet)
TString fJetVetoArrayName
Name of array used for veto jets.
Short_t fPID
most probably PID code/PDG code
Int_t fJetEmbeddingNumMatchedJets
Number of matched leading jets that will be used.
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...
AliEmcalJet * GetReferenceJet(AliEmcalJet *jet)
void SetTrackParticleArrayName(const char *name)
TRandom3 * fRandom
random number generator
TString fOutputName
array name that is used to output objects associated with this cuts
std::vector< AliBasicJetConstituent > fConstituents
vector of constituents
Base task in the EMCAL jet framework.
Represent a jet reconstructed using the EMCal jet framework.
Bool_t fJetEmbeddingUseBgrdForMCPercentage
When cutting on MC percentage, use bgrd. corr to calculate MC percentage.
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
void AddJetEmbeddingCut(const char *cutName, const char *outputName, Double_t minPt, Double_t maxPt, Double_t minCent, Double_t maxCent, Double_t lowerOffset, Double_t offset2D, Double_t slope2D)
Double_t fCut2DSlope
cut value
Bool_t IsCutFulfilled(Double_t pt, Double_t mcPt, Double_t cent, Double_t ptRatio)
Double_t fCut2DOffset
cut value
Double_t fJetEmbeddingMaxDistance
Max distance allowed to accept an embedded jet.
void FillHistogramsJets(AliEmcalJet *jet, const char *cutName)
void SetUsePerTrackMCPercentage(Bool_t val)
void GetInitialCollisionJets()
void FillHistogramsTracks(AliVTrack *track)
void SetUseBgrdForMCPercentage(Bool_t val)
void ActivateJetExtraction(Double_t percentage, Double_t minPt, Double_t maxPt)
Int_t fAcceptedJets
! number accepted jets (calculated event-by-event)
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.
TClonesArray * fJetVetoArray
! Array of jets imported into task used for veto a matching/embedding
Bool_t IsJetSelected(AliEmcalJet *jet)
Int_t fAcceptedTracks
! number accepted tracks (calculated event-by-event)
Float_t fVertexZ
event vertex Z
Float_t fTruepT
true pT (optional, e.g. from matching)
void SetPythiaExtractionMode(Int_t mode)
Int_t fConstPtFilterBit
For const pt plot, filter bit.