LArSoft  v06_85_00
Liquid Argon Software toolkit - http://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
25 #include "fhiclcpp/ParameterSet.h"
26 
27 //boost includes
28 #include "boost/multi_array.hpp"
29 
30 namespace sppt{
31 
33 
35 
36  public:
39 
40  void reconfigure(fhicl::ParameterSet const& pset);
41  void setTimeOffsets();
42  void fillCoordinatesArrays();
43 
45  std::vector< art::Ptr<recob::Hit> > &hitVec_V,
46  std::vector< art::Ptr<recob::Hit> > &hitVec_Y,
47  std::unique_ptr<std::vector<recob::SpacePoint> > &spptCollection,
48  std::unique_ptr<std::vector<std::vector<art::Ptr<recob::Hit> > > > &spptAssociatedHits);
49 
50  private:
51 
52  float fTimeDiffMax;
53  float fYDiffMax;
54  float fZDiffMax;
55 
58 
59  double TIME_OFFSET_U;
60  double TIME_OFFSET_V;
61  double TIME_OFFSET_Y;
62  double TICKS_TO_X;
63 
64  boost::multi_array<double, 2> coordinates_UV_y;
65  boost::multi_array<double, 2> coordinates_UV_z;
66  boost::multi_array<double, 2> coordinates_UY_y;
67  boost::multi_array<double, 2> coordinates_UY_z;
68 
69  void sortHitsByTime(std::vector< art::Ptr<recob::Hit> > &hits_handle);
70 
71  }; //class SpacePointAlg_TimeSort
72 
73 } //end sppt namespace
74 
75 #endif
SpacePointAlg_TimeSort(fhicl::ParameterSet const &pset)
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:265
bool TIME_OFFSET_SET
Maximum allowed z-coordinate difference.
bool HitTimeComparison(art::Ptr< recob::Hit > a, art::Ptr< recob::Hit > b)
void createSpacePoints(std::vector< art::Ptr< recob::Hit > > &hitVec_U, std::vector< art::Ptr< recob::Hit > > &hitVec_V, std::vector< art::Ptr< recob::Hit > > &hitVec_Y, std::unique_ptr< std::vector< recob::SpacePoint > > &spptCollection, std::unique_ptr< std::vector< std::vector< art::Ptr< recob::Hit > > > > &spptAssociatedHits)
float PeakTime() const
Time of the signal peak, in tick units.
Definition: Hit.h:219
boost::multi_array< double, 2 > coordinates_UY_y
void reconfigure(fhicl::ParameterSet const &pset)
void sortHitsByTime(std::vector< art::Ptr< recob::Hit > > &hits_handle)
boost::multi_array< double, 2 > coordinates_UV_z