All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HitSelector.h
Go to the documentation of this file.
1 /// \file HitSelector.h
2 /// \brief Class to perform operations needed to select hits and pass them to a cluster.
3 /// \author andrzej.szelc@yale.edu
4 
5 #ifndef EVD_HITSELECTOR_H
6 #define EVD_HITSELECTOR_H
7 
8 #include <vector>
9 
10 #include "canvas/Persistency/Common/Ptr.h"
11 
13 
14 namespace recob {
15  class Hit;
16 }
17 
18 namespace util {
19  class PxLine;
20 }
21 
22 /// Class to perform operations needed to select hits and pass them to InfoTransfer.
23 namespace evd {
24 
25  class HitSelector {
26  public:
27  HitSelector();
28 
29  void SaveHits(const art::Event& evt,
30  unsigned int plane,
31  double x,
32  double y,
33  double x1,
34  double y1,
35  double distance,
36  bool good_plane = true);
37 
38  double SaveSeedLines(const art::Event& evt,
39  std::vector<util::PxLine> seedline,
40  double distance);
41 
42  void ChangeHit(const art::Event& evt, unsigned int plane, double x, double y);
43 
44  std::vector<const recob::Hit*> GetSelectedHits(unsigned int plane);
45  std::vector<art::Ptr<recob::Hit>> GetSelectedHitPtrs(unsigned int plane);
46 
47  void ClearHitList(unsigned int plane);
48 
49  std::vector<recob::Seed>& SeedVector();
50 
51  private:
52  std::vector<recob::Seed> fSeedVector;
53 
54  std::vector<std::vector<double>> starthitout;
55  std::vector<std::vector<double>> endhitout;
56  };
57 }
58 
59 #endif
60 ////////////////////////////////////////////////////////////////////////
double SaveSeedLines(const art::Event &evt, std::vector< util::PxLine > seedline, double distance)
Definition: HitSelector.cxx:50
process_name opflash particleana ie x
void SaveHits(const art::Event &evt, unsigned int plane, double x, double y, double x1, double y1, double distance, bool good_plane=true)
Definition: HitSelector.cxx:88
std::vector< art::Ptr< recob::Hit > > GetSelectedHitPtrs(unsigned int plane)
std::vector< std::vector< double > > starthitout
Definition: HitSelector.h:54
process_name opflash particleana ie ie y
double distance(geo::Point_t const &point, CathodeDesc_t const &cathode)
Returns the distance of a point from the cathode.
std::vector< const recob::Hit * > GetSelectedHits(unsigned int plane)
std::vector< recob::Seed > fSeedVector
Definition: HitSelector.h:52
void ChangeHit(const art::Event &evt, unsigned int plane, double x, double y)
void ClearHitList(unsigned int plane)
TCEvent evt
Definition: DataStructs.cxx:8
std::vector< std::vector< double > > endhitout
Definition: HitSelector.h:55
std::vector< recob::Seed > & SeedVector()