LArSoft
v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
|
#include "TrackMomentumCalculator.h"
Classes | |
struct | Segments |
Public Member Functions | |
TrackMomentumCalculator (double minLength=100.0, double maxLength=1350.0) | |
double | GetTrackMomentum (double trkrange, int pdg) const |
double | GetMomentumMultiScatterChi2 (art::Ptr< recob::Track > const &trk) |
double | GetMomentumMultiScatterLLHD (art::Ptr< recob::Track > const &trk) |
double | GetMuMultiScatterLLHD3 (art::Ptr< recob::Track > const &trk, bool dir) |
TVector3 | GetMultiScatterStartingPoint (art::Ptr< recob::Track > const &trk) |
Private Member Functions | |
bool | plotRecoTracks_ (std::vector< float > const &xxx, std::vector< float > const &yyy, std::vector< float > const &zzz) |
std::optional< Segments > | getSegTracks_ (std::vector< float > const &xxx, std::vector< float > const &yyy, std::vector< float > const &zzz, double seg_size) |
std::tuple< double, double, double > | getDeltaThetaRMS_ (Segments const &segments, double thick) const |
int | getDeltaThetaij_ (std::vector< float > &ei, std::vector< float > &ej, std::vector< float > &th, std::vector< float > &ind, Segments const &segments, double thick) const |
double | my_g (double xx, double Q, double s) const |
double | my_mcs_llhd (std::vector< float > const &dEi, std::vector< float > const &dEj, std::vector< float > const &dthij, std::vector< float > const &ind, double x0, double x1) const |
double | find_angle (double vz, double vy) const |
Private Attributes | |
float | seg_stop {-1.} |
int | n_seg {} |
float | x_seg [50000] |
float | y_seg [50000] |
float | z_seg [50000] |
float | steps_size {10.} |
int | n_steps {6} |
std::vector< float > | steps |
double | minLength |
double | maxLength |
TPolyLine3D * | gr_reco_xyz {nullptr} |
TGraph | gr_reco_xy {} |
TGraph | gr_reco_yz {} |
TGraph | gr_reco_xz {} |
TPolyLine3D * | gr_seg_xyz {nullptr} |
TGraph | gr_seg_xy {} |
TGraph | gr_seg_yz {} |
TGraph | gr_seg_xz {} |
Definition at line 39 of file TrackMomentumCalculator.h.
trkf::TrackMomentumCalculator::TrackMomentumCalculator | ( | double | minLength = 100.0 , |
double | maxLength = 1350.0 |
||
) |
Definition at line 109 of file TrackMomentumCalculator.cxx.
References max, maxLength, n_steps, steps, and steps_size.
|
private |
Definition at line 1156 of file TrackMomentumCalculator.cxx.
Referenced by getDeltaThetaij_(), and getDeltaThetaRMS_().
|
private |
Definition at line 366 of file TrackMomentumCalculator.cxx.
References a1, a2, a3, find_angle(), trkf::TrackMomentumCalculator::Segments::L, trkf::TrackMomentumCalculator::Segments::nx, trkf::TrackMomentumCalculator::Segments::ny, trkf::TrackMomentumCalculator::Segments::nz, trkf::TrackMomentumCalculator::Segments::x, trkf::TrackMomentumCalculator::Segments::y, and trkf::TrackMomentumCalculator::Segments::z.
Referenced by GetMomentumMultiScatterLLHD(), and GetMuMultiScatterLLHD3().
|
private |
Definition at line 1028 of file TrackMomentumCalculator.cxx.
References a1, a2, a3, find_angle(), trkf::TrackMomentumCalculator::Segments::L, pmtana::mean(), trkf::TrackMomentumCalculator::Segments::nx, trkf::TrackMomentumCalculator::Segments::ny, and trkf::TrackMomentumCalculator::Segments::nz.
Referenced by GetMomentumMultiScatterChi2().
double trkf::TrackMomentumCalculator::GetMomentumMultiScatterChi2 | ( | art::Ptr< recob::Track > const & | trk | ) |
Definition at line 469 of file TrackMomentumCalculator.cxx.
References getDeltaThetaRMS_(), getSegTracks_(), recob::Track::LocationAtPoint(), maxLength, pmtana::mean(), n_steps, recob::Track::NumberTrajectoryPoints(), plotRecoTracks_(), steps, and steps_size.
Referenced by trkf::KalmanFilterFinalTrackFitter::setMomValue().
double trkf::TrackMomentumCalculator::GetMomentumMultiScatterLLHD | ( | art::Ptr< recob::Track > const & | trk | ) |
Definition at line 229 of file TrackMomentumCalculator.cxx.
References e, getDeltaThetaij_(), getSegTracks_(), recob::Track::LocationAtPoint(), maxLength, my_mcs_llhd(), recob::Track::NumberTrajectoryPoints(), and plotRecoTracks_().
TVector3 trkf::TrackMomentumCalculator::GetMultiScatterStartingPoint | ( | art::Ptr< recob::Track > const & | trk | ) |
Definition at line 298 of file TrackMomentumCalculator.cxx.
References GetMuMultiScatterLLHD3(), recob::Track::LocationAtPoint(), and recob::Track::NumberTrajectoryPoints().
double trkf::TrackMomentumCalculator::GetMuMultiScatterLLHD3 | ( | art::Ptr< recob::Track > const & | trk, |
bool | dir | ||
) |
Definition at line 316 of file TrackMomentumCalculator.cxx.
References getDeltaThetaij_(), getSegTracks_(), recob::Track::LocationAtPoint(), maxLength, my_mcs_llhd(), recob::Track::NumberTrajectoryPoints(), and plotRecoTracks_().
Referenced by GetMultiScatterStartingPoint().
|
private |
Definition at line 621 of file TrackMomentumCalculator.cxx.
References a1, a2, a3, beta, gr_seg_xy, gr_seg_xyz, gr_seg_xz, gr_seg_yz, n_seg, seg_stop, x1, x2, x_seg, y1, y2, y_seg, and z_seg.
Referenced by GetMomentumMultiScatterChi2(), GetMomentumMultiScatterLLHD(), and GetMuMultiScatterLLHD3().
double trkf::TrackMomentumCalculator::GetTrackMomentum | ( | double | trkrange, |
int | pdg | ||
) | const |
Definition at line 120 of file TrackMomentumCalculator.cxx.
References E.
Referenced by trkmkr::KalmanFilterFitTrackMaker::getMomentum(), trkf::KalmanFilterTrajectoryFitter::setMomValue(), and trkf::KalmanFilterFinalTrackFitter::setMomValue().
|
private |
|
private |
Definition at line 1218 of file TrackMomentumCalculator.cxx.
Referenced by GetMomentumMultiScatterLLHD(), and GetMuMultiScatterLLHD3().
|
private |
Definition at line 589 of file TrackMomentumCalculator.cxx.
References gr_reco_xy, gr_reco_xyz, gr_reco_xz, gr_reco_yz, and n.
Referenced by GetMomentumMultiScatterChi2(), GetMomentumMultiScatterLLHD(), and GetMuMultiScatterLLHD3().
|
private |
Definition at line 112 of file TrackMomentumCalculator.h.
Referenced by plotRecoTracks_().
|
private |
Definition at line 111 of file TrackMomentumCalculator.h.
Referenced by plotRecoTracks_().
|
private |
Definition at line 114 of file TrackMomentumCalculator.h.
Referenced by plotRecoTracks_().
|
private |
Definition at line 113 of file TrackMomentumCalculator.h.
Referenced by plotRecoTracks_().
|
private |
Definition at line 117 of file TrackMomentumCalculator.h.
Referenced by getSegTracks_().
|
private |
Definition at line 116 of file TrackMomentumCalculator.h.
Referenced by getSegTracks_().
|
private |
Definition at line 119 of file TrackMomentumCalculator.h.
Referenced by getSegTracks_().
|
private |
Definition at line 118 of file TrackMomentumCalculator.h.
Referenced by getSegTracks_().
|
private |
Definition at line 99 of file TrackMomentumCalculator.h.
Referenced by GetMomentumMultiScatterChi2(), GetMomentumMultiScatterLLHD(), GetMuMultiScatterLLHD3(), and TrackMomentumCalculator().
|
private |
Definition at line 98 of file TrackMomentumCalculator.h.
|
private |
Definition at line 86 of file TrackMomentumCalculator.h.
Referenced by getSegTracks_().
|
private |
Definition at line 95 of file TrackMomentumCalculator.h.
Referenced by GetMomentumMultiScatterChi2(), and TrackMomentumCalculator().
|
private |
Definition at line 85 of file TrackMomentumCalculator.h.
Referenced by getSegTracks_().
|
private |
Definition at line 96 of file TrackMomentumCalculator.h.
Referenced by GetMomentumMultiScatterChi2(), and TrackMomentumCalculator().
|
private |
Definition at line 94 of file TrackMomentumCalculator.h.
Referenced by GetMomentumMultiScatterChi2(), and TrackMomentumCalculator().
|
private |
Definition at line 88 of file TrackMomentumCalculator.h.
Referenced by getSegTracks_().
|
private |
Definition at line 89 of file TrackMomentumCalculator.h.
Referenced by getSegTracks_().
|
private |
Definition at line 90 of file TrackMomentumCalculator.h.
Referenced by getSegTracks_().