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