LArSoft
v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
|
#include "TrackMomentumCalculator.h"
Public Member Functions | |
TrackMomentumCalculator () | |
virtual | ~TrackMomentumCalculator () |
double | GetTrackMomentum (double trkrange, int pdg) |
Int_t | GetTracks (const std::vector< Float_t > &xxx, const std::vector< Float_t > &yyy, const std::vector< Float_t > &zzz) |
Int_t | GetRecoTracks (const std::vector< Float_t > &xxx, const std::vector< Float_t > &yyy, const std::vector< Float_t > &zzz) |
Int_t | GetSegTracks (const std::vector< Float_t > &xxx, const std::vector< Float_t > &yyy, const std::vector< Float_t > &zzz) |
Int_t | GetSegTracks2 (const std::vector< Float_t > &xxx, const std::vector< Float_t > &yyy, const std::vector< Float_t > &zzz) |
void | GetDeltaThetaRMS (Double_t &mean, Double_t &rms, Double_t &rmse, Double_t thick) |
Double_t | GetMomentumMultiScatterChi2 (const art::Ptr< recob::Track > &trk) |
Int_t | GetDeltaThetaij (std::vector< Float_t > &ei, std::vector< Float_t > &ej, std::vector< Float_t > &th, Double_t thick, std::vector< Float_t > &ind) |
Double_t | my_g (Double_t xx, Double_t Q, Double_t s) |
Double_t | my_mcs_llhd (Double_t x0, Double_t x1) |
Double_t | GetMomentumMultiScatterLLHD (const art::Ptr< recob::Track > &trk) |
Double_t | GetMuMultiScatterLLHD3 (const art::Ptr< recob::Track > &trk, bool dir) |
TVector3 | GetMultiScatterStartingPoint (const art::Ptr< recob::Track > &trk) |
void | SetMinLength (double minLen) |
void | SetMaxLength (double maxLen) |
Public Attributes | |
TPolyLine3D * | gr_xyz =0 |
TGraph * | gr_xy =0 |
TGraph * | gr_yz =0 |
TGraph * | gr_xz =0 |
TPolyLine3D * | gr_reco_xyz |
TGraph * | gr_reco_xy |
TGraph * | gr_reco_yz |
TGraph * | gr_reco_xz |
TPolyLine3D * | gr_seg_xyz |
TGraph * | gr_seg_xy |
TGraph * | gr_seg_yz |
TGraph * | gr_seg_xz |
TGraphErrors * | gr_meas = 0 |
TGraph * | KEvsR |
TSpline3 * | KEvsR_spline3 |
Double_t | p_mcs |
Double_t | p_mcs_e |
Double_t | chi2 |
Double_t | p_mcs_2 |
Double_t | LLbf |
Private Member Functions | |
Double_t | find_angle (Double_t vz, Double_t vy) |
Private Attributes | |
Int_t | n |
Double_t | x [50000] |
Double_t | y [50000] |
Double_t | z [50000] |
Int_t | n_reco |
Float_t | x_reco [50000] |
Float_t | y_reco [50000] |
Float_t | z_reco [50000] |
Float_t | seg_size |
Float_t | seg_stop |
Int_t | n_seg |
Float_t | x_seg [50000] |
Float_t | y_seg [50000] |
Float_t | z_seg [50000] |
TVector3 | basex |
TVector3 | basey |
TVector3 | basez |
std::vector< Float_t > | segx |
std::vector< Float_t > | segy |
std::vector< Float_t > | segz |
std::vector< Float_t > | segnx |
std::vector< Float_t > | segny |
std::vector< Float_t > | segnz |
std::vector< Float_t > | segL |
std::vector< Float_t > | azx0 |
std::vector< Float_t > | azy0 |
Float_t | steps_size |
Int_t | n_steps |
std::vector< Float_t > | steps |
Float_t | steps_size2 |
Float_t | kcal |
std::vector< Float_t > | dthij |
std::vector< Float_t > | dEi |
std::vector< Float_t > | dEj |
std::vector< Float_t > | ind |
Double_t | minLength |
Double_t | maxLength |
Definition at line 53 of file TrackMomentumCalculator.h.
trkf::TrackMomentumCalculator::TrackMomentumCalculator | ( | ) |
Definition at line 55 of file TrackMomentumCalculator.cxx.
References basex, basey, basez, chi2, gr_reco_xy, gr_reco_xyz, gr_reco_xz, gr_reco_yz, gr_seg_xy, gr_seg_xyz, gr_seg_xz, gr_seg_yz, kcal, KEvsR, KEvsR_spline3, LLbf, maxLength, minLength, n, n_reco, n_seg, n_steps, nmeas, p_mcs, p_mcs_2, p_mcs_e, seg_stop, steps, steps_size, and steps_size2.
|
virtual |
Definition at line 97 of file TrackMomentumCalculator.cxx.
References gr_meas, gr_reco_xy, gr_reco_xyz, gr_reco_xz, gr_reco_yz, gr_seg_xy, gr_seg_xyz, gr_seg_xz, gr_seg_yz, gr_xy, gr_xyz, gr_xz, gr_yz, KEvsR, and KEvsR_spline3.
|
private |
Definition at line 1682 of file TrackMomentumCalculator.cxx.
Referenced by GetDeltaThetaij(), and GetDeltaThetaRMS().
Int_t trkf::TrackMomentumCalculator::GetDeltaThetaij | ( | std::vector< Float_t > & | ei, |
std::vector< Float_t > & | ej, | ||
std::vector< Float_t > & | th, | ||
Double_t | thick, | ||
std::vector< Float_t > & | ind | ||
) |
Definition at line 557 of file TrackMomentumCalculator.cxx.
References a1, a2, a3, azx0, azy0, basex, basey, basez, find_angle(), kcal, segL, segnx, segny, segnz, segx, segy, and segz.
Referenced by GetMomentumMultiScatterLLHD(), and GetMuMultiScatterLLHD3().
void trkf::TrackMomentumCalculator::GetDeltaThetaRMS | ( | Double_t & | mean, |
Double_t & | rms, | ||
Double_t & | rmse, | ||
Double_t | thick | ||
) |
Definition at line 1527 of file TrackMomentumCalculator.cxx.
References a1, a2, a3, basex, basey, basez, find_angle(), nmeas, segL, segnx, segny, segnz, segx, segy, and segz.
Referenced by GetMomentumMultiScatterChi2().
Double_t trkf::TrackMomentumCalculator::GetMomentumMultiScatterChi2 | ( | const art::Ptr< recob::Track > & | trk | ) |
Definition at line 715 of file TrackMomentumCalculator.cxx.
References chi2, eymeas, GetDeltaThetaRMS(), GetRecoTracks(), GetSegTracks2(), gr_meas, kcal, recob::Track::LocationAtPoint(), maxLength, pmtana::mean(), my_mcs_chi2(), n_steps, nmeas, recob::Track::NumberTrajectoryPoints(), p_mcs, p_mcs_e, seg_size, segL, segx, steps, steps_size, xmeas, and ymeas.
Referenced by trkf::KalmanFilterFinalTrackFitter::setMomValue().
Double_t trkf::TrackMomentumCalculator::GetMomentumMultiScatterLLHD | ( | const art::Ptr< recob::Track > & | trk | ) |
Definition at line 237 of file TrackMomentumCalculator.cxx.
References dEi, dEj, dthij, e, GetDeltaThetaij(), GetRecoTracks(), GetSegTracks2(), ind, LLbf, recob::Track::LocationAtPoint(), maxLength, my_mcs_llhd(), recob::Track::NumberTrajectoryPoints(), p_mcs_2, seg_size, segL, segx, and steps_size2.
TVector3 trkf::TrackMomentumCalculator::GetMultiScatterStartingPoint | ( | const art::Ptr< recob::Track > & | trk | ) |
Definition at line 325 of file TrackMomentumCalculator.cxx.
References GetMuMultiScatterLLHD3(), recob::Track::LocationAtPoint(), and recob::Track::NumberTrajectoryPoints().
Double_t trkf::TrackMomentumCalculator::GetMuMultiScatterLLHD3 | ( | const art::Ptr< recob::Track > & | trk, |
bool | dir | ||
) |
Definition at line 482 of file TrackMomentumCalculator.cxx.
References dEi, dEj, dthij, GetDeltaThetaij(), GetRecoTracks(), GetSegTracks2(), ind, kcal, recob::Track::LocationAtPoint(), maxLength, my_mcs_llhd(), recob::Track::NumberTrajectoryPoints(), seg_size, segL, and segx.
Referenced by GetMultiScatterStartingPoint().
Int_t trkf::TrackMomentumCalculator::GetRecoTracks | ( | const std::vector< Float_t > & | xxx, |
const std::vector< Float_t > & | yyy, | ||
const std::vector< Float_t > & | zzz | ||
) |
Definition at line 887 of file TrackMomentumCalculator.cxx.
References a1, a2, a3, gr_reco_xy, gr_reco_xyz, gr_reco_xz, gr_reco_yz, n_reco, x_reco, y_reco, and z_reco.
Referenced by GetMomentumMultiScatterChi2(), GetMomentumMultiScatterLLHD(), and GetMuMultiScatterLLHD3().
Int_t trkf::TrackMomentumCalculator::GetSegTracks | ( | const std::vector< Float_t > & | xxx, |
const std::vector< Float_t > & | yyy, | ||
const std::vector< Float_t > & | zzz | ||
) |
Definition at line 926 of file TrackMomentumCalculator.cxx.
References a1, a2, a3, a4, beta, gr_seg_xy, gr_seg_xyz, gr_seg_xz, gr_seg_yz, n_seg, seg_size, seg_stop, segL, segnx, segny, segnz, segx, segy, segz, x1, x2, x_seg, y1, y2, y_seg, and z_seg.
Int_t trkf::TrackMomentumCalculator::GetSegTracks2 | ( | const std::vector< Float_t > & | xxx, |
const std::vector< Float_t > & | yyy, | ||
const std::vector< Float_t > & | zzz | ||
) |
Definition at line 1137 of file TrackMomentumCalculator.cxx.
References a1, a2, a3, a4, beta, gr_seg_xy, gr_seg_xyz, gr_seg_xz, gr_seg_yz, n_seg, seg_size, seg_stop, segL, segnx, segny, segnz, segx, segy, segz, 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 | ||
) |
Definition at line 117 of file TrackMomentumCalculator.cxx.
References E, and KEvsR_spline3.
Referenced by trkmkr::KalmanFilterFitTrackMaker::setMomentum(), trkf::KalmanFilterTrajectoryFitter::setMomValue(), and trkf::KalmanFilterFinalTrackFitter::setMomValue().
Int_t trkf::TrackMomentumCalculator::GetTracks | ( | const std::vector< Float_t > & | xxx, |
const std::vector< Float_t > & | yyy, | ||
const std::vector< Float_t > & | zzz | ||
) |
Double_t trkf::TrackMomentumCalculator::my_g | ( | Double_t | xx, |
Double_t | Q, | ||
Double_t | s | ||
) |
Double_t trkf::TrackMomentumCalculator::my_mcs_llhd | ( | Double_t | x0, |
Double_t | x1 | ||
) |
Definition at line 1727 of file TrackMomentumCalculator.cxx.
References dEi, dEj, dthij, ind, my_g(), and x1.
Referenced by GetMomentumMultiScatterLLHD(), and GetMuMultiScatterLLHD3().
|
inline |
Definition at line 147 of file TrackMomentumCalculator.h.
|
inline |
Definition at line 145 of file TrackMomentumCalculator.h.
|
private |
Definition at line 75 of file TrackMomentumCalculator.h.
Referenced by GetDeltaThetaij().
|
private |
Definition at line 75 of file TrackMomentumCalculator.h.
Referenced by GetDeltaThetaij().
|
private |
Definition at line 67 of file TrackMomentumCalculator.h.
Referenced by GetDeltaThetaij(), GetDeltaThetaRMS(), and TrackMomentumCalculator().
|
private |
Definition at line 67 of file TrackMomentumCalculator.h.
Referenced by GetDeltaThetaij(), GetDeltaThetaRMS(), and TrackMomentumCalculator().
|
private |
Definition at line 67 of file TrackMomentumCalculator.h.
Referenced by GetDeltaThetaij(), GetDeltaThetaRMS(), and TrackMomentumCalculator().
Double_t trkf::TrackMomentumCalculator::chi2 |
Definition at line 125 of file TrackMomentumCalculator.h.
Referenced by GetMomentumMultiScatterChi2(), and TrackMomentumCalculator().
|
private |
Definition at line 85 of file TrackMomentumCalculator.h.
Referenced by GetMomentumMultiScatterLLHD(), GetMuMultiScatterLLHD3(), and my_mcs_llhd().
|
private |
Definition at line 85 of file TrackMomentumCalculator.h.
Referenced by GetMomentumMultiScatterLLHD(), GetMuMultiScatterLLHD3(), and my_mcs_llhd().
|
private |
Definition at line 85 of file TrackMomentumCalculator.h.
Referenced by GetMomentumMultiScatterLLHD(), GetMuMultiScatterLLHD3(), and my_mcs_llhd().
TGraphErrors* trkf::TrackMomentumCalculator::gr_meas = 0 |
Definition at line 117 of file TrackMomentumCalculator.h.
Referenced by GetMomentumMultiScatterChi2(), and ~TrackMomentumCalculator().
TGraph* trkf::TrackMomentumCalculator::gr_reco_xy |
Definition at line 105 of file TrackMomentumCalculator.h.
Referenced by GetRecoTracks(), TrackMomentumCalculator(), and ~TrackMomentumCalculator().
TPolyLine3D* trkf::TrackMomentumCalculator::gr_reco_xyz |
Definition at line 105 of file TrackMomentumCalculator.h.
Referenced by GetRecoTracks(), TrackMomentumCalculator(), and ~TrackMomentumCalculator().
TGraph* trkf::TrackMomentumCalculator::gr_reco_xz |
Definition at line 105 of file TrackMomentumCalculator.h.
Referenced by GetRecoTracks(), TrackMomentumCalculator(), and ~TrackMomentumCalculator().
TGraph* trkf::TrackMomentumCalculator::gr_reco_yz |
Definition at line 105 of file TrackMomentumCalculator.h.
Referenced by GetRecoTracks(), TrackMomentumCalculator(), and ~TrackMomentumCalculator().
TGraph* trkf::TrackMomentumCalculator::gr_seg_xy |
Definition at line 109 of file TrackMomentumCalculator.h.
Referenced by GetSegTracks(), GetSegTracks2(), TrackMomentumCalculator(), and ~TrackMomentumCalculator().
TPolyLine3D* trkf::TrackMomentumCalculator::gr_seg_xyz |
Definition at line 109 of file TrackMomentumCalculator.h.
Referenced by GetSegTracks(), GetSegTracks2(), TrackMomentumCalculator(), and ~TrackMomentumCalculator().
TGraph* trkf::TrackMomentumCalculator::gr_seg_xz |
Definition at line 109 of file TrackMomentumCalculator.h.
Referenced by GetSegTracks(), GetSegTracks2(), TrackMomentumCalculator(), and ~TrackMomentumCalculator().
TGraph* trkf::TrackMomentumCalculator::gr_seg_yz |
Definition at line 109 of file TrackMomentumCalculator.h.
Referenced by GetSegTracks(), GetSegTracks2(), TrackMomentumCalculator(), and ~TrackMomentumCalculator().
TGraph* trkf::TrackMomentumCalculator::gr_xy =0 |
Definition at line 101 of file TrackMomentumCalculator.h.
Referenced by GetTracks(), and ~TrackMomentumCalculator().
TPolyLine3D* trkf::TrackMomentumCalculator::gr_xyz =0 |
Definition at line 101 of file TrackMomentumCalculator.h.
Referenced by GetTracks(), and ~TrackMomentumCalculator().
TGraph* trkf::TrackMomentumCalculator::gr_xz =0 |
Definition at line 101 of file TrackMomentumCalculator.h.
Referenced by GetTracks(), and ~TrackMomentumCalculator().
TGraph* trkf::TrackMomentumCalculator::gr_yz =0 |
Definition at line 101 of file TrackMomentumCalculator.h.
Referenced by GetTracks(), and ~TrackMomentumCalculator().
|
private |
Definition at line 85 of file TrackMomentumCalculator.h.
Referenced by GetMomentumMultiScatterLLHD(), GetMuMultiScatterLLHD3(), and my_mcs_llhd().
|
private |
Definition at line 83 of file TrackMomentumCalculator.h.
Referenced by GetDeltaThetaij(), GetMomentumMultiScatterChi2(), GetMuMultiScatterLLHD3(), and TrackMomentumCalculator().
TGraph* trkf::TrackMomentumCalculator::KEvsR |
Definition at line 119 of file TrackMomentumCalculator.h.
Referenced by TrackMomentumCalculator(), and ~TrackMomentumCalculator().
TSpline3* trkf::TrackMomentumCalculator::KEvsR_spline3 |
Definition at line 121 of file TrackMomentumCalculator.h.
Referenced by GetTrackMomentum(), TrackMomentumCalculator(), and ~TrackMomentumCalculator().
Double_t trkf::TrackMomentumCalculator::LLbf |
Definition at line 135 of file TrackMomentumCalculator.h.
Referenced by GetMomentumMultiScatterLLHD(), and TrackMomentumCalculator().
|
private |
Definition at line 89 of file TrackMomentumCalculator.h.
Referenced by GetMomentumMultiScatterChi2(), GetMomentumMultiScatterLLHD(), GetMuMultiScatterLLHD3(), and TrackMomentumCalculator().
|
private |
Definition at line 87 of file TrackMomentumCalculator.h.
Referenced by TrackMomentumCalculator().
|
private |
Definition at line 55 of file TrackMomentumCalculator.h.
Referenced by GetTracks(), and TrackMomentumCalculator().
|
private |
Definition at line 59 of file TrackMomentumCalculator.h.
Referenced by GetRecoTracks(), and TrackMomentumCalculator().
|
private |
Definition at line 63 of file TrackMomentumCalculator.h.
Referenced by GetSegTracks(), GetSegTracks2(), and TrackMomentumCalculator().
|
private |
Definition at line 79 of file TrackMomentumCalculator.h.
Referenced by GetMomentumMultiScatterChi2(), and TrackMomentumCalculator().
Double_t trkf::TrackMomentumCalculator::p_mcs |
Definition at line 125 of file TrackMomentumCalculator.h.
Referenced by GetMomentumMultiScatterChi2(), and TrackMomentumCalculator().
Double_t trkf::TrackMomentumCalculator::p_mcs_2 |
Definition at line 135 of file TrackMomentumCalculator.h.
Referenced by GetMomentumMultiScatterLLHD(), and TrackMomentumCalculator().
Double_t trkf::TrackMomentumCalculator::p_mcs_e |
Definition at line 125 of file TrackMomentumCalculator.h.
Referenced by GetMomentumMultiScatterChi2(), and TrackMomentumCalculator().
|
private |
Definition at line 63 of file TrackMomentumCalculator.h.
Referenced by GetMomentumMultiScatterChi2(), GetMomentumMultiScatterLLHD(), GetMuMultiScatterLLHD3(), GetSegTracks(), and GetSegTracks2().
|
private |
Definition at line 63 of file TrackMomentumCalculator.h.
Referenced by GetSegTracks(), GetSegTracks2(), and TrackMomentumCalculator().
|
private |
Definition at line 73 of file TrackMomentumCalculator.h.
Referenced by GetDeltaThetaij(), GetDeltaThetaRMS(), GetMomentumMultiScatterChi2(), GetMomentumMultiScatterLLHD(), GetMuMultiScatterLLHD3(), GetSegTracks(), and GetSegTracks2().
|
private |
Definition at line 71 of file TrackMomentumCalculator.h.
Referenced by GetDeltaThetaij(), GetDeltaThetaRMS(), GetSegTracks(), and GetSegTracks2().
|
private |
Definition at line 71 of file TrackMomentumCalculator.h.
Referenced by GetDeltaThetaij(), GetDeltaThetaRMS(), GetSegTracks(), and GetSegTracks2().
|
private |
Definition at line 71 of file TrackMomentumCalculator.h.
Referenced by GetDeltaThetaij(), GetDeltaThetaRMS(), GetSegTracks(), and GetSegTracks2().
|
private |
Definition at line 69 of file TrackMomentumCalculator.h.
Referenced by GetDeltaThetaij(), GetDeltaThetaRMS(), GetMomentumMultiScatterChi2(), GetMomentumMultiScatterLLHD(), GetMuMultiScatterLLHD3(), GetSegTracks(), and GetSegTracks2().
|
private |
Definition at line 69 of file TrackMomentumCalculator.h.
Referenced by GetDeltaThetaij(), GetDeltaThetaRMS(), GetSegTracks(), and GetSegTracks2().
|
private |
Definition at line 69 of file TrackMomentumCalculator.h.
Referenced by GetDeltaThetaij(), GetDeltaThetaRMS(), GetSegTracks(), and GetSegTracks2().
|
private |
Definition at line 79 of file TrackMomentumCalculator.h.
Referenced by GetMomentumMultiScatterChi2(), and TrackMomentumCalculator().
|
private |
Definition at line 79 of file TrackMomentumCalculator.h.
Referenced by GetMomentumMultiScatterChi2(), and TrackMomentumCalculator().
|
private |
Definition at line 81 of file TrackMomentumCalculator.h.
Referenced by GetMomentumMultiScatterLLHD(), and TrackMomentumCalculator().
|
private |
Definition at line 57 of file TrackMomentumCalculator.h.
Referenced by GetTracks().
|
private |
Definition at line 61 of file TrackMomentumCalculator.h.
Referenced by GetRecoTracks().
|
private |
Definition at line 65 of file TrackMomentumCalculator.h.
Referenced by GetSegTracks(), and GetSegTracks2().
|
private |
Definition at line 57 of file TrackMomentumCalculator.h.
Referenced by GetTracks().
|
private |
Definition at line 61 of file TrackMomentumCalculator.h.
Referenced by GetRecoTracks().
|
private |
Definition at line 65 of file TrackMomentumCalculator.h.
Referenced by GetSegTracks(), and GetSegTracks2().
|
private |
Definition at line 57 of file TrackMomentumCalculator.h.
Referenced by GetTracks().
|
private |
Definition at line 61 of file TrackMomentumCalculator.h.
Referenced by GetRecoTracks().
|
private |
Definition at line 65 of file TrackMomentumCalculator.h.
Referenced by GetSegTracks(), and GetSegTracks2().