Skip to content
Closed
Changes from all commits
Commits
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
10 changes: 5 additions & 5 deletions PWGUD/Tasks/upcTauTau13topo.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@
tau_tree::TotalFT0AmplitudeA, tau_tree::TotalFT0AmplitudeC, tau_tree::TotalFV0AmplitudeA,
// tau_tree::TimeFT0A, tau_tree::TimeFT0C, tau_tree::TimeFV0A,
tau_tree::TrkPx, tau_tree::TrkPy, tau_tree::TrkPz,
tau_tree::TrkSign,
tau_tree::TrkSign,
tau_tree::TrkDCAxy, tau_tree::TrkDCAz,
tau_tree::TrkTPCcr,
tau_tree::TrkTPCfind, tau_tree::TrkTPCchi2, tau_tree::TrkITSchi2, tau_tree::TrkITScl,
Expand Down Expand Up @@ -1819,7 +1819,7 @@
{
bool isGlobalTrack = true;
registry.get<TH1>(HIST("global/hTrackEfficiencyPVGlobal"))->Fill(0., 1.);
if (track.tpcNClsCrossedRows() > 70) {

Check failure on line 1822 in PWGUD/Tasks/upcTauTau13topo.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.get<TH1>(HIST("global/hTrackEfficiencyPVGlobal"))->Fill(1., 1.);
} else {
isGlobalTrack = false;
Expand All @@ -1827,38 +1827,38 @@
if (track.tpcNClsFindable() == 0) {
isGlobalTrack = false;
} else {
if (track.tpcNClsCrossedRows() / track.tpcNClsFindable() > 0.8) {

Check failure on line 1830 in PWGUD/Tasks/upcTauTau13topo.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.get<TH1>(HIST("global/hTrackEfficiencyPVGlobal"))->Fill(2., 1.);
} else {
isGlobalTrack = false;
}
}
if (track.tpcChi2NCl() < 4.) {

Check failure on line 1836 in PWGUD/Tasks/upcTauTau13topo.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.get<TH1>(HIST("global/hTrackEfficiencyPVGlobal"))->Fill(3., 1.);
} else {
isGlobalTrack = false;
}
if (track.itsChi2NCl() < 36.) {

Check failure on line 1841 in PWGUD/Tasks/upcTauTau13topo.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.get<TH1>(HIST("global/hTrackEfficiencyPVGlobal"))->Fill(4., 1.);
} else {
isGlobalTrack = false;
}
if (track.dcaZ() < 2.) {

Check failure on line 1846 in PWGUD/Tasks/upcTauTau13topo.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.get<TH1>(HIST("global/hTrackEfficiencyPVGlobal"))->Fill(5., 1.);
} else {
isGlobalTrack = false;
}
if (track.dcaXY() < 0.0105 * 0.035 / std::pow(track.pt(), 1.1)) {

Check failure on line 1851 in PWGUD/Tasks/upcTauTau13topo.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.get<TH1>(HIST("global/hTrackEfficiencyPVGlobal"))->Fill(6., 1.);
} else {
isGlobalTrack = false;
}
if (track.pt() > 0.1) {

Check failure on line 1856 in PWGUD/Tasks/upcTauTau13topo.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.get<TH1>(HIST("global/hTrackEfficiencyPVGlobal"))->Fill(7., 1.);
} else {
isGlobalTrack = false;
}
if (std::abs(RecoDecay::eta(std::array<double, 3>{track.px(), track.py(), track.pz()})) < 0.8) {

Check failure on line 1861 in PWGUD/Tasks/upcTauTau13topo.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.get<TH1>(HIST("global/hTrackEfficiencyPVGlobal"))->Fill(8., 1.);
} else {
isGlobalTrack = false;
Expand Down Expand Up @@ -1908,12 +1908,12 @@
} else {
isGoodTrack = false;
}
if (track.tpcChi2NCl() < 4.) {

Check failure on line 1911 in PWGUD/Tasks/upcTauTau13topo.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.get<TH1>(HIST("global/hTrackPVGood"))->Fill(2., 1.);
} else {
isGoodTrack = false;
}
if (track.itsChi2NCl() < 36.) {

Check failure on line 1916 in PWGUD/Tasks/upcTauTau13topo.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.get<TH1>(HIST("global/hTrackPVGood"))->Fill(3., 1.);
} else {
isGoodTrack = false;
Expand Down Expand Up @@ -3346,7 +3346,7 @@
// loop over MC particles
for (const auto& mcParticle : mcParticles) {
if (verbose) {
LOGF(info, "<processSimpleMCSG> mcParticle pdg %d, gen %d, prim %d", mcParticle.pdgCode(), mcParticle.producedByGenerator(), mcParticle.isPhysicalPrimary() );
LOGF(info, "<processSimpleMCSG> mcParticle pdg %d, gen %d, prim %d", mcParticle.pdgCode(), mcParticle.producedByGenerator(), mcParticle.isPhysicalPrimary());
}
// primaries
// if (mcParticle.isPhysicalPrimary()) {
Expand All @@ -3358,7 +3358,7 @@
if (mcParticle.producedByGenerator()) {
countGen++;
if (mcParticle.isPhysicalPrimary()) {
countBoth++;
countBoth++;
// if (mcParticle.pdgCode() != 22 && std::abs(mcParticle.pdgCode()) != 12 && std::abs(mcParticle.pdgCode()) != 14 && std::abs(mcParticle.pdgCode()) != 16 && mcParticle.pdgCode() != 130 && mcParticle.pdgCode() != 111) {
if (mcParticle.pdgCode() != kGamma && std::abs(mcParticle.pdgCode()) != kNuE && std::abs(mcParticle.pdgCode()) != kNuMu && std::abs(mcParticle.pdgCode()) != kNuTau && mcParticle.pdgCode() != kK0Long && mcParticle.pdgCode() != kPi0) {
countCharged++;
Expand All @@ -3376,7 +3376,7 @@
} // mother is tau
} // mc particle has mother
} // veto neutral particles
} // physics primary
} // physics primary
} // generator produced by

//
Expand Down Expand Up @@ -3550,7 +3550,7 @@
// LOGF(info, "<tautau13topo_MC> Per DF: UDMcParticles size %d, UDMcCollisions size %d, FullMcUdCollisions size %d", mcParts.size(), mcCollisions.size(), collisionsFull.size());
// LOGF(info, "<tautau13topo_MC> Per DF: UDMcParticles size %d, UDMcCollisions size %d, FullMcUdCollisions size %d", mcParts.size(), mcCollisions.size(), collisions.size());
LOGF(info, "<tautau13topo_MCSG> UDMcCollision size %d, SmallGroups FullMcUdCollisions size %d, UDtracks %d, UDMcParticles %d", mcCollision.size(), collisions.size(), tracks.size(), mcParticles.size());

// loop over generated collisions
// for (const auto &mcCollision : mcCollisions) {
// LOGF(info, "<tautau13topo_MC> Per mcCollision not sliced: UDMcParticles size %d, FullMcUdCollisions size %d", mcParts.size(), collisionsFull.size());
Expand Down
Loading