126 if( !fBeamlineUtils.IsGoodBeamlineTrigger( e ) ){
127 MF_LOG_INFO(
"PrimaryPionSelection") <<
"Failed Beamline Trigger Check" <<
"\n";
134 if(beamParticles.size() == 0){
135 MF_LOG_INFO(
"PrimaryPionSelection") <<
"We found no beam particles for this event... moving on" <<
"\n";
146 if( !thisTrack && thisShower ){
147 MF_LOG_INFO(
"PrimaryPionSelection") <<
"Beam Particle Reconstructed as shower" <<
"\n";
150 else if( !thisShower && !thisTrack ){
151 MF_LOG_INFO(
"PrimaryPionSelection") <<
"Beam Particle Not Reconstructed" <<
"\n";
155 MF_LOG_INFO(
"PrimaryPionSelection") <<
"Beam Particle Reconstructed as track" <<
"\n";
162 MF_LOG_INFO(
"PrimaryPionSelection") <<
"Beam Particle failed Beam Cuts" <<
"\n";
178 MF_LOG_INFO(
"PrimaryPionSelection") <<
"Failed End Z cut" <<
"\n";
protoana::ProtoDUNEBeamCuts beam_cuts
const recob::Shower * GetPFParticleShower(const recob::PFParticle &particle, art::Event const &evt, const std::string particleLabel, const std::string showerLabel) const
Get the shower associated to this particle. Returns a null pointer if not found.
const recob::TrackTrajectory & Trajectory() const
Access to the stored recob::TrackTrajectory.
bool IsBeamlike(const recob::Track &, const art::Event &, std::string)
fhicl::ParameterSet beamlineUtil
const recob::Track * GetPFParticleTrack(const recob::PFParticle &particle, art::Event const &evt, const std::string particleLabel, const std::string trackLabel) const
Get the track associated to this particle. Returns a null pointer if not found.
const std::vector< const recob::PFParticle * > GetPFParticlesFromBeamSlice(art::Event const &evt, const std::string particleLabel) const
Return the pointers for the PFParticles in the beam slice. Returns an empty vector is no beam slice w...
#define MF_LOG_INFO(category)
Hierarchical representation of particle flow.
Point_t const & End() const
Returns the position of the last valid point of the trajectory [cm].
std::string fNominalMomentum
std::string fPFParticleTag
Point_t const & Start() const
Returns the position of the first valid point of the trajectory [cm].
Track from a non-cascading particle.A recob::Track consists of a recob::TrackTrajectory, plus additional members relevant for a "fitted" track: