Skip to content
Closed
Changes from all commits
Commits
Show all changes
72 commits
Select commit Hold shift + click to select a range
4fd72ee
implememted Z-h correlation
sashingo Jul 7, 2025
32c1341
fixed O2 linter error
sashingo Jul 7, 2025
187dfc9
fixed O2 linter errors
sashingo Jul 7, 2025
1101165
implemetned comments by Vit
sashingo Jul 7, 2025
e6d27cc
revert the changes
sashingo Jul 7, 2025
ae09c84
minor corrections
sashingo Jul 8, 2025
3033f8d
modified some name of parameters
sashingo Jul 8, 2025
a7ceea5
fixed O2 linter errors
sashingo Jul 8, 2025
8483257
implemented comment
sashingo Jul 9, 2025
2dddc15
adding missing braces
sashingo Jul 10, 2025
da8c3f8
Merge branch 'AliceO2Group:master' into master
sashingo Jul 14, 2025
c934352
Merge branch 'AliceO2Group:master' into master
sashingo Jul 15, 2025
8a9aab4
included charge info in histogrmas for Z measurement
sashingo Jul 15, 2025
c3b7601
changed name of axis for Z pt histogram
sashingo Jul 15, 2025
144dfe4
changed TH1F to TH1D for histograms of event counters
sashingo Jul 16, 2025
7ca039a
Merge branch 'AliceO2Group:master' into master
sashingo Jul 20, 2025
953b290
updated to check eID
sashingo Jul 29, 2025
964a2ed
Merge branch 'AliceO2Group:master' into master
sashingo Jul 29, 2025
37da52b
changed ptZeeCorrfac to ptEleCorrfac
sashingo Jul 29, 2025
5136521
Update taskElectronWeakBoson.cxx
sashingo Jul 30, 2025
f80040b
Update taskElectronWeakBoson.cxx
sashingo Jul 30, 2025
73b8dc1
Merge branch 'AliceO2Group:master' into master
sashingo Aug 4, 2025
347ac46
Merge branch 'AliceO2Group:master' into master
sashingo Aug 4, 2025
f0ceaa4
Merge branch 'AliceO2Group:master' into master
sashingo Aug 6, 2025
b66b4d7
Merge branch 'AliceO2Group:master' into master
sashingo Aug 11, 2025
6192bf7
add centrality selection, and calculate pT ratio in Z-h analysis
sashingo Aug 11, 2025
1383ef6
updated with suggestions
sashingo Aug 11, 2025
1a99e9f
Update PWGHF/HFL/Tasks/taskElectronWeakBoson.cxx
sashingo Aug 12, 2025
0788b52
Merge branch 'AliceO2Group:master' into master
sashingo Aug 16, 2025
69464ff
Merge branch 'AliceO2Group:master' into master
sashingo Aug 18, 2025
b5377ee
Merge branch 'AliceO2Group:master' into master
sashingo Aug 26, 2025
1b1d65c
updated QA for Z->ee & non-linear centrality bin selections
sashingo Aug 26, 2025
52634e0
fixed linter errors
sashingo Aug 26, 2025
9d34038
fixed copylight headers
sashingo Aug 26, 2025
9c12ab5
Merge branch 'AliceO2Group:master' into master
sashingo Sep 2, 2025
8b08256
Merge branch 'AliceO2Group:master' into master
sashingo Sep 4, 2025
9291678
Merge branch 'AliceO2Group:master' into master
sashingo Sep 10, 2025
01d492a
Merge branch 'AliceO2Group:master' into master
sashingo Sep 15, 2025
ded7348
added additional parameters in Z->ee QA histograms
sashingo Sep 15, 2025
c057fe8
fixed O2 linter error
sashingo Sep 15, 2025
b5e37a3
use o2::constants::math::SectorSpanRad
sashingo Sep 15, 2025
ee1e5af
Merge branch 'AliceO2Group:master' into master
sashingo Sep 26, 2025
9716e93
Merge branch 'AliceO2Group:master' into master
sashingo Sep 28, 2025
4497699
Merge branch 'AliceO2Group:master' into master
sashingo Sep 29, 2025
ec18869
updated to Z->ee trig. study
sashingo Sep 29, 2025
d3aa8cf
implemeqted comments and suggestions
sashingo Sep 30, 2025
eb0a1c0
use ConfigureAxis and fixed the algorism for like-sign pair calculation
sashingo Oct 1, 2025
c81f60f
modified O2linter error
sashingo Oct 1, 2025
a247ac1
modified loop for like-sign pair calculation
sashingo Oct 1, 2025
75b6600
Merge branch 'AliceO2Group:master' into master
sashingo Oct 3, 2025
004e59f
Merge branch 'AliceO2Group:master' into master
sashingo Oct 9, 2025
5c78361
Merge branch 'AliceO2Group:master' into master
sashingo Oct 10, 2025
9e13abb
Merge branch 'AliceO2Group:master' into master
sashingo Oct 22, 2025
7f6e657
Merge branch 'AliceO2Group:master' into master
sashingo Nov 6, 2025
463b837
Merge branch 'AliceO2Group:master' into master
sashingo Nov 11, 2025
a7eae66
Merge branch 'AliceO2Group:master' into master
sashingo Dec 18, 2025
e25db29
Merge branch 'AliceO2Group:master' into master
sashingo Dec 30, 2025
f17269a
Merge branch 'AliceO2Group:master' into master
sashingo Jan 20, 2026
6ff5a5f
Merge branch 'AliceO2Group:master' into master
sashingo Feb 24, 2026
f106b3b
Merge branch 'AliceO2Group:master' into master
sashingo Mar 12, 2026
2bf0277
added UE study for Z->ee and multiplicity analysis in pp
sashingo Mar 12, 2026
73d72f4
fixed MegaLinter error
sashingo Mar 12, 2026
a23b30a
changed some names for parameters
sashingo Mar 12, 2026
3b38c06
small name modification
sashingo Mar 13, 2026
95475b3
some modifications
sashingo Mar 13, 2026
c6cbe6c
fixed clang-format error
sashingo Mar 13, 2026
07464ba
Merge branch 'AliceO2Group:master' into master
sashingo Mar 30, 2026
5d60ceb
Merge branch 'AliceO2Group:master' into master
sashingo Apr 17, 2026
5bcd217
Merge branch 'AliceO2Group:master' into master
sashingo May 7, 2026
fa75806
Merge branch 'AliceO2Group:master' into master
sashingo May 11, 2026
f5c64e2
Merge branch 'AliceO2Group:master' into master
sashingo May 12, 2026
1436f9c
added THn for QA of electrons from Z
sashingo May 12, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
83 changes: 54 additions & 29 deletions PWGHF/HFL/Tasks/taskElectronWeakBoson.cxx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2019-2020 CERN and copyright holders of ALICE O2.

Check failure on line 1 in PWGHF/HFL/Tasks/taskElectronWeakBoson.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[pwghf/struct-member-order]

Declare struct members in the conventional order. See the PWGHF coding guidelines.
// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
// All rights not expressly granted are reserved.
//
Expand Down Expand Up @@ -141,9 +141,10 @@

// QA for Z->ee
Configurable<bool> enableZeeRecoQA{"enableZeeRecoQA", false, "Enable QA for Z->ee reconstruction"};
Configurable<int> ZeeRecoQAtype{"ZeeRecoQAtype", 1, "QA for Z->ee reconstruction"};

Check failure on line 144 in PWGHF/HFL/Tasks/taskElectronWeakBoson.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[name/configurable]

Use lowerCamelCase for names of configurables and use the same name for the struct member as for the JSON string. (Declare the type and names on the same line.)
Configurable<float> massZMinQA{"massZMinQA", 0.1, "minimum mass cut for Zee Reco QA"};
// CCDB service object
Service<o2::ccdb::BasicCCDBManager> ccdb{};

Check failure on line 147 in PWGHF/HFL/Tasks/taskElectronWeakBoson.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[pwghf/struct-member-order]

HfTaskElectronWeakBoson: Service< appears too early (before end of Configurable<).
// UE
Configurable<int> nRandomCones{"nRandomCones", 100, "number of random cones"};
Configurable<float> rcHardE{"rcHardE", 5.0, "hard cluster veto energy"};
Expand All @@ -151,10 +152,10 @@
Configurable<bool> useUEsub{"useUEsub", true, "apply UE subtraction in isolation"};

struct HfElectronCandidate {
float pt, eta, phi, dcaxyTrk, dcazTrk, eop, energyIso, momIso;
float pt, eta, phi, dcaxyTrk, dcazTrk, eop, energyIso, momIso, dedxTrk, m02Emc;
int ntrackIso, nclusterTPC, nclusterITS;
HfElectronCandidate(float ptr, float e, float ph, float dcaxy, float dcaz, float ep, float eiso, float piso, int ntrkiso, int nclstpc, int nclsits)
: pt(ptr), eta(e), phi(ph), dcaxyTrk(dcaxy), dcazTrk(dcaz), eop(ep), energyIso(eiso), momIso(piso), ntrackIso(ntrkiso), nclusterTPC(nclstpc), nclusterITS(nclsits) {}
HfElectronCandidate(float ptr, float e, float ph, float dcaxy, float dcaz, float ep, float eiso, float piso, float dedx, float m02, int ntrkiso, int nclstpc, int nclsits)
: pt(ptr), eta(e), phi(ph), dcaxyTrk(dcaxy), dcazTrk(dcaz), eop(ep), energyIso(eiso), momIso(piso), dedxTrk(dedx), m02Emc(m02), ntrackIso(ntrkiso), nclusterTPC(nclstpc), nclusterITS(nclsits) {}
};
std::vector<HfElectronCandidate> selectedElectronsIso;
std::vector<HfElectronCandidate> selectedPositronsIso;
Expand Down Expand Up @@ -196,20 +197,13 @@
ConfigurableAxis confaxisPtZneg{"confaxisPtZneg", {60, 20, 80}, "p_{T,neg} (GeV/c)"};
ConfigurableAxis confaxisPtZpos{"confaxisPtZpos", {60, 20, 80}, "p_{T,pos} (GeV/c)"};
ConfigurableAxis confaxisEop{"confaxisEop", {300, -0.01, 1.49}, "E/p"};
ConfigurableAxis confaxisEopZneg{"confaxisEopZneg", {300, -0.01, 1.49}, "E/p_{neg}"};
ConfigurableAxis confaxisEopZpos{"confaxisEopZpos", {300, -0.01, 1.49}, "E/p_{pos}"};
ConfigurableAxis confaxisIsoEnergy{"confaxisIsoEnergy", {255, 0, 2.0}, "E_{iso}"};
ConfigurableAxis confaxisIsoEnergyZneg{"confaxisIsoEnergyZneg", {255, 0, 2.0}, "E_{iso,neg}"};
ConfigurableAxis confaxisIsoEnergyZpos{"confaxisIsoEnergyZpos", {255, 0, 2.0}, "E_{iso,pos}"};
ConfigurableAxis confaxisIsoMomentum{"confaxisIsoMomentum", {255, 0, 2.0}, "E_{iso}"};
ConfigurableAxis confaxisIsoMomentumZneg{"confaxisIsoMomentumZneg", {255, 0, 1.5}, "E_{iso,neg}"};
ConfigurableAxis confaxisIsoMomentumZpos{"confaxisIsoMomentumZpos", {255, 0, 1.5}, "E_{iso,pos}"};
ConfigurableAxis confaxisIsoMomentum{"confaxisIsoMomentum", {255, 0, 2.0}, "p_{iso}"};
ConfigurableAxis confaxisIsoTrack{"confaxisIsoTrack", {25, -0.5, 24.5}, "Isolation Track"};
ConfigurableAxis confaxisIsoTrackZneg{"confaxisIsoTrackZneg", {25, -0.5, 24.5}, "N_{isotrk,neg}"};
ConfigurableAxis confaxisIsoTrackZpos{"confaxisIsoTrackZpos", {25, -0.5, 24.5}, "N_{isotrk,pos}"};
ConfigurableAxis confaxisInvMassZgamma{"confaxisInvMassZgamma", {150, 0, 150}, "M_{ee} (GeV/c^{2})"};
ConfigurableAxis confaxisInvMassZ{"confaxisInvMassZ", {130, 20, 150}, "M_{ee} (GeV/c^{2})"};
ConfigurableAxis confaxisZfrag{"confaxisZfrag", {200, 0, 2.0}, "p_{T,h}/p_{T,Z}"};
ConfigurableAxis confaxisDEtaZh{"confaxisDEtaZh", {200, -4.0, 4.0}, "#Delta#eta"};
ConfigurableAxis confaxisMultPV{"confaxisMultPV", {200, 0, 200.0}, "multiplicity"};
ConfigurableAxis confaxisMultFT0{"confaxisMultFT0", {1000, 0, 1000.0}, "multiplicity"};

Expand Down Expand Up @@ -262,9 +256,13 @@
const AxisSpec axisSectorTPCneg{360, 0, 18, "TPCsector_{neg}"};
const AxisSpec axisSectorTPCpos{360, 0, 18, "TPCsector_{pos}"};
const AxisSpec axisNsigma{100, -5, 5, "N#sigma"};
const AxisSpec axisNsigmaZneg{100, -5, 5, "N#sigma_{pos}"};
const AxisSpec axisNsigmaZpos{100, -5, 5, "N#sigma_{neg}"};
const AxisSpec axisDedx{150, 0, 150, "dEdx"};
const AxisSpec axisE{nBinsE, 0, binEmax, "Energy"};
const AxisSpec axisM02{100, 0, 1, "M02"};
const AxisSpec axisM02neg{100, 0, 1, "M02(neg)"};
const AxisSpec axisM02pos{100, 0, 1, "M02(pos)"};
const AxisSpec axisdPhi{100, -0.5, 0.5, "dPhi"};
const AxisSpec axisdEta{100, -0.5, 0.5, "dEta"};
const AxisSpec axisdR{20, 0.0, 0.2, "dR"};
Expand All @@ -276,26 +274,27 @@
const AxisSpec axisEMCtime{100, -50.0, 50, "EMC time"};
const AxisSpec axisTrigger{3, -0.5, 2.5, "Trigger status of zorro"};
const AxisSpec axisDPhiZh{64, -o2::constants::math::PIHalf, 3 * o2::constants::math::PIHalf, "#Delta#phi(Z-h)"};
const AxisSpec axisDEtaZh{confaxisDEtaZh, "#Delta#Eta(Z-h)"};
const AxisSpec axisPtHadron{nBinsPt, 0, binPtmax, "p_{T,hadron} (GeV/c)"};
const AxisSpec axisPtZ{nBinsPt, 0, binPtmax, "p_{T,Z} (GeV/c)"};
const AxisSpec axisSign{2, -2, 2, "charge sign"};
const AxisSpec axisCentrality{centralityBins, "centrality"};
const AxisSpec axisEop{confaxisEop, "E/p"};
const AxisSpec axisEopZneg{confaxisEopZneg, "E/p_{neg}"};
const AxisSpec axisEopZpos{confaxisEopZpos, "E/p_{[pos}"};
const AxisSpec axisEopZneg{confaxisEop, "E/p_{neg}"};
const AxisSpec axisEopZpos{confaxisEop, "E/p_{[pos}"};
const AxisSpec axisPt{confaxisPt, "p_{T}"};
const AxisSpec axisPtZee{confaxisPtZee, "p_{T}"};
const AxisSpec axisPtZneg{confaxisPtZneg, "p_{T,neg} (GeV/c)"};
const AxisSpec axisPtZpos{confaxisPtZpos, "p_{T,pos} (GeV/c)"};
const AxisSpec axisIsoEnergy{confaxisIsoEnergy, "E_{iso}"};
const AxisSpec axisIsoEnergyZneg{confaxisIsoEnergyZneg, "E_{iso}"};
const AxisSpec axisIsoEnergyZpos{confaxisIsoEnergyZpos, "E_{iso}"};
const AxisSpec axisIsoMomentum{confaxisIsoMomentum, "Isolation momentum(GeV/C)"};
const AxisSpec axisIsoMomentumZneg{confaxisIsoMomentumZneg, "Isolation momentum(GeV/C)"};
const AxisSpec axisIsoMomentumZpos{confaxisIsoMomentumZpos, "Isolation momentum(GeV/C)"};
const AxisSpec axisIsoEnergyZneg{confaxisIsoEnergy, "E_{iso, neg} (GeV)"};
const AxisSpec axisIsoEnergyZpos{confaxisIsoEnergy, "E_{iso, pos} (GeV)"};
const AxisSpec axisIsoMomentum{confaxisIsoMomentum, "p_{iso} (GeV/C)"};
const AxisSpec axisIsoMomentumZneg{confaxisIsoMomentum, "p_{iso, neg}(GeV/C)"};
const AxisSpec axisIsoMomentumZpos{confaxisIsoMomentum, "p_{iso, pos}(GeV/C)"};
const AxisSpec axisIsoTrack{confaxisIsoTrack, "Isolation Track"};
const AxisSpec axisIsoTrackZneg{confaxisIsoTrackZneg, "N_{isotrk,neg}"};
const AxisSpec axisIsoTrackZpos{confaxisIsoTrackZpos, "N_{isotrk,pos}"};
const AxisSpec axisIsoTrackZneg{confaxisIsoTrack, "N_{isotrk,neg}"};
const AxisSpec axisIsoTrackZpos{confaxisIsoTrack, "N_{isotrk,pos}"};
const AxisSpec axisInvMassZgamma{confaxisInvMassZgamma, "M_{ee} (GeV/c^{2})"};
const AxisSpec axisInvMassZ{confaxisInvMassZ, "M_{ee} (GeV/c^{2})"};
const AxisSpec axisZfrag{confaxisZfrag, "p_{T,h}/p_{T,Z}"};
Expand Down Expand Up @@ -333,13 +332,15 @@
registry.add("hIsolationEnergy", "Isolation Energy", kTH2F, {{axisE}, {axisIsoEnergy}});
registry.add("hInvMassZee", "invariant mass for Z ULS pair", HistType::kTHnSparseF, {axisCentrality, axisSign, axisPt, axisInvMassZgamma});
registry.add("hKfInvMassZee", "invariant mass for Z ULS pair KFp", HistType::kTHnSparseF, {axisCentrality, axisSign, axisPt, axisInvMassZgamma});
registry.add("hInvMassZeeQA", "QA for invariant mass for Z", HistType::kTHnSparseF, {axisInvMassZ, axisPtZneg, axisPtZpos, axisDCAxyneg, axisDCAxypos, axisDCAzpos, axisNclsTPCneg, axisNclsTPCpos, axisNclsITSneg, axisNclsITSpos, axisSectorTPCneg, axisSectorTPCneg, axisEopZneg, axisEopZpos, axisIsoEnergyZneg, axisIsoEnergyZpos, axisIsoMomentumZneg, axisIsoMomentumZpos, axisIsoTrackZneg, axisIsoTrackZpos});
registry.add("hInvMassZeeQAbg", "QA for invariant mass for Z", HistType::kTHnSparseF, {axisInvMassZ, axisPtZneg, axisPtZpos, axisDCAxyneg, axisDCAxypos, axisDCAzpos, axisNclsTPCneg, axisNclsTPCpos, axisNclsITSneg, axisNclsITSpos, axisSectorTPCneg, axisSectorTPCneg, axisEopZneg, axisEopZpos, axisIsoEnergyZneg, axisIsoEnergyZpos, axisIsoMomentumZneg, axisIsoMomentumZpos, axisIsoTrackZneg, axisIsoTrackZpos});
registry.add("hInvMassZeeTrkQA", "Track QA for invariant mass for Z", HistType::kTHnSparseF, {axisInvMassZ, axisPtZneg, axisPtZpos, axisDCAxyneg, axisDCAxypos, axisDCAzpos, axisNclsTPCneg, axisNclsTPCpos, axisNclsITSneg, axisNclsITSpos, axisSectorTPCneg, axisSectorTPCneg, axisEopZneg, axisEopZpos, axisIsoEnergyZneg, axisIsoEnergyZpos, axisIsoMomentumZneg, axisIsoMomentumZpos, axisIsoTrackZneg, axisIsoTrackZpos});
registry.add("hInvMassZeeTrkQAbg", "Track QA for invariant mass for Z", HistType::kTHnSparseF, {axisInvMassZ, axisPtZneg, axisPtZpos, axisDCAxyneg, axisDCAxypos, axisDCAzpos, axisNclsTPCneg, axisNclsTPCpos, axisNclsITSneg, axisNclsITSpos, axisSectorTPCneg, axisSectorTPCneg, axisEopZneg, axisEopZpos, axisIsoEnergyZneg, axisIsoEnergyZpos, axisIsoMomentumZneg, axisIsoMomentumZpos, axisIsoTrackZneg, axisIsoTrackZpos});
registry.add("hInvMassZeeEmcQA", "EMCal QA for invariant mass for Z", HistType::kTHnSparseF, {axisInvMassZ, axisPtZneg, axisPtZpos, axisEopZneg, axisEopZpos, axisM02neg, axisM02pos, axisNsigmaZneg, axisNsigmaZpos, axisIsoEnergyZneg, axisIsoEnergyZpos, axisIsoMomentumZneg, axisIsoMomentumZpos, axisIsoTrackZneg, axisIsoTrackZpos});
registry.add("hInvMassZeeEmcQAbg", "EMCal QA for invariant mass for Z", HistType::kTHnSparseF, {axisInvMassZ, axisPtZneg, axisPtZpos, axisEopZneg, axisEopZpos, axisM02neg, axisM02pos, axisNsigmaZneg, axisNsigmaZpos, axisIsoEnergyZneg, axisIsoEnergyZpos, axisIsoMomentumZneg, axisIsoMomentumZpos, axisIsoTrackZneg, axisIsoTrackZpos});
registry.add("hTHnElectrons", "electron info", HistType::kTHnSparseF, {axisPt, axisNsigma, axisM02, axisEop, axisIsoEnergy, axisIsoMomentum, axisIsoTrack, axisEta, axisDedx});
registry.add("hTHnTrMatch", "Track EMC Match", HistType::kTHnSparseF, {axisPt, axisdPhi, axisdEta});

// Z-hadron correlation histograms
registry.add("hZHadronDphi", "Z-hadron #Delta#phi correlation", HistType::kTHnSparseF, {axisCentrality, axisSign, axisPtZ, axisDPhiZh, axisZfrag, axisPtHadron});
registry.add("hZHadronDphi", "Z-hadron #Delta#phi correlation", HistType::kTHnSparseF, {axisCentrality, axisSign, axisPtZ, axisDPhiZh, axisDEtaZh, axisZfrag, axisPtHadron});
registry.add("hZptSpectrum", "Z boson p_{T} spectrum", kTH2F, {{axisSign}, {axisPtZ}});

// hisotgram for EMCal trigger
Expand Down Expand Up @@ -671,6 +672,7 @@
registry.fill(HIST("hTPCNsigma"), track.p(), track.tpcNSigmaEl());

float eop = -0.01;
float m02 = -0.01;
float isoEnergy = 99.0;
// track isolation
auto [trackCount, isoMomentum] = getIsolatedTrack(track.eta(), track.phi(), track.p(), tracks);
Expand All @@ -686,6 +688,8 @@
eop,
isoEnergy,
isoMomentum,
track.tpcNSigmaEl(),
m02,
trackCount,
track.tpcNClsCrossedRows(),
track.itsNCls());
Expand Down Expand Up @@ -758,6 +762,7 @@
const auto& cluster = match.emcalcluster_as<SelectedClusters>();

eop = energyEmc / match.track_as<TrackEle>().p();
m02 = m02Emc;
// LOG(info) << "eop = " << eop;

isoEnergy = getIsolatedCluster(cluster, emcClusters, energyUE);
Expand Down Expand Up @@ -818,6 +823,8 @@
eop,
isoEnergy,
isoMomentum,
track.tpcNSigmaEl(),
m02,
trackCount,
track.tpcNClsFound(),
track.itsNCls());
Expand All @@ -831,6 +838,8 @@
eop,
isoEnergy,
isoMomentum,
track.tpcNSigmaEl(),
m02,
trackCount,
track.tpcNClsFound(),
track.itsNCls());
Expand All @@ -856,7 +865,8 @@
// calculate Z-h correlation
double const deltaPhi = RecoDecay::constrainAngle(trackAss.phi - zBoson.phi, -o2::constants::math::PIHalf);
double const ptRatio = trackAss.pt / zBoson.pt;
registry.fill(HIST("hZHadronDphi"), centrality, zBoson.charge, zBoson.pt, deltaPhi, ptRatio, trackAss.pt);
double const deltaEta = zBoson.eta - trackAss.eta;
registry.fill(HIST("hZHadronDphi"), centrality, zBoson.charge, zBoson.pt, deltaPhi, deltaEta, ptRatio, trackAss.pt);
}
}
} // end of Z-hadron correlation
Expand All @@ -872,7 +882,12 @@
double const invMass = RecoDecay::m(std::array{child1, child2}, std::array{o2::constants::physics::MassElectron, o2::constants::physics::MassElectron});
float const sectorpos = trackPos.phi / o2::constants::math::SectorSpanRad;
if (invMass > massZMinQA) {
registry.fill(HIST("hInvMassZeeQA"), invMass, trackEle.pt, trackPos.pt, trackEle.dcaxyTrk, trackPos.dcaxyTrk, trackPos.dcazTrk, trackEle.nclusterTPC, trackPos.nclusterTPC, trackEle.nclusterITS, trackPos.nclusterITS, sectorneg, sectorpos, trackEle.eop, trackPos.eop, trackEle.energyIso, trackPos.energyIso, trackEle.momIso, trackPos.momIso, trackEle.ntrackIso, trackPos.ntrackIso);
if (ZeeRecoQAtype == 1) {
registry.fill(HIST("hInvMassZeeTrkQA"), invMass, trackEle.pt, trackPos.pt, trackEle.dcaxyTrk, trackPos.dcaxyTrk, trackPos.dcazTrk, trackEle.nclusterTPC, trackPos.nclusterTPC, trackEle.nclusterITS, trackPos.nclusterITS, sectorneg, sectorpos, trackEle.eop, trackPos.eop, trackEle.energyIso, trackPos.energyIso, trackEle.momIso, trackPos.momIso, trackEle.ntrackIso, trackPos.ntrackIso);
}
if (ZeeRecoQAtype == 2) {

Check failure on line 888 in PWGHF/HFL/Tasks/taskElectronWeakBoson.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[magic-number]

Avoid magic numbers in expressions. Assign the value to a clearly named variable or constant.
registry.fill(HIST("hInvMassZeeEmcQA"), invMass, trackEle.pt, trackPos.pt, trackEle.eop, trackPos.eop, trackEle.m02Emc, trackPos.m02Emc, trackEle.dedxTrk, trackPos.dedxTrk, trackEle.energyIso, trackPos.energyIso, trackEle.momIso, trackPos.momIso, trackEle.ntrackIso, trackPos.ntrackIso);
}
}
}
}
Expand All @@ -887,7 +902,12 @@
float const sectorpos = trackEle2.phi / o2::constants::math::SectorSpanRad;
double const invMass = RecoDecay::m(std::array{child1, child2}, std::array{o2::constants::physics::MassElectron, o2::constants::physics::MassElectron});
if (invMass > massZMinQA) {
registry.fill(HIST("hInvMassZeeQAbg"), invMass, trackEle.pt, trackEle2.pt, trackEle.dcaxyTrk, trackEle2.dcaxyTrk, trackEle2.dcazTrk, trackEle.nclusterTPC, trackEle2.nclusterTPC, trackEle.nclusterITS, trackEle2.nclusterITS, sectorneg, sectorpos, trackEle.eop, trackEle2.eop, trackEle.energyIso, trackEle2.energyIso, trackEle.momIso, trackEle2.momIso, trackEle.ntrackIso, trackEle2.ntrackIso);
if (ZeeRecoQAtype == 1) {
registry.fill(HIST("hInvMassZeeTrkQAbg"), invMass, trackEle.pt, trackEle2.pt, trackEle.dcaxyTrk, trackEle2.dcaxyTrk, trackEle2.dcazTrk, trackEle.nclusterTPC, trackEle2.nclusterTPC, trackEle.nclusterITS, trackEle2.nclusterITS, sectorneg, sectorpos, trackEle.eop, trackEle2.eop, trackEle.energyIso, trackEle2.energyIso, trackEle.momIso, trackEle2.momIso, trackEle.ntrackIso, trackEle2.ntrackIso);
}
if (ZeeRecoQAtype == 2) {

Check failure on line 908 in PWGHF/HFL/Tasks/taskElectronWeakBoson.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[magic-number]

Avoid magic numbers in expressions. Assign the value to a clearly named variable or constant.
registry.fill(HIST("hInvMassZeeEmcQAbg"), invMass, trackEle.pt, trackEle2.pt, trackEle.eop, trackEle2.eop, trackEle.m02Emc, trackEle2.m02Emc, trackEle.dedxTrk, trackEle2.dedxTrk, trackEle.energyIso, trackEle2.energyIso, trackEle.momIso, trackEle2.momIso, trackEle.ntrackIso, trackEle2.ntrackIso);
}
}
}
}
Expand All @@ -902,10 +922,15 @@
float const sectorpos = trackPos2.phi / o2::constants::math::SectorSpanRad;
double const invMass = RecoDecay::m(std::array{child1, child2}, std::array{o2::constants::physics::MassElectron, o2::constants::physics::MassElectron});
if (invMass > massZMinQA) {
registry.fill(HIST("hInvMassZeeQAbg"), invMass, trackPos.pt, trackPos2.pt, trackPos.dcaxyTrk, trackPos2.dcaxyTrk, trackPos2.dcazTrk, trackPos.nclusterTPC, trackPos2.nclusterTPC, trackPos.nclusterITS, trackPos2.nclusterITS, sectorneg, sectorpos, trackPos.eop, trackPos2.eop, trackPos.energyIso, trackPos2.energyIso, trackPos.momIso, trackPos2.momIso, trackPos.ntrackIso, trackPos2.ntrackIso);
if (ZeeRecoQAtype == 1) {
registry.fill(HIST("hInvMassZeeTrkQAbg"), invMass, trackPos.pt, trackPos2.pt, trackPos.dcaxyTrk, trackPos2.dcaxyTrk, trackPos2.dcazTrk, trackPos.nclusterTPC, trackPos2.nclusterTPC, trackPos.nclusterITS, trackPos2.nclusterITS, sectorneg, sectorpos, trackPos.eop, trackPos2.eop, trackPos.energyIso, trackPos2.energyIso, trackPos.momIso, trackPos2.momIso, trackPos.ntrackIso, trackPos2.ntrackIso);
}
if (ZeeRecoQAtype == 2) {

Check failure on line 928 in PWGHF/HFL/Tasks/taskElectronWeakBoson.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[magic-number]

Avoid magic numbers in expressions. Assign the value to a clearly named variable or constant.
registry.fill(HIST("hInvMassZeeEmcQAbg"), invMass, trackPos.pt, trackPos2.pt, trackPos.eop, trackPos2.eop, trackPos.m02Emc, trackPos2.m02Emc, trackPos.dedxTrk, trackPos2.dedxTrk, trackPos.energyIso, trackPos2.energyIso, trackPos.momIso, trackPos2.momIso, trackPos.ntrackIso, trackPos2.ntrackIso);
}
}
}
}
} // end of pos-pos paring
} // check arrays aren't empty
} // end of Z->ee QA
} // process
Expand Down
Loading