LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
StitchAlg.h
Go to the documentation of this file.
1 // \StitchAlg.h
3 // echurch@fnal.gov
5 
6 #ifndef STITCHALG_H
7 #define STITCHALG_H
8 
9 // art libraries
12 
13 // LArSoft libraries
15 
16 namespace fhicl {
17  class ParameterSet;
18 }
19 namespace art {
20  class Event;
21 }
22 
23 // C/C++ standard libraries
24 #include <string>
25 #include <tuple>
26 #include <vector>
27 
28 namespace trkf {
29 
30  class StitchAlg {
31 
32  public:
33  StitchAlg(fhicl::ParameterSet const& pset);
34 
35  void reconfigure(fhicl::ParameterSet const& pset);
36 
37  void FindHeadsAndTails(const art::Event& e, const std::string& t);
38  void FirstStitch(const std::vector<art::PtrVector<recob::Track>>::iterator itvvArg,
40  void WalkStitch();
41  bool CommonComponentStitch();
42 
44  {
45  c = fTrackComposite;
46  }
47  void GetTracks(std::vector<recob::Track>& t) const { t = fTrackVec; }
48 
50 
51  private:
52  std::vector<std::tuple<std::string, int, int, double, double>> fh;
53  std::vector<std::tuple<std::string, int, int, double, double>> ft;
54  int ftNo;
55  double fCosAngTol;
56  double fSepTol;
57 
58  std::vector<art::PtrVector<recob::Track>> fTrackComposite;
59  std::vector<recob::Track> fTrackVec;
60  std::vector<std::vector<std::string>> fHT;
61  };
62 
63 } // namespace
64 
65 #endif // ifndef STITCHALG_H
intermediate_table::iterator iterator
void GetTracks(std::vector< recob::Track > &t) const
Definition: StitchAlg.h:47
art::Handle< std::vector< recob::Track > > ftListHandle
Definition: StitchAlg.h:49
std::vector< recob::Track > fTrackVec
Definition: StitchAlg.h:59
std::vector< std::tuple< std::string, int, int, double, double > > fh
Definition: StitchAlg.h:52
auto vector(Vector const &v)
Returns a manipulator which will print the specified array.
Definition: DumpUtils.h:289
double fSepTol
Definition: StitchAlg.h:56
parameter set interface
Provides recob::Track data product.
double fCosAngTol
Definition: StitchAlg.h:55
std::vector< art::PtrVector< recob::Track > > fTrackComposite
Definition: StitchAlg.h:58
Definition: MVAAlg.h:12
std::vector< std::vector< std::string > > fHT
Definition: StitchAlg.h:60
void GetTrackComposites(std::vector< art::PtrVector< recob::Track >> &c) const
Definition: StitchAlg.h:43
Float_t e
Definition: plot.C:35
std::vector< std::tuple< std::string, int, int, double, double > > ft
Definition: StitchAlg.h:53