@@ -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}
28722871template <int pairType, typename T, typename T1>
28732872void VarManager::FillEnergyCorrelatorsMC (T const & track, T1 const & t1, float * values)
0 commit comments