Public Member Functions | |
CosmicTrackUtilities () | |
virtual | ~CosmicTrackUtilities () |
void | reconfigure (fhicl::ParameterSet const &pset) |
float | RangeMomentum (rb::Track const &track) |
float | LengthCorrection (float const &length) |
float | CosTheta (float const &dcosY, float const &magnitude) |
float | Azimuth (float const &dcosX, float const &dcosZ, float const &magnitude) |
std::pair< std::pair< float, float >, std::pair< TVector3, TVector3 > > | TrueLengthEndPoints (simb::MCParticle const &part) |
std::map< geo::CellUniqueId, float > | TruePathLengthInCell (simb::MCParticle const &part, std::vector< sim::FLSHit > const &flsHits) |
void | FindTriCells (rb::Track const &track, std::map< std::pair< uint32_t, uint32_t >, bool > &planeCellMap) |
float | TriCellPathLength (rb::Track const &track, uint32_t const &plane, double const &cellWidth, geo::View_t const &view) |
float | PathLengthInCell (zBoundMap const &zBounds, TVector3 const &recoHitLoc, std::pair< uint32_t, uint32_t > const &pc) |
zBoundMap | MakeZBoundaryMap (std::vector< TVector3 > const &trajectory) |
zBounds | ZBounds (zBoundMap const &bounds, double const &hitZ) |
std::vector< float > | TrackResiduals (rb::Track const &track) |
bool | PointInDetector (TVector3 const &point) |
Private Member Functions | |
void | FindZBoundaries () |
Private Attributes | |
double | fEffectivedEdx |
effective dE/dx in MeV/cm More... | |
std::vector< double > | fPolCoeff |
the coefficients in an 8th degree polynomial More... | |
std::set< double > | fPlaneZBounds |
boundaries of each plane in the z direction More... | |
double | fPlaneZDepth |
extent of one plane (cell) in the z direction More... | |
art::ServiceHandle< geo::LiveGeometry > | fLiveGeom |
art::ServiceHandle< geo::Geometry > | fGeom |
Definition at line 35 of file CosmicTrackUtilities.h.
|
explicit |
Definition at line 24 of file CosmicTrackUtilities.cxx.
References reconfigure().
|
virtual |
Definition at line 33 of file CosmicTrackUtilities.cxx.
float trk::CosmicTrackUtilities::Azimuth | ( | float const & | dcosX, |
float const & | dcosZ, | ||
float const & | magnitude | ||
) |
Definition at line 108 of file CosmicTrackUtilities.cxx.
References std::atan2().
Referenced by upmuana::UpMuAnalysis::analyze(), trk::CosmicTrackAna::analyze(), trk::CosmicTrackAna::FillEventMCTruthHistograms(), trk::CosmicTrackAna::FillRecoInfo(), and trk::CosmicTrackAna::FillTrueInfo().
float trk::CosmicTrackUtilities::CosTheta | ( | float const & | dcosY, |
float const & | magnitude | ||
) |
Definition at line 101 of file CosmicTrackUtilities.cxx.
Referenced by upmuana::UpMuAnalysis::analyze(), trk::CosmicTrackAna::FillEventMCTruthHistograms(), trk::CosmicTrackAna::FillRecoInfo(), and trk::CosmicTrackAna::FillTrueInfo().
void trk::CosmicTrackUtilities::FindTriCells | ( | rb::Track const & | track, |
std::map< std::pair< uint32_t, uint32_t >, bool > & | planeCellMap | ||
) |
Definition at line 254 of file CosmicTrackUtilities.cxx.
References rb::CellHit::Cell(), rb::Cluster::Cell(), make_syst_table_plots::h, rb::Cluster::NCell(), and rb::CellHit::Plane().
Referenced by trk::CosmicTrackAna::FillRecoInfo(), and trk::CosmicTrackAna::FillTrackHistograms().
|
private |
Definition at line 469 of file CosmicTrackUtilities.cxx.
References geo::PlaneGeo::Cell(), fGeom, fPlaneZBounds, fPlaneZDepth, geo::CellGeo::GetCenter(), geo::CellGeo::HalfD(), geo::GeometryBase::NPlanes(), and geo::GeometryBase::Plane().
Referenced by MakeZBoundaryMap().
float trk::CosmicTrackUtilities::LengthCorrection | ( | float const & | length | ) |
Definition at line 83 of file CosmicTrackUtilities.cxx.
References plot_validation_datamc::c, fPolCoeff, and cet::pow().
Referenced by trk::CosmicTrackAna::FillRecoInfo(), trk::CosmicTrackAna::FillTrackMCTruthHistograms(), and RangeMomentum().
zBoundMap trk::CosmicTrackUtilities::MakeZBoundaryMap | ( | std::vector< TVector3 > const & | trajectory | ) |
Definition at line 489 of file CosmicTrackUtilities.cxx.
References dir, FindZBoundaries(), fPlaneZBounds, fPlaneZDepth, make_pair(), PointInDetector(), X, and Z.
Referenced by trk::CosmicTrackAna::FillTrackHistograms(), TrackResiduals(), and TruePathLengthInCell().
float trk::CosmicTrackUtilities::PathLengthInCell | ( | zBoundMap const & | zBounds, |
TVector3 const & | recoHitLoc, | ||
std::pair< uint32_t, uint32_t > const & | pc | ||
) |
Definition at line 317 of file CosmicTrackUtilities.cxx.
References std::abs(), geo::PlaneGeo::Cell(), d, Dot(), fGeom, geo::CellGeo::GetCenter(), geo::CellGeo::HalfD(), geo::CellGeo::HalfL(), geo::CellGeo::HalfW(), geo::kY, Mag(), geo::GeometryBase::Plane(), demo5::surf, Unit(), geo::PlaneGeo::View(), and ZBounds().
Referenced by trk::CosmicTrackAna::FillTrackHistograms(), and TruePathLengthInCell().
bool trk::CosmicTrackUtilities::PointInDetector | ( | TVector3 const & | point | ) |
Definition at line 119 of file CosmicTrackUtilities.cxx.
References geo::GeometryBase::DetId(), geo::LiveGeometry::DistanceToEdgeInMC(), geo::LiveGeometry::DistToEdgeXY(), geo::LiveGeometry::DistToEdgeZ(), fGeom, fLiveGeom, geo::LiveGeometry::InMuonCatcher(), novadaq::cnv::kNEARDET, and std::min().
Referenced by MakeZBoundaryMap(), and TrueLengthEndPoints().
float trk::CosmicTrackUtilities::RangeMomentum | ( | rb::Track const & | track | ) |
Definition at line 59 of file CosmicTrackUtilities.cxx.
References dist, fEffectivedEdx, LengthCorrection(), Mag(), confusionMatrixTree::t, rb::Track::TotalLength(), and rb::Track::Trajectory().
Referenced by trk::CosmicTrackAna::FillRecoInfo().
void trk::CosmicTrackUtilities::reconfigure | ( | fhicl::ParameterSet const & | pset | ) |
Definition at line 38 of file CosmicTrackUtilities.cxx.
References fEffectivedEdx, fPolCoeff, and fhicl::ParameterSet::get().
Referenced by CosmicTrackUtilities(), and trk::CosmicTrackAna::reconfigure().
std::vector< float > trk::CosmicTrackUtilities::TrackResiduals | ( | rb::Track const & | track | ) |
Definition at line 585 of file CosmicTrackUtilities.cxx.
References plot_validation_datamc::c, rb::CellHit::Cell(), rb::Cluster::Cell(), fGeom, rb::RecoHit::IsCalibrated(), LOG_DEBUG, Mag(), MakeZBoundaryMap(), rb::Cluster::NCell(), rb::CellHit::Plane(), geo::GeometryBase::Plane(), rb::Cluster::RecoHit(), rb::Track::Trajectory(), rb::RecoHit::X(), rb::RecoHit::Y(), rb::RecoHit::Z(), and ZBounds().
Referenced by trk::CosmicTrackAna::FillRecoInfo(), and trk::CosmicTrackAna::FillTrackHistograms().
float trk::CosmicTrackUtilities::TriCellPathLength | ( | rb::Track const & | track, |
uint32_t const & | plane, | ||
double const & | cellWidth, | ||
geo::View_t const & | view | ||
) |
Definition at line 294 of file CosmicTrackUtilities.cxx.
References std::abs(), geo::kX, and rb::Track::PlaneDirMap().
Referenced by trk::CosmicTrackAna::FillTrackHistograms().
std::pair< std::pair< float, float >, std::pair< TVector3, TVector3 > > trk::CosmicTrackUtilities::TrueLengthEndPoints | ( | simb::MCParticle const & | part | ) |
Definition at line 142 of file CosmicTrackUtilities.cxx.
References std::abs(), febshutoff_auto::end, fLiveGeom, demo0::length, Mag(), make_training::momentum, PointInDetector(), prev(), geo::LiveGeometry::ProjectedDistanceToEdge(), febshutoff_auto::start, and simb::MCParticle::Trajectory().
Referenced by trk::CosmicTrackAna::FillEventMCTruthHistograms(), and trk::CosmicTrackAna::FillTrueInfo().
std::map< geo::CellUniqueId, float > trk::CosmicTrackUtilities::TruePathLengthInCell | ( | simb::MCParticle const & | part, |
std::vector< sim::FLSHit > const & | flsHits | ||
) |
Definition at line 173 of file CosmicTrackUtilities.cxx.
References geo::PlaneGeo::Cell(), e, fGeom, geo::CellGeo::Id(), demo0::length, PandAna.Demos.demo0::loc, LOG_DEBUG, LOG_WARNING, make_pair(), MakeZBoundaryMap(), min(), PathLengthInCell(), and geo::GeometryBase::Plane().
Referenced by trk::CosmicTrackAna::FillTrueInfo().
Definition at line 561 of file CosmicTrackUtilities.cxx.
References fPlaneZDepth.
Referenced by PathLengthInCell(), and TrackResiduals().
|
private |
effective dE/dx in MeV/cm
Definition at line 79 of file CosmicTrackUtilities.h.
Referenced by RangeMomentum(), and reconfigure().
|
private |
Definition at line 85 of file CosmicTrackUtilities.h.
Referenced by FindZBoundaries(), PathLengthInCell(), PointInDetector(), TrackResiduals(), and TruePathLengthInCell().
|
private |
Definition at line 84 of file CosmicTrackUtilities.h.
Referenced by PointInDetector(), and TrueLengthEndPoints().
|
private |
boundaries of each plane in the z direction
Definition at line 81 of file CosmicTrackUtilities.h.
Referenced by FindZBoundaries(), and MakeZBoundaryMap().
|
private |
extent of one plane (cell) in the z direction
Definition at line 82 of file CosmicTrackUtilities.h.
Referenced by FindZBoundaries(), MakeZBoundaryMap(), and ZBounds().
|
private |
the coefficients in an 8th degree polynomial
Definition at line 80 of file CosmicTrackUtilities.h.
Referenced by LengthCorrection(), and reconfigure().