All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PCA.h
Go to the documentation of this file.
1 #ifndef _sbncode_larrecoproducer_pca_h_
2 #define _sbncode_larrecoproducer_pca_h_
3 
13 
14 namespace sbnpca {
15 
16  float VecAngle(std::array<float, 2> A, std::array<float, 2> B);
17 
18  std::array<float, 2> HitVector(const recob::Hit &A, const geo::GeometryCore *geo, const detinfo::DetectorPropertiesData &dprop);
19 
20  std::array<float, 2> HitVector(const recob::Hit &A, const recob::Hit &B, const geo::GeometryCore *geo, const detinfo::DetectorPropertiesData &dprop);
21 
22  float HitDistance(const recob::Hit &A, const recob::Hit &B, const geo::GeometryCore *geo, const detinfo::DetectorPropertiesData &dprop);
23 
24  std::tuple<std::vector<art::Ptr<recob::Hit>>, std::vector<art::Ptr<recob::Hit>>, bool> GetNearestHits(
25  const std::vector<art::Ptr<recob::Hit>> &hits, int ihit, float distance,
26  const geo::GeometryCore *geo,
27  const detinfo::DetectorPropertiesData &dprop);
28 
29  std::array<float, 2> HitPCAVec(const std::vector<art::Ptr<recob::Hit>> &hits, const recob::Hit &center,
30  const geo::GeometryCore *geo, const detinfo::DetectorPropertiesData &dprop);
31 
32  std::array<float, 2> HitPCAVec(const std::vector<art::Ptr<recob::Hit>> &hits, const recob::Vertex &center,
33  const geo::GeometryCore *geo, const detinfo::DetectorPropertiesData &dprop);
34 
35  std::array<float, 2> HitPCAVec(const std::vector<art::Ptr<recob::Hit>> &hits, std::array<float, 2> center,
36  const geo::GeometryCore *geo, const detinfo::DetectorPropertiesData &dprop);
37 
38  std::array<float, 2> HitPCAEigen(const std::vector<art::Ptr<recob::Hit>> &hits, const art::Ptr<recob::Hit> &center,
39  const geo::GeometryCore *geo, const detinfo::DetectorPropertiesData &dprop);
40 
41  float Vert2HitDistance(const recob::Hit &hit, const recob::Vertex &vert, const geo::GeometryCore *geo, const detinfo::DetectorPropertiesData &dprop);
42  std::array<float, 2> Vert2HitCoord(const recob::Vertex &vert, const geo::PlaneID &planeID, const geo::GeometryCore *geo, const detinfo::DetectorPropertiesData &dprop);
43 }
44 
45 #endif
float Vert2HitDistance(const recob::Hit &hit, const recob::Vertex &vert, const geo::GeometryCore *geo, const detinfo::DetectorPropertiesData &dprop)
Definition: PCA.cc:174
std::array< float, 2 > HitPCAVec(const std::vector< art::Ptr< recob::Hit >> &hits, const recob::Hit &center, const geo::GeometryCore *geo, const detinfo::DetectorPropertiesData &dprop)
Definition: PCA.cc:69
Declaration of signal hit object.
The data type to uniquely identify a Plane.
Definition: geo_types.h:472
process_name hit
Definition: cheaterreco.fcl:51
Definition of vertex object for LArSoft.
Definition: Vertex.h:35
auto vector(Vector const &v)
Returns a manipulator which will print the specified array.
Definition: DumpUtils.h:265
Access the description of detector geometry.
double distance(geo::Point_t const &point, CathodeDesc_t const &cathode)
Returns the distance of a point from the cathode.
std::tuple< std::vector< art::Ptr< recob::Hit > >, std::vector< art::Ptr< recob::Hit > >, bool > GetNearestHits(const std::vector< art::Ptr< recob::Hit >> &hits, int ihit, float distance, const geo::GeometryCore *geo, const detinfo::DetectorPropertiesData &dprop)
Definition: PCA.cc:39
float VecAngle(std::array< float, 2 > A, std::array< float, 2 > B)
Definition: PCA.cc:5
float HitDistance(const recob::Hit &A, const recob::Hit &B, const geo::GeometryCore *geo, const detinfo::DetectorPropertiesData &dprop)
Definition: PCA.cc:34
Description of geometry of one entire detector.
Declaration of cluster object.
std::array< float, 2 > Vert2HitCoord(const recob::Vertex &vert, const geo::PlaneID &planeID, const geo::GeometryCore *geo, const detinfo::DetectorPropertiesData &dprop)
Definition: PCA.cc:165
Declaration of basic channel signal object.
2D representation of charge deposited in the TDC/wire plane
Definition: Hit.h:48
float A
Definition: dedx.py:137
art framework interface to geometry description
std::array< float, 2 > HitPCAEigen(const std::vector< art::Ptr< recob::Hit >> &hits, const art::Ptr< recob::Hit > &center, const geo::GeometryCore *geo, const detinfo::DetectorPropertiesData &dprop)
Definition: PCA.cc:131
std::array< float, 2 > HitVector(const recob::Hit &A, const geo::GeometryCore *geo, const detinfo::DetectorPropertiesData &dprop)
Definition: PCA.cc:12