DUNEAnaClusterUtils.h
Go to the documentation of this file.
1 /**
2  *
3  * @file dunereco/AnaUtils/DUNEAnaClusterUtils.h
4  *
5  * @brief Utility containing helpful functions for end users to access information about Clusters
6 */
7 
8 #ifndef DUNE_ANA_CLUSTER_UTILS_H
9 #define DUNE_ANA_CLUSTER_UTILS_H
10 
12 
14 
17 
18 #include <string>
19 #include <vector>
20 
21 namespace dune_ana
22 {
23 /**
24  *
25  * @brief DUNEAnaClusterUtils class
26  *
27 */
29 {
30 public:
31  /**
32  * @brief Get the hits associated with the cluster.
33  *
34  * @param cluster is the cluster for which we want the hits
35  * @param evt is the underlying art event
36  * @param label is the label for the cluster producer
37  *
38  * @return vector of art::Ptrs to the hits
39  */
40  static std::vector<art::Ptr<recob::Hit>> GetHits(const art::Ptr<recob::Cluster> &pCluster, const art::Event &evt, const std::string &label);
41 };
42 
43 } // namespace dune_ana
44 
45 #endif // DUNE_ANA_CLUSTER_UTILS_H
46 
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.
DUNEAnaUtilsBase class containing some template functions.
std::string string
Definition: nybbler.cc:12
Base class containing functionality to extract products from the event.
DUNEAnaClusterUtils class.
Declaration of signal hit object.
TCEvent evt
Definition: DataStructs.cxx:7