DUNEAnaShowerUtils.h
Go to the documentation of this file.
1 /**
2  *
3  * @file dunereco/AnaUtils/DUNEAnaShowerUtils.h
4  *
5  * @brief Utility containing helpful functions for end users to access information about Showers
6 */
7 
8 #ifndef DUNE_ANA_SHOWER_UTILS_H
9 #define DUNE_ANA_SHOWER_UTILS_H
10 
12 
14 
19 
20 #include <string>
21 #include <vector>
22 
23 namespace dune_ana
24 {
25 
26 /**
27  *
28  * @brief DUNEAnaShowerUtils class
29  *
30 */
32 {
33 public:
34  /**
35  * @brief Get the hits associated with the shower.
36  *
37  * @param shower is the shower for which we want the hits
38  * @param evt is the underlying art event
39  * @param label is the label for the shower producer
40  *
41  * @return vector of art::Ptrs to the hits
42  */
43  static std::vector<art::Ptr<recob::Hit>> GetHits(const art::Ptr<recob::Shower> &pShower, const art::Event &evt, const std::string &label);
44 
45  /**
46  * @brief Get the spacepoints associated with the shower.
47  *
48  * @param shower is the shower for which we want the spacepoints
49  * @param evt is the underlying art event
50  * @param label is the label for the shower producer
51  *
52  * @return vector of art::Ptrs to the spacepoints
53  */
54  static std::vector<art::Ptr<recob::SpacePoint>> GetSpacePoints(const art::Ptr<recob::Shower> &pShower, const art::Event &evt, const std::string &label);
55 
56  /**
57  * @brief Get the particle associated with the shower.
58  *
59  * @param shower is the shower for which we want the particle
60  * @param evt is the underlying art event
61  * @param label is the label for the shower producer
62  *
63  * @return art::Ptr to the particle
64  */
65  static art::Ptr<recob::PFParticle> GetPFParticle(const art::Ptr<recob::Shower> &pShower, const art::Event &evt, const std::string &label);
66 };
67 
68 } // namespace dune_ana
69 
70 
71 #endif // DUNE_ANA_SHOWER_UTILS_H
72 
DUNEAnaUtilsBase class containing some template functions.
std::string string
Definition: nybbler.cc:12
Base class containing functionality to extract products from the event.
DUNEAnaShowerUtils class.
static std::vector< art::Ptr< recob::SpacePoint > > GetSpacePoints(const art::Ptr< recob::Shower > &pShower, const art::Event &evt, const std::string &label)
Get the spacepoints associated with the shower.
Declaration of signal hit object.
static std::vector< art::Ptr< recob::Hit > > GetHits(const art::Ptr< recob::Shower > &pShower, const art::Event &evt, const std::string &label)
Get the hits associated with the shower.
TCEvent evt
Definition: DataStructs.cxx:7
static art::Ptr< recob::PFParticle > GetPFParticle(const art::Ptr< recob::Shower > &pShower, const art::Event &evt, const std::string &label)
Get the particle associated with the shower.