File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -80,6 +80,7 @@ struct cascadeGenerated {
8080 Configurable<int > nPtBins{" nPtBins" , 200 , " number of pT bins" };
8181 Configurable<float > rapidityCut{" rapidityCut" , 0.5 , " max (absolute) rapidity of generated cascade" };
8282 Configurable<int > nRapidityBins{" nRapidityBins" , 200 , " number of pT bins" };
83+ Configurable<bool > requirePhysicalPrimary{" requirePhysicalPrimary" , false , " require the generated cascade to be a physical primary" };
8384
8485 void init (InitContext const &)
8586 {
@@ -108,6 +109,8 @@ struct cascadeGenerated {
108109 for (auto & particle : mcparts) {
109110 if (TMath::Abs (particle.y ()) > rapidityCut)
110111 continue ;
112+ if (requirePhysicalPrimary && !particle.isPhysicalPrimary ())
113+ continue ;
111114 if (particle.pdgCode () == 3312 ) {
112115 registry.fill (HIST (" hPtXiMinus" ), particle.pt ());
113116 registry.fill (HIST (" h2DXiMinus" ), particle.pt (), particle.y ());
You can’t perform that action at this time.
0 commit comments