@@ -476,7 +476,7 @@ struct TrackEfficiency {
476476 }
477477 registry.fill (HIST (" hMcCollCutsCounts" ), 5.5 ); // at least one of the reconstructed collisions associated with this mcCollision is selected with regard to centrality
478478
479- float pTHat = mcCollision.ptHard () < 999 .0f ? mcCollision.ptHard () : 10 . / (std::pow (mcCollision.weight (), 1.0 / pTHatExponent));
479+ float pTHat = mcCollision.ptHard () < 999 .0f ? mcCollision.ptHard () : simPtRef / (std::pow (mcCollision.weight (), 1.0 / pTHatExponent));
480480 if (pTHat < ptHatMin || pTHat > ptHatMax) { // only allows mcCollisions with weight in between min and max
481481 return ;
482482 }
@@ -819,7 +819,7 @@ struct TrackEfficiency {
819819 return ;
820820 }
821821
822- float pTHat = collision.mcCollision ().ptHard () < 999 .0f ? collision.mcCollision ().ptHard () : 10 . / (std::pow (collision.mcCollision ().weight (), 1.0 / pTHatExponent));
822+ float pTHat = collision.mcCollision ().ptHard () < 999 .0f ? collision.mcCollision ().ptHard () : simPtRef / (std::pow (collision.mcCollision ().weight (), 1.0 / pTHatExponent));
823823 if (pTHat < ptHatMin || pTHat > ptHatMax) { // only allows mcCollisions with weight in between min and max
824824 return ;
825825 }
@@ -848,7 +848,7 @@ struct TrackEfficiency {
848848 return ;
849849 }
850850
851- float pTHat = collision.mcCollision ().ptHard () < 999 .0f ? collision.mcCollision ().ptHard () : 10 . / (std::pow (eventWeight, 1.0 / pTHatExponent));
851+ float pTHat = collision.mcCollision ().ptHard () < 999 .0f ? collision.mcCollision ().ptHard () : simPtRef / (std::pow (eventWeight, 1.0 / pTHatExponent));
852852 if (pTHat < ptHatMin || pTHat > ptHatMax) { // only allows mcCollisions with weight in between min and max
853853 return ;
854854 }
@@ -873,7 +873,7 @@ struct TrackEfficiency {
873873 return ;
874874 }
875875
876- float pTHat = mcCollision.ptHard () < 999 .0f ? mcCollision.ptHard () : 10 . / (std::pow (mcCollision.weight (), 1.0 / pTHatExponent));
876+ float pTHat = mcCollision.ptHard () < 999 .0f ? mcCollision.ptHard () : simPtRef / (std::pow (mcCollision.weight (), 1.0 / pTHatExponent));
877877 if (pTHat < ptHatMin || pTHat > ptHatMax) { // only allows mcCollisions with weight in between min and max
878878 return ;
879879 }
@@ -936,7 +936,7 @@ struct TrackEfficiency {
936936 return ;
937937 }
938938
939- float pTHat = mcCollision.ptHard () < 999 .0f ? mcCollision.ptHard () : 10 . / (std::pow (eventWeight, 1.0 / pTHatExponent));
939+ float pTHat = mcCollision.ptHard () < 999 .0f ? mcCollision.ptHard () : simPtRef / (std::pow (eventWeight, 1.0 / pTHatExponent));
940940 if (pTHat < ptHatMin || pTHat > ptHatMax) { // only allows mcCollisions with weight in between min and max
941941 return ;
942942 }
@@ -1030,7 +1030,7 @@ struct TrackEfficiency {
10301030 registry.fill (HIST (" h_collisions" ), 3.5 );
10311031 registry.fill (HIST (" h2_centrality_collisions" ), centrality, 3.5 );
10321032
1033- float pTHat = collision.mcCollision ().ptHard () < 999 .0f ? collision.mcCollision ().ptHard () : 10 . / (std::pow (collision.mcCollision ().weight (), 1.0 / pTHatExponent));
1033+ float pTHat = collision.mcCollision ().ptHard () < 999 .0f ? collision.mcCollision ().ptHard () : simPtRef / (std::pow (collision.mcCollision ().weight (), 1.0 / pTHatExponent));
10341034 if (pTHat < ptHatMin || pTHat > ptHatMax) { // only allows mcCollisions with weight in between min and max
10351035 return ;
10361036 }
@@ -1067,7 +1067,7 @@ struct TrackEfficiency {
10671067 registry.fill (HIST (" h_collisions" ), 3.5 );
10681068 registry.fill (HIST (" h_collisions_weighted" ), 3.5 , eventWeight);
10691069
1070- float pTHat = collision.mcCollision ().ptHard () < 999 .0f ? collision.mcCollision ().ptHard () : 10 . / (std::pow (eventWeight, 1.0 / pTHatExponent));
1070+ float pTHat = collision.mcCollision ().ptHard () < 999 .0f ? collision.mcCollision ().ptHard () : simPtRef / (std::pow (eventWeight, 1.0 / pTHatExponent));
10711071 if (pTHat < ptHatMin || pTHat > ptHatMax) { // only allows mcCollisions with weight in between min and max
10721072 return ;
10731073 }
@@ -1082,8 +1082,8 @@ struct TrackEfficiency {
10821082 // float centrality = checkCentFT0M ? mcCollision.centFT0M() : mcCollision.centFT0C(); mcCollision.centFT0C() isn't filled at the moment; can be added back when it is
10831083
10841084 float eventWeight = mcCollision.weight ();
1085- float pTHat = mcCollision.ptHard () < 999 .0f ? mcCollision.ptHard () : 10 . / (std::pow (eventWeight, 1.0 / pTHatExponent));
1086- registry.fill (HIST (" h2_mccollision_pthardfromweight_pthardfromhepmcxsection" ), 10 . / (std::pow (eventWeight, 1.0 / pTHatExponent)), mcCollision.ptHard ());
1085+ float pTHat = mcCollision.ptHard () < 999 .0f ? mcCollision.ptHard () : simPtRef / (std::pow (eventWeight, 1.0 / pTHatExponent));
1086+ registry.fill (HIST (" h2_mccollision_pthardfromweight_pthardfromhepmcxsection" ), simPtRef / (std::pow (eventWeight, 1.0 / pTHatExponent)), mcCollision.ptHard ());
10871087
10881088 float centrality = -1 ;
10891089 bool hasSel8Coll = false ;
@@ -1154,9 +1154,9 @@ struct TrackEfficiency {
11541154 // float centrality = checkCentFT0M ? mcCollision.centFT0M() : mcCollision.centFT0C(); mcCollision.centFT0C() isn't filled at the moment; can be added back when it is
11551155
11561156 float eventWeight = mcCollision.weight ();
1157- float pTHat = mcCollision.ptHard () < 999 .0f ? mcCollision.ptHard () : 10 . / (std::pow (eventWeight, 1.0 / pTHatExponent));
1158- registry.fill (HIST (" h2_mccollision_pthardfromweight_pthardfromhepmcxsection" ), 10 . / (std::pow (eventWeight, 1.0 / pTHatExponent)), mcCollision.ptHard ());
1159- registry.fill (HIST (" h2_mccollision_pthardfromweight_pthardfromhepmcxsection_weighted" ), 10 . / (std::pow (eventWeight, 1.0 / pTHatExponent)), mcCollision.ptHard (), eventWeight);
1157+ float pTHat = mcCollision.ptHard () < 999 .0f ? mcCollision.ptHard () : simPtRef / (std::pow (eventWeight, 1.0 / pTHatExponent));
1158+ registry.fill (HIST (" h2_mccollision_pthardfromweight_pthardfromhepmcxsection" ), simPtRef / (std::pow (eventWeight, 1.0 / pTHatExponent)), mcCollision.ptHard ());
1159+ registry.fill (HIST (" h2_mccollision_pthardfromweight_pthardfromhepmcxsection_weighted" ), simPtRef / (std::pow (eventWeight, 1.0 / pTHatExponent)), mcCollision.ptHard (), eventWeight);
11601160
11611161 float centrality = -1 ;
11621162 bool hasSel8Coll = false ;
0 commit comments