LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
SpacePointAlg_TimeSort.h
Go to the documentation of this file.
1 #ifndef SPACEPOINTALG_TIMESORT_H
2 #define SPACEPOINTALG_TIMESORT_H
3 
21 // LArSoft Includes
24 namespace detinfo {
25  class DetectorPropertiesData;
26 }
27 
28 // Frmaework includes
30 namespace fhicl {
31  class ParameterSet;
32 }
33 
34 //boost includes
35 #include "boost/multi_array.hpp"
36 
37 #include <memory>
38 #include <vector>
39 
40 namespace sppt {
41 
43  public:
44  explicit SpacePointAlg_TimeSort(fhicl::ParameterSet const& pset);
45 
46  void setTimeOffsets(detinfo::DetectorPropertiesData const& detProp);
47  void fillCoordinatesArrays();
48 
49  void createSpacePoints(
50  detinfo::DetectorPropertiesData const& detProp,
54  std::unique_ptr<std::vector<recob::SpacePoint>>& spptCollection,
55  std::unique_ptr<std::vector<std::vector<art::Ptr<recob::Hit>>>>& spptAssociatedHits);
56 
57  private:
58  float fTimeDiffMax;
59  float fYDiffMax;
60  float fZDiffMax;
61 
62  bool TIME_OFFSET_SET{false};
63  bool COORDINATES_FILLED{false};
64 
65  double TIME_OFFSET_U;
66  double TIME_OFFSET_V;
67  double TIME_OFFSET_Y;
68  double TICKS_TO_X;
69 
70  boost::multi_array<double, 2> coordinates_UV_y;
71  boost::multi_array<double, 2> coordinates_UV_z;
72  boost::multi_array<double, 2> coordinates_UY_y;
73  boost::multi_array<double, 2> coordinates_UY_z;
74 
75  void sortHitsByTime(std::vector<art::Ptr<recob::Hit>>& hits_handle) const;
76 
77  }; //class SpacePointAlg_TimeSort
78 
79 } //end sppt namespace
80 
81 #endif
float fYDiffMax
Maximum allowed time difference.
Declaration of signal hit object.
boost::multi_array< double, 2 > coordinates_UV_y
float fZDiffMax
Maximum allowed y-coordinate difference.
boost::multi_array< double, 2 > coordinates_UY_z
auto vector(Vector const &v)
Returns a manipulator which will print the specified array.
Definition: DumpUtils.h:289
parameter set interface
General LArSoft Utilities.
boost::multi_array< double, 2 > coordinates_UY_y
boost::multi_array< double, 2 > coordinates_UV_z