ProtoDUNESliceUtils.h
Go to the documentation of this file.
1 #ifndef PROTODUNE_SLICE_UTILS_H
2 #define PROTODUNE_SLICE_UTILS_H
3 
4 ///////////////////////////////////////////////////////////////
5 // ProtoDUNESliceUtils
6 // - Class to help analysers access useful slice information
7 //
8 // Leigh Whitehead - leigh.howard.whitehead@cern.ch
9 ///////////////////////////////////////////////////////////////
10 
11 #include <map>
12 
15 
17 
18 namespace protoana {
19 
21 
22  public:
23 
26 
27  // Get the hits from the slice (using the slice object)
28  const std::vector<const recob::Hit*> GetRecoSliceHits(const recob::Slice &slice, art::Event const &evt, const std::string sliceModule) const;
29  const std::vector<const recob::Hit*> GetRecoSliceHits(unsigned int sliceID, art::Event const &evt, const std::string sliceModule) const;
30 
31  // Number of slice hits
32  unsigned int GetNumberRecoSliceHits(const recob::Slice &slice, art::Event const &evt, const std::string sliceModule) const;
33  unsigned int GetNumberRecoSliceHits(const unsigned int sliceID, art::Event const &evt, const std::string sliceModule) const;
34 
35  // A map of all hits in each slice
36  const std::map<unsigned int, std::vector<const recob::Hit*>> GetRecoSliceHitMap(art::Event const &evt, const std::string sliceModule) const;
37 
38  private:
39 
40 
41  };
42 
43 }
44 
45 #endif
46 
unsigned int GetNumberRecoSliceHits(const recob::Slice &slice, art::Event const &evt, const std::string sliceModule) const
std::string string
Definition: nybbler.cc:12
const std::vector< const recob::Hit * > GetRecoSliceHits(const recob::Slice &slice, art::Event const &evt, const std::string sliceModule) const
const std::map< unsigned int, std::vector< const recob::Hit * > > GetRecoSliceHitMap(art::Event const &evt, const std::string sliceModule) const
Declaration of signal hit object.
TCEvent evt
Definition: DataStructs.cxx:7