File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -194,7 +194,8 @@ struct Phik0shortanalysis {
194194 Configurable<bool > fillMethodSingleWeight{" fillMethodSingleWeight" , false , " Fill method Single Weight" };
195195 Configurable<bool > applyEfficiency{" applyEfficiency" , false , " Use efficiency for filling histograms" };
196196
197- // Configurable for MCPhi filter
197+ // Configurables for dN/deta with phi computation
198+ Configurable<bool > furtherCheckonMcCollision{" furtherCheckonMcCollision" , true , " Further check on MC collisions" };
198199 Configurable<bool > filterOnMcPhi{" filterOnMcPhi" , true , " Filter on MC Phi" };
199200
200201 // Configurable for event mixing
@@ -2454,10 +2455,12 @@ struct Phik0shortanalysis {
24542455 return ;
24552456 if (!collision.has_mcCollision ())
24562457 return ;
2457- const auto & mcCollision = collision.mcCollision_as <MCCollisions>();
24582458
2459+ const auto & mcCollision = collision.mcCollision_as <MCCollisions>();
24592460 auto mcParticlesThisColl = mcParticles.sliceBy (preslices.perMCColl , mcCollision.globalIndex ());
24602461
2462+ if (furtherCheckonMcCollision && (std::abs (mcCollision.posZ ()) > cutZVertex || !pwglf::isINELgtNmc (mcParticlesThisColl, 0 , pdgDB)))
2463+ return ;
24612464 if (filterOnMcPhi && !eventHasMCPhi (mcParticlesThisColl))
24622465 return ;
24632466
You can’t perform that action at this time.
0 commit comments