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

DUNEAnaSpacePointUtils class. More...

#include <DUNEAnaSpacePointUtils.h>

Inheritance diagram for dune_ana::DUNEAnaSpacePointUtils:
dune_ana::DUNEAnaUtilsBase

Static Public Member Functions

static std::vector< art::Ptr< recob::Hit > > GetHits (const art::Ptr< recob::SpacePoint > &pSpacepoint, const art::Event &evt, const std::string &label)
 Get the hits associated with the spacepoint. 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

DUNEAnaSpacePointUtils class.

Definition at line 29 of file DUNEAnaSpacePointUtils.h.

Member Function Documentation

std::vector< art::Ptr< recob::Hit > > dune_ana::DUNEAnaSpacePointUtils::GetHits ( const art::Ptr< recob::SpacePoint > &  pSpacepoint,
const art::Event evt,
const std::string label 
)
static

Get the hits associated with the spacepoint.

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

Definition at line 16 of file DUNEAnaSpacePointUtils.cxx.

17 {
18  return DUNEAnaSpacePointUtils::GetAssocProductVector<recob::Hit>(pSpacepoint,evt,label,label);
19 }
TCEvent evt
Definition: DataStructs.cxx:7

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