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