11 #include "cetlib_except/exception.h" 30 return DUNEAnaEventUtils::GetProductVector<recob::PFParticle>(
evt,
label);
37 mf::LogWarning(
"DUNEAna") <<
" Please note: accessing PFParticle tracks through this method is not the recommended workflow.\n" 38 <<
" Please use DUNEAnaEventUtils::GetPFParticles and access the tracks with DUNEAnaPFParticleUtils::GetTrack." 41 return DUNEAnaEventUtils::GetProductVector<recob::Track>(
evt,
label);
48 mf::LogWarning(
"DUNEAna") <<
" Please note: accessing PFParticle showers through this method is not the recommended workflow.\n" 49 <<
" Please use DUNEAnaEventUtils::GetPFParticles and access the tracks with DUNEAnaPFParticleUtils::GetShower." 52 return DUNEAnaEventUtils::GetProductVector<recob::Shower>(
evt,
label);
59 return DUNEAnaEventUtils::GetProductVector<recob::Vertex>(
evt,
label);
66 return DUNEAnaEventUtils::GetProductVector<recob::Hit>(
evt,
label);
73 return DUNEAnaEventUtils::GetProductVector<recob::Wire>(
evt,
label);
80 return DUNEAnaEventUtils::GetProductVector<recob::SpacePoint>(
evt,
label);
87 return DUNEAnaEventUtils::GetProductVector<recob::Slice>(
evt,
label);
94 return DUNEAnaEventUtils::GetProductVector<simb::MCTruth>(
evt,
label);
101 return DUNEAnaEventUtils::GetProductVector<simb::MCParticle>(
evt,
label);
108 std::vector<art::Ptr<recob::PFParticle>> theseParticles = DUNEAnaEventUtils::GetProductVector<recob::PFParticle>(
evt,
label);
110 std::vector<art::Ptr<recob::PFParticle>> theseCosmics;
115 if (!pParticle->IsPrimary())
122 theseCosmics.push_back(pParticle);
135 throw cet::exception(
"DUNEAna") <<
"DUNEAnaEventUtils::GetNeutrino --- No neutrino found";
144 pNeutrino = pParticle;
155 bool hasNeutrino =
false;
159 if(!pParticle->IsPrimary())
176 return DUNEAnaEventUtils::GetProductVector<cvn::Result>(
evt,
label);
183 return DUNEAnaEventUtils::GetProductVector<ctp::CTPResult>(
evt,
label);
Class storing the result from the convolutional track PID.
static bool IsClearCosmic(const art::Ptr< recob::PFParticle > &pParticle, const art::Event &evt, const std::string &pParticleLabel)
Check if this particle is a clear cosmic ray.
static art::Ptr< recob::PFParticle > GetNeutrino(const art::Event &evt, const std::string &label)
Get the neutrino from the event.
static std::vector< art::Ptr< recob::Hit > > GetHits(const art::Event &evt, const std::string &label)
Get the hits from the event.
static bool HasNeutrino(const art::Event &evt, const std::string &label)
Check to see if the event has a reconstructed neutrino.
static std::vector< art::Ptr< recob::Wire > > GetWires(const art::Event &evt, const std::string &label)
Get the wires from the event.
static std::vector< art::Ptr< ctp::CTPResult > > GetSquIDResults(const art::Event &evt, const std::string &label)
Get the SquID track PID result objects from the event.
static std::vector< art::Ptr< simb::MCParticle > > GetMCParticles(const art::Event &evt, const std::string &label)
Get the MC particles from the event.
static std::vector< art::Ptr< recob::PFParticle > > GetClearCosmics(const art::Event &evt, const std::string &label)
Get the clear cosmic ray primaries from the event.
static std::vector< art::Ptr< recob::Track > > GetTracks(const art::Event &evt, const std::string &label)
Get the tracks from the event. This function shouldn't be used as the basis of an analysis...
static bool IsNeutrino(const art::Ptr< recob::PFParticle > &pParticle)
Check if this particle is a neutrino.
static std::vector< art::Ptr< recob::Vertex > > GetVertices(const art::Event &evt, const std::string &label)
Get the vertices from the event.
Utility containing helpful functions for end users to access information about PFParticles.
Utility containing helpful functions for end users to access products from events.
static std::vector< art::Ptr< recob::SpacePoint > > GetSpacePoints(const art::Event &evt, const std::string &label)
Get the spacepoints from the event.
Declaration of signal hit object.
static std::vector< art::Ptr< simb::MCTruth > > GetMCTruths(const art::Event &evt, const std::string &label)
Get the MC truths from the event.
MaybeLogger_< ELseverityLevel::ELsev_warning, false > LogWarning
Provides recob::Track data product.
static std::vector< art::Ptr< recob::Shower > > GetShowers(const art::Event &evt, const std::string &label)
Get the showers from the event. This function shouldn't be used as the basis of an analysis...
static std::vector< art::Ptr< cvn::Result > > GetCVNResults(const art::Event &evt, const std::string &label)
Get the CVN result objects from the event.
static std::vector< art::Ptr< recob::PFParticle > > GetPFParticles(const art::Event &evt, const std::string &label)
Get the particles from the event.
cet::coded_exception< error, detail::translate > exception
QTextStream & endl(QTextStream &s)
static std::vector< art::Ptr< recob::Slice > > GetSlices(const art::Event &evt, const std::string &label)
Get the slices from the event.