DUNEAnaShowerUtils.cxx
Go to the documentation of this file.
1 /**
2 *
3 * @file dunereco/AnaUtils/DUNEAnaShowerUtils.cxx
4 *
5 * @brief Utility containing helpful functions for end users to access information about Showers
6 */
7 
9 
10 #include "cetlib_except/exception.h"
12 #include "canvas/Persistency/Common/FindManyP.h"
13 
18 
19 namespace dune_ana
20 {
21 
22 std::vector<art::Ptr<recob::Hit>> DUNEAnaShowerUtils::GetHits(const art::Ptr<recob::Shower> &pShower, const art::Event &evt, const std::string &label)
23 {
24  return DUNEAnaShowerUtils::GetAssocProductVector<recob::Hit>(pShower,evt,label,label);
25 }
26 
27 //-----------------------------------------------------------------------------------------------------------------------------------------
28 
29 std::vector<art::Ptr<recob::SpacePoint>> DUNEAnaShowerUtils::GetSpacePoints(const art::Ptr<recob::Shower> &pShower, const art::Event &evt, const std::string &label)
30 {
31  return DUNEAnaShowerUtils::GetAssocProductVector<recob::SpacePoint>(pShower,evt,label,label);
32 }
33 
34 //-----------------------------------------------------------------------------------------------------------------------------------------
35 
37 {
38  return DUNEAnaShowerUtils::GetAssocProduct<recob::PFParticle>(pShower,evt,label,label);
39 }
40 
41 } // namespace dune_ana
42 
43 
std::string string
Definition: nybbler.cc:12
Utility containing helpful functions for end users to access information about Showers.
static std::vector< art::Ptr< recob::SpacePoint > > GetSpacePoints(const art::Ptr< recob::Shower > &pShower, const art::Event &evt, const std::string &label)
Get the spacepoints associated with the shower.
Declaration of signal hit object.
static std::vector< art::Ptr< recob::Hit > > GetHits(const art::Ptr< recob::Shower > &pShower, const art::Event &evt, const std::string &label)
Get the hits associated with the shower.
TCEvent evt
Definition: DataStructs.cxx:7
static art::Ptr< recob::PFParticle > GetPFParticle(const art::Ptr< recob::Shower > &pShower, const art::Event &evt, const std::string &label)
Get the particle associated with the shower.