![]() |
LArSoft
v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
|
#include "TrackContainmentAlg.hh"
Public Member Functions | |
| TrackContainmentAlg () | |
| Default constructor. More... | |
| virtual | ~TrackContainmentAlg () |
| Default destructor. More... | |
| void | SetupOutputTree (TTree *) |
| void | Configure (fhicl::ParameterSet const &) |
| void | SetRunEvent (unsigned int const &, unsigned int const &) |
| void | ProcessTracks (std::vector< std::vector< recob::Track > > const &, geo::GeometryCore const &) |
| std::vector< std::vector< int > > const & | GetTrackContainmentValues () |
| std::vector< std::vector< double > > const & | GetTrackMinDistanceValues () |
| std::vector< std::vector< anab::CosmicTag > > const & | GetTrackCosmicTags () |
| void | setMakeCosmicTags (bool flag=true) |
| void | setFillOutputTree (bool flag=true) |
Private Member Functions | |
| bool | IsContained (recob::Track const &, geo::GeometryCore const &) |
| anab::CosmicTagID_t | GetCosmicTagID (recob::Track const &, geo::GeometryCore const &) |
| double | MinDistanceStartPt (recob::Track const &, recob::Track const &) |
| double | MinDistanceEndPt (recob::Track const &, recob::Track const &) |
Private Attributes | |
| double | fZBuffer |
| double | fYBuffer |
| double | fXBuffer |
| double | fIsolation |
| bool | fMakeCosmicTags |
| bool | fDebug |
| bool | fFillOutputTree |
| TTree * | fTrackTree |
| TrackTree_t | fTrackTreeObj |
| unsigned int | fRun |
| unsigned int | fEvent |
| unsigned int | fCollection |
| unsigned int | fTrkID |
| double | fDistance |
| int | fContainment |
| std::vector< std::vector< int > > | fTrackContainmentLevel |
| std::vector< std::vector< std::pair< int, int > > > | fTrackContainmentIndices |
| std::vector< std::vector< double > > | fMinDistances |
| std::vector< std::vector< anab::CosmicTag > > | fCosmicTags |
Definition at line 57 of file TrackContainmentAlg.hh.
| trk::TrackContainmentAlg::TrackContainmentAlg | ( | ) |
|
inlinevirtual |
Default destructor.
Definition at line 65 of file TrackContainmentAlg.hh.
References lar::dump::vector().
| void trk::TrackContainmentAlg::Configure | ( | fhicl::ParameterSet const & | p | ) |
Definition at line 23 of file TrackContainmentAlg.cxx.
References fDebug, fFillOutputTree, fIsolation, fMakeCosmicTags, fXBuffer, fYBuffer, fZBuffer, and fhicl::ParameterSet::get().
Referenced by trk::TrackContainmentTagger::reconfigure(), and trk::TrackContainmentAnalyzer::reconfigure().
|
private |
Definition at line 53 of file TrackContainmentAlg.cxx.
References geo::GeometryCore::DetHalfHeight(), geo::GeometryCore::DetHalfWidth(), geo::GeometryCore::DetLength(), recob::Track::End(), fXBuffer, fYBuffer, fZBuffer, anab::kGeometry_X, anab::kGeometry_XX, anab::kGeometry_XY, anab::kGeometry_XZ, anab::kGeometry_Y, anab::kGeometry_YY, anab::kGeometry_YZ, anab::kGeometry_Z, anab::kGeometry_ZZ, anab::kNotTagged, anab::kOutsideDrift_Complete, anab::kOutsideDrift_Partial, and recob::Track::Vertex().
Referenced by ProcessTracks().
|
inline |
Definition at line 75 of file TrackContainmentAlg.hh.
| std::vector< std::vector< anab::CosmicTag > > const & trk::TrackContainmentAlg::GetTrackCosmicTags | ( | ) |
Definition at line 322 of file TrackContainmentAlg.cxx.
References fCosmicTags, and fMakeCosmicTags.
Referenced by trk::TrackContainmentTagger::produce().
|
inline |
Definition at line 77 of file TrackContainmentAlg.hh.
|
private |
Definition at line 35 of file TrackContainmentAlg.cxx.
References geo::GeometryCore::DetHalfHeight(), geo::GeometryCore::DetHalfWidth(), geo::GeometryCore::DetLength(), recob::Track::End(), fXBuffer, fYBuffer, fZBuffer, and recob::Track::Vertex().
Referenced by ProcessTracks().
|
private |
Definition at line 126 of file TrackContainmentAlg.cxx.
References recob::Track::End(), recob::Track::LocationAtPoint(), recob::Track::NumberTrajectoryPoints(), and tmp.
Referenced by ProcessTracks().
|
private |
Definition at line 110 of file TrackContainmentAlg.cxx.
References recob::Track::LocationAtPoint(), recob::Track::NumberTrajectoryPoints(), tmp, and recob::Track::Vertex().
Referenced by ProcessTracks().
| void trk::TrackContainmentAlg::ProcessTracks | ( | std::vector< std::vector< recob::Track > > const & | tracksVec, |
| geo::GeometryCore const & | geo | ||
| ) |
Definition at line 147 of file TrackContainmentAlg.cxx.
References geo::GeometryCore::DetHalfHeight(), geo::GeometryCore::DetHalfWidth(), geo::GeometryCore::DetLength(), fCollection, fContainment, fCosmicTags, fDebug, fDistance, fFillOutputTree, fIsolation, fMakeCosmicTags, fMinDistances, fTrackContainmentIndices, fTrackContainmentLevel, fTrackTree, fTrackTreeObj, fTrkID, fXBuffer, fYBuffer, fZBuffer, GetCosmicTagID(), IsContained(), anab::kNotIsolated, anab::kNotTagged, MinDistanceEndPt(), MinDistanceStartPt(), geo::GeometryCore::NearestWireID(), geo::GeometryCore::Nplanes(), R, and lar::dump::vector().
Referenced by trk::TrackContainmentAnalyzer::analyze(), and trk::TrackContainmentTagger::produce().
|
inline |
Definition at line 82 of file TrackContainmentAlg.hh.
Referenced by trk::TrackContainmentAnalyzer::reconfigure().
|
inline |
Definition at line 81 of file TrackContainmentAlg.hh.
Referenced by trk::TrackContainmentTagger::reconfigure().
| void trk::TrackContainmentAlg::SetRunEvent | ( | unsigned int const & | run, |
| unsigned int const & | event | ||
| ) |
Definition at line 141 of file TrackContainmentAlg.cxx.
Referenced by trk::TrackContainmentAnalyzer::analyze(), and trk::TrackContainmentTagger::produce().
| void trk::TrackContainmentAlg::SetupOutputTree | ( | TTree * | tfs_tree_trk | ) |
Definition at line 11 of file TrackContainmentAlg.cxx.
References fCollection, fContainment, fDistance, fEvent, fRun, fTrackTree, fTrackTreeObj, fTrkID, and trk::TrackTree::Leaflist().
Referenced by trk::TrackContainmentAnalyzer::TrackContainmentAnalyzer(), and trk::TrackContainmentTagger::TrackContainmentTagger().
|
private |
Definition at line 99 of file TrackContainmentAlg.hh.
Referenced by ProcessTracks(), and SetupOutputTree().
|
private |
Definition at line 102 of file TrackContainmentAlg.hh.
Referenced by ProcessTracks(), and SetupOutputTree().
|
private |
Definition at line 107 of file TrackContainmentAlg.hh.
Referenced by GetTrackCosmicTags(), and ProcessTracks().
|
private |
Definition at line 92 of file TrackContainmentAlg.hh.
Referenced by Configure(), and ProcessTracks().
|
private |
Definition at line 101 of file TrackContainmentAlg.hh.
Referenced by ProcessTracks(), and SetupOutputTree().
|
private |
Definition at line 98 of file TrackContainmentAlg.hh.
Referenced by SetRunEvent(), and SetupOutputTree().
|
private |
Definition at line 93 of file TrackContainmentAlg.hh.
Referenced by Configure(), and ProcessTracks().
|
private |
Definition at line 90 of file TrackContainmentAlg.hh.
Referenced by Configure(), and ProcessTracks().
|
private |
Definition at line 91 of file TrackContainmentAlg.hh.
Referenced by Configure(), GetTrackCosmicTags(), and ProcessTracks().
|
private |
Definition at line 106 of file TrackContainmentAlg.hh.
Referenced by ProcessTracks().
|
private |
Definition at line 97 of file TrackContainmentAlg.hh.
Referenced by SetRunEvent(), and SetupOutputTree().
|
private |
Definition at line 105 of file TrackContainmentAlg.hh.
Referenced by ProcessTracks().
|
private |
Definition at line 104 of file TrackContainmentAlg.hh.
Referenced by ProcessTracks().
|
private |
Definition at line 95 of file TrackContainmentAlg.hh.
Referenced by ProcessTracks(), and SetupOutputTree().
|
private |
Definition at line 96 of file TrackContainmentAlg.hh.
Referenced by ProcessTracks(), and SetupOutputTree().
|
private |
Definition at line 100 of file TrackContainmentAlg.hh.
Referenced by ProcessTracks(), and SetupOutputTree().
|
private |
Definition at line 89 of file TrackContainmentAlg.hh.
Referenced by Configure(), GetCosmicTagID(), IsContained(), and ProcessTracks().
|
private |
Definition at line 88 of file TrackContainmentAlg.hh.
Referenced by Configure(), GetCosmicTagID(), IsContained(), and ProcessTracks().
|
private |
Definition at line 87 of file TrackContainmentAlg.hh.
Referenced by Configure(), GetCosmicTagID(), IsContained(), and ProcessTracks().