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

DUNEAnaClusterUtils class. More...

#include <DUNEAnaClusterUtils.h>

Inheritance diagram for dune_ana::DUNEAnaClusterUtils:
dune_ana::DUNEAnaUtilsBase

Static Public Member Functions

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

DUNEAnaClusterUtils class.

Definition at line 28 of file DUNEAnaClusterUtils.h.

Member Function Documentation

std::vector< art::Ptr< recob::Hit > > dune_ana::DUNEAnaClusterUtils::GetHits ( const art::Ptr< recob::Cluster > &  pCluster,
const art::Event evt,
const std::string label 
)
static

Get the hits associated with the cluster.

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

Definition at line 16 of file DUNEAnaClusterUtils.cxx.

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

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