@@ -574,8 +574,8 @@ struct AngularCorrelationsInJets {
574574 for (int i = 0 ; i < static_cast <int >(buffer.size ()); i++) { // loop over tracks in buffer
575575 if (std::isnan (buffer.at (i).first ))
576576 continue ;
577- if (buffer.at (i).first > constants::math::TwoPI || buffer.at (i).first < constants::math::TwoPI) {
578- registryData.fill (HIST (" trackProtocol" ), 13 ); // # buffer tracks failed with phi > 2 pi
577+ if (buffer.at (i).first > constants::math::TwoPI || buffer.at (i).first < - constants::math::TwoPI) {
578+ registryData.fill (HIST (" trackProtocol" ), 13 ); // # buffer tracks failed with | phi| > 2 pi
579579 continue ;
580580 }
581581
@@ -999,7 +999,6 @@ struct AngularCorrelationsInJets {
999999 continue ;
10001000
10011001 registryData.fill (HIST (" trackProtocol" ), 1 ); // # tracks selected for jet reconstruction
1002- double mass = 0.139 ;
10031002
10041003 if (track.tpcNClsFindable () != 0 ) {
10051004 registryQC.fill (HIST (" ratioCrossedRowsTPC" ), track.pt (), track.tpcNClsCrossedRows () / track.tpcNClsFindable ());
@@ -1019,7 +1018,7 @@ struct AngularCorrelationsInJets {
10191018 registryQC.fill (HIST (" etaFullEvent" ), track.eta ());
10201019 registryQC.fill (HIST (" etaPtFullEvent" ), track.pt (), track.eta ());
10211020 }
1022- fastjet::PseudoJet inputPseudoJet (track.px (), track.py (), track.pz (), track.energy (mass ));
1021+ fastjet::PseudoJet inputPseudoJet (track.px (), track.py (), track.pz (), track.energy (o2::constants::physics::MassPionCharged ));
10231022 inputPseudoJet.set_user_index (index);
10241023 particles[index] = track;
10251024 particlesForCF.emplace_back (track);
@@ -1052,8 +1051,10 @@ struct AngularCorrelationsInJets {
10521051 registryData.fill (HIST (" numJetsInEvent" ), jetCounter);
10531052
10541053 TVector3 hardestJetAxis (jets.at (0 ).px (), jets.at (0 ).py (), jets.at (0 ).pz ()); // for full event, use hardest jet as orientation
1055- doCorrelations (particlesForCF, fBufferFull , fTempBufferFull , -1 , hardestJetAxis);
1056- setTrackBuffer (fTempBufferFull , fBufferFull );
1054+ if (doFullCorrelations) {
1055+ doCorrelations (particlesForCF, fBufferFull , fTempBufferFull , -1 , hardestJetAxis);
1056+ setTrackBuffer (fTempBufferFull , fBufferFull );
1057+ }
10571058 }
10581059
10591060 template <typename U>
@@ -1064,7 +1065,6 @@ struct AngularCorrelationsInJets {
10641065 jetInput.clear ();
10651066 particles.clear ();
10661067 int index = 0 ;
1067- double mass = 0.139 ; // pion mass for input because 80% is pions anyway
10681068
10691069 for (const auto & track : tracks) {
10701070 if (track.tpcNClsFindable () != 0 ) {
@@ -1083,7 +1083,7 @@ struct AngularCorrelationsInJets {
10831083 registryQC.fill (HIST (" etaFullEvent" ), track.eta ());
10841084 registryQC.fill (HIST (" etaPtFullEvent" ), track.pt (), track.eta ());
10851085
1086- fastjet::PseudoJet inputPseudoJet (track.px (), track.py (), track.pz (), track.energy (mass ));
1086+ fastjet::PseudoJet inputPseudoJet (track.px (), track.py (), track.pz (), track.energy (o2::constants::physics::MassPionCharged ));
10871087 inputPseudoJet.set_user_index (index);
10881088 particles[index] = track;
10891089 jetInput.emplace_back (inputPseudoJet);
0 commit comments