LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
Track3DKalmanSPS_module.cc File Reference
#include <algorithm>
#include <cmath>
#include <iterator>
#include <sstream>
#include <string>
#include <vector>
#include "TDatabasePDG.h"
#include "TMath.h"
#include "TMatrixT.h"
#include "TPrincipal.h"
#include "TTree.h"
#include "TVector3.h"
#include "fhiclcpp/ParameterSet.h"
#include "fhiclcpp/exception.h"
#include "messagefacility/MessageLogger/MessageLogger.h"
#include "art/Framework/Core/EDProducer.h"
#include "art/Framework/Core/ModuleMacros.h"
#include "art/Framework/Principal/Event.h"
#include "art/Framework/Principal/Handle.h"
#include "art/Framework/Services/Registry/ServiceHandle.h"
#include "art_root_io/TFileService.h"
#include "canvas/Persistency/Common/FindManyP.h"
#include "canvas/Persistency/Common/Ptr.h"
#include "canvas/Persistency/Common/PtrVector.h"
#include "larreco/Genfit/GFAbsTrackRep.h"
#include "larreco/Genfit/GFConstField.h"
#include "larreco/Genfit/GFFieldManager.h"
#include "larreco/Genfit/GFKalman.h"
#include "larreco/Genfit/GFTrack.h"
#include "larreco/Genfit/PointHit.h"
#include "larreco/Genfit/RKTrackRep.h"
#include "larcore/Geometry/Geometry.h"
#include "larcorealg/Geometry/PlaneGeo.h"
#include "larcorealg/Geometry/WireGeo.h"
#include "lardataobj/RecoBase/Cluster.h"
#include "lardataobj/RecoBase/Hit.h"
#include "lardataobj/RecoBase/SpacePoint.h"
#include "lardataobj/RecoBase/Track.h"
#include "lardata/Utilities/AssociationUtil.h"
#include "nusimdata/SimulationBase/MCTruth.h"

Go to the source code of this file.

Classes

class  trkf::Track3DKalmanSPS
 

Namespaces

 trkf
 

Functions

static bool sp_sort_3dz (const art::Ptr< recob::SpacePoint > &h1, const art::Ptr< recob::SpacePoint > &h2)
 
static bool sp_sort_3dy (const art::Ptr< recob::SpacePoint > &h1, const art::Ptr< recob::SpacePoint > &h2)
 
static bool sp_sort_3dx (const art::Ptr< recob::SpacePoint > &h1, const art::Ptr< recob::SpacePoint > &h2)
 
static bool sp_sort_nsppts (const art::PtrVector< recob::SpacePoint > &h1, const art::PtrVector< recob::SpacePoint > &h2)
 

Function Documentation

static bool sp_sort_3dx ( const art::Ptr< recob::SpacePoint > &  h1,
const art::Ptr< recob::SpacePoint > &  h2 
)
static

Definition at line 77 of file Track3DKalmanSPS_module.cc.

References recob::SpacePoint::XYZ().

Referenced by trkf::Track3DKalmanSPS::produce().

79 {
80  const double* xyz1 = h1->XYZ();
81  const double* xyz2 = h2->XYZ();
82  return xyz1[0] < xyz2[0];
83 }
const Double32_t * XYZ() const
Definition: SpacePoint.h:78
static bool sp_sort_3dy ( const art::Ptr< recob::SpacePoint > &  h1,
const art::Ptr< recob::SpacePoint > &  h2 
)
static

Definition at line 70 of file Track3DKalmanSPS_module.cc.

References recob::SpacePoint::XYZ().

Referenced by trkf::Track3DKalmanSPS::produce().

72 {
73  const double* xyz1 = h1->XYZ();
74  const double* xyz2 = h2->XYZ();
75  return xyz1[1] < xyz2[1];
76 }
const Double32_t * XYZ() const
Definition: SpacePoint.h:78
static bool sp_sort_3dz ( const art::Ptr< recob::SpacePoint > &  h1,
const art::Ptr< recob::SpacePoint > &  h2 
)
static

Definition at line 63 of file Track3DKalmanSPS_module.cc.

References recob::SpacePoint::XYZ().

Referenced by trkf::Track3DKalman::produce(), and trkf::Track3DKalmanSPS::produce().

65 {
66  const double* xyz1 = h1->XYZ();
67  const double* xyz2 = h2->XYZ();
68  return xyz1[2] < xyz2[2];
69 }
const Double32_t * XYZ() const
Definition: SpacePoint.h:78
static bool sp_sort_nsppts ( const art::PtrVector< recob::SpacePoint > &  h1,
const art::PtrVector< recob::SpacePoint > &  h2 
)
static

Definition at line 85 of file Track3DKalmanSPS_module.cc.

References art::PtrVector< T >::size().

Referenced by trkf::Track3DKalmanSPS::produce().

87 {
88  const unsigned int s1 = h1.size();
89  const unsigned int s2 = h2.size();
90  return s1 > s2;
91 }
size_type size() const
Definition: PtrVector.h:302