32 #include "canvas/Persistency/Common/FindManyP.h" 85 bool InRange(
double,
double,
double);
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";
248 return ( (input >= low) && (input <= high) );
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.
PrimaryPionSelection & operator=(PrimaryPionSelection const &)=delete
bool filter(art::Event &e) override
bool InRange(double, double, double)
PrimaryPionSelection(fhicl::ParameterSet const &p)
bool IsBeamlike(const recob::Track &, const art::Event &, std::string)
std::string dEdX_template_name
#define DEFINE_ART_MODULE(klass)
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...
bool IsGoodBeamlineTrigger(art::Event const &evt) const
fhicl::ParameterSet fCalorimetryParameters
#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].
Provides recob::Track data product.
EDFilter(fhicl::ParameterSet const &pset)
std::string fCalorimetryTag
std::string fNominalMomentum
std::string fPFParticleTag
Point_t const & Start() const
Returns the position of the first valid point of the trajectory [cm].
std::string fGeneratorTag
Track from a non-cascading particle.A recob::Track consists of a recob::TrackTrajectory, plus additional members relevant for a "fitted" track: