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

DUNEAnaSliceUtils class. More...

#include <DUNEAnaSliceUtils.h>

Inheritance diagram for dune_ana::DUNEAnaSliceUtils:
dune_ana::DUNEAnaUtilsBase

Static Public Member Functions

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

DUNEAnaSliceUtils class.

Definition at line 28 of file DUNEAnaSliceUtils.h.

Member Function Documentation

std::vector< art::Ptr< recob::Hit > > dune_ana::DUNEAnaSliceUtils::GetHits ( const art::Ptr< recob::Slice > &  pSlice,
const art::Event evt,
const std::string label 
)
static

Get the hits associated with the slice.

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

Definition at line 16 of file DUNEAnaSliceUtils.cxx.

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

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