Skip to content

Commit ae33a8b

Browse files
Merge pull request #17 from alibuild/alibot-cleanup-13890
[PWGDQ] Please consider the following formatting changes to #13890
2 parents 1db9cbd + 26ec073 commit ae33a8b

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed

PWGDQ/Core/VarManager.h

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2830,19 +2830,19 @@ void VarManager::FillTrackCollisionMC(T1 const& track, T2 const& MotherTrack, C
28302830
}
28312831

28322832
float m = 0.0;
2833-
float pdgLifetime = 0.0;
2833+
float pdgLifetime = 0.0;
28342834
if (std::abs(MotherTrack.pdgCode()) == 521) {
28352835
m = o2::constants::physics::MassBPlus;
2836-
pdgLifetime = 1.638e-12; //s
2837-
}
2836+
pdgLifetime = 1.638e-12; // s
2837+
}
28382838
if (std::abs(MotherTrack.pdgCode()) == 511) {
28392839
m = o2::constants::physics::MassB0;
2840-
pdgLifetime = 1.517e-12; //s
2840+
pdgLifetime = 1.517e-12; // s
28412841
}
28422842

28432843
// displaced vertex is compued with decay product (track) and momentum of mother particle (MotherTrack)
28442844
values[kMCVertexingLxy] = (collision.mcPosX() - track.vx()) * (collision.mcPosX() - track.vx()) +
2845-
(collision.mcPosY() - track.vy()) * (collision.mcPosY() - track.vy());
2845+
(collision.mcPosY() - track.vy()) * (collision.mcPosY() - track.vy());
28462846
values[kMCVertexingLz] = (collision.mcPosZ() - track.vz()) * (collision.mcPosZ() - track.vz());
28472847
values[kMCVertexingLxyz] = values[kMCVertexingLxy] + values[kMCVertexingLz];
28482848
values[kMCVertexingLxy] = std::sqrt(values[kMCVertexingLxy]);
@@ -2851,9 +2851,9 @@ void VarManager::FillTrackCollisionMC(T1 const& track, T2 const& MotherTrack, C
28512851
values[kMCVertexingTauz] = (collision.mcPosZ() - track.vz()) * m / (TMath::Abs(MotherTrack.pz()) * o2::constants::physics::LightSpeedCm2NS);
28522852
values[kMCVertexingTauxy] = values[kMCVertexingLxy] * m / (MotherTrack.pt() * o2::constants::physics::LightSpeedCm2NS);
28532853
values[kMCCosPointingAngle] = ((collision.mcPosX() - track.vx()) * MotherTrack.px() +
2854-
(collision.mcPosY() - track.vy()) * MotherTrack.py() +
2855-
(collision.mcPosZ() - track.vz()) * MotherTrack.pz()) /
2856-
(MotherTrack.p() * values[VarManager::kMCVertexingLxyz]);
2854+
(collision.mcPosY() - track.vy()) * MotherTrack.py() +
2855+
(collision.mcPosZ() - track.vz()) * MotherTrack.pz()) /
2856+
(MotherTrack.p() * values[VarManager::kMCVertexingLxyz]);
28572857

28582858
values[kMCLxyExpected] = (MotherTrack.pt() / m) * (pdgLifetime * o2::constants::physics::LightSpeedCm2S);
28592859
values[kMCLxyzExpected] = (MotherTrack.p() / m) * (pdgLifetime * o2::constants::physics::LightSpeedCm2S);
@@ -2867,7 +2867,6 @@ void VarManager::FillTrackCollisionMC(T1 const& track, T2 const& MotherTrack, C
28672867
values[kMCVertexingTauxyProjectedNs] = values[kMCVertexingTauxyProjected] / o2::constants::physics::LightSpeedCm2NS;
28682868
values[kMCVertexingTauzProjected] = values[kMCVertexingLzProjected] * m / TMath::Abs(MotherTrack.pz());
28692869
values[kMCVertexingTauxyzProjected] = values[kMCVertexingLxyzProjected] * m / (MotherTrack.p());
2870-
28712870
}
28722871
template <int pairType, typename T, typename T1>
28732872
void VarManager::FillEnergyCorrelatorsMC(T const& track, T1 const& t1, float* values)

PWGDQ/Tasks/dqEfficiency_withAssoc.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4059,7 +4059,7 @@ struct AnalysisDileptonTrack {
40594059
mcDecision |= (static_cast<uint32_t>(1) << isig);
40604060
}
40614061
}
4062-
4062+
40634063
// fill MC truth values for the B hadron
40644064
auto currentMCParticle = trackMC;
40654065
if (mcDecision > 0) {

0 commit comments

Comments
 (0)