File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -223,6 +223,7 @@ class sbn::TrackCaloSkimmer : public art::EDAnalyzer {
223223 double fTopCRTDistanceCutPassing ;
224224 double fSideCRTDistanceCutStopping ;
225225 double fSideCRTDistanceCutPassing ;
226+ bool fAllowShowerLikePFPs ;
226227
227228 // tools
228229 std::vector<std::unique_ptr<sbn::ITCSSelectionTool>> fSelectionTools ;
Original file line number Diff line number Diff line change @@ -92,7 +92,8 @@ sbn::TrackCaloSkimmer::TrackCaloSkimmer(fhicl::ParameterSet const& p)
9292 fTopCRTDistanceCutPassing = p.get <double >(" TopCRTDistanceCut_throughgoing" , 100 .);
9393 fSideCRTDistanceCutStopping = p.get <double >(" SideCRTDistanceCut_stopping" , 100 .);
9494 fSideCRTDistanceCutPassing = p.get <double >(" SideCRTDistanceCut_throughgoing" , 100 .);
95-
95+ fAllowShowerLikePFPs = p.get <bool >(" AllowShowerLikePFPs" , false );
96+
9697 if (fTailFitResidualRange > 10 .) {
9798 std::cout << " sbn::TrackCaloSkimmer: Bad tail fit residual range config :(" << fTailFitResidualRange << " ). Fits will not be meaningful.\n " ;
9899 }
@@ -315,7 +316,7 @@ void sbn::TrackCaloSkimmer::analyze(art::Event const& e)
315316 for (art::Ptr<recob::PFParticle> p_pfp: PFParticleList) {
316317 const recob::PFParticle &pfp = *p_pfp;
317318
318- if (p_pfp->PdgCode () == 11 )
319+ if (p_pfp->PdgCode () == 11 && ! fAllowShowerLikePFPs )
319320 continue ;
320321
321322 const std::vector<art::Ptr<recob::Track>> thisTrack = fmTracks.at (p_pfp.key ());
You can’t perform that action at this time.
0 commit comments