Static Public Member Functions | List of all members
dune_ana::DUNEAnaShowerUtils Class Reference

DUNEAnaShowerUtils class. More...

#include <DUNEAnaShowerUtils.h>

Inheritance diagram for dune_ana::DUNEAnaShowerUtils:
dune_ana::DUNEAnaUtilsBase

Static Public Member Functions

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. More...
 
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. More...
 
static art::Ptr< recob::PFParticleGetPFParticle (const art::Ptr< recob::Shower > &pShower, const art::Event &evt, const std::string &label)
 Get the particle associated with the shower. More...
 

Additional Inherited Members

- Static Private Member Functions inherited from dune_ana::DUNEAnaUtilsBase
template<typename T >
static std::vector< art::Ptr< T > > GetProductVector (const art::Event &evt, const std::string &label)
 
template<typename T , typename U >
static std::vector< art::Ptr< T > > GetAssocProductVector (const art::Ptr< U > &part, const art::Event &evt, const std::string &label, const std::string &assocLabel)
 
template<typename T , typename U >
static art::Ptr< T > GetAssocProduct (const art::Ptr< U > &part, const art::Event &evt, const std::string &label, const std::string &assocLabel)
 

Detailed Description

DUNEAnaShowerUtils class.

Definition at line 31 of file DUNEAnaShowerUtils.h.

Member Function Documentation

std::vector< art::Ptr< recob::Hit > > dune_ana::DUNEAnaShowerUtils::GetHits ( const art::Ptr< recob::Shower > &  pShower,
const art::Event evt,
const std::string label 
)
static

Get the hits associated with the shower.

Parameters
showeris the shower for which we want the hits
evtis the underlying art event
labelis the label for the shower producer
Returns
vector of art::Ptrs to the hits

Definition at line 22 of file DUNEAnaShowerUtils.cxx.

23 {
24  return DUNEAnaShowerUtils::GetAssocProductVector<recob::Hit>(pShower,evt,label,label);
25 }
TCEvent evt
Definition: DataStructs.cxx:7
art::Ptr< recob::PFParticle > dune_ana::DUNEAnaShowerUtils::GetPFParticle ( const art::Ptr< recob::Shower > &  pShower,
const art::Event evt,
const std::string label 
)
static

Get the particle associated with the shower.

Parameters
showeris the shower for which we want the particle
evtis the underlying art event
labelis the label for the shower producer
Returns
art::Ptr to the particle

Definition at line 36 of file DUNEAnaShowerUtils.cxx.

37 {
38  return DUNEAnaShowerUtils::GetAssocProduct<recob::PFParticle>(pShower,evt,label,label);
39 }
TCEvent evt
Definition: DataStructs.cxx:7
std::vector< art::Ptr< recob::SpacePoint > > dune_ana::DUNEAnaShowerUtils::GetSpacePoints ( const art::Ptr< recob::Shower > &  pShower,
const art::Event evt,
const std::string label 
)
static

Get the spacepoints associated with the shower.

Parameters
showeris the shower for which we want the spacepoints
evtis the underlying art event
labelis the label for the shower producer
Returns
vector of art::Ptrs to the spacepoints

Definition at line 29 of file DUNEAnaShowerUtils.cxx.

30 {
31  return DUNEAnaShowerUtils::GetAssocProductVector<recob::SpacePoint>(pShower,evt,label,label);
32 }
TCEvent evt
Definition: DataStructs.cxx:7

The documentation for this class was generated from the following files: