LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
#include "TrackContainmentAlg.hh"
Public Member Functions | |
TrackContainmentAlg () | |
Default constructor. 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 72 of file TrackContainmentAlg.hh.
trk::TrackContainmentAlg::TrackContainmentAlg | ( | ) |
void trk::TrackContainmentAlg::Configure | ( | fhicl::ParameterSet const & | p | ) |
Definition at line 25 of file TrackContainmentAlg.cxx.
References fDebug, fFillOutputTree, fIsolation, fMakeCosmicTags, fXBuffer, fYBuffer, fZBuffer, and fhicl::ParameterSet::get().
Referenced by trk::TrackContainmentAnalyzer::TrackContainmentAnalyzer(), and trk::TrackContainmentTagger::TrackContainmentTagger().
|
private |
Definition at line 58 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 85 of file TrackContainmentAlg.hh.
std::vector< std::vector< anab::CosmicTag > > const & trk::TrackContainmentAlg::GetTrackCosmicTags | ( | ) |
Definition at line 338 of file TrackContainmentAlg.cxx.
References fCosmicTags, and fMakeCosmicTags.
Referenced by trk::TrackContainmentTagger::produce().
|
inline |
Definition at line 89 of file TrackContainmentAlg.hh.
|
private |
Definition at line 37 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 138 of file TrackContainmentAlg.cxx.
References recob::Track::End(), recob::Track::LocationAtPoint(), recob::Track::NumberTrajectoryPoints(), and tmp.
Referenced by ProcessTracks().
|
private |
Definition at line 120 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 161 of file TrackContainmentAlg.cxx.
References geo::GeometryCore::DetHalfHeight(), geo::GeometryCore::DetHalfWidth(), geo::GeometryCore::DetLength(), util::end(), 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(), util::size(), lar::dump::vector(), and geo::WireID::Wire.
Referenced by trk::TrackContainmentAnalyzer::analyze(), and trk::TrackContainmentTagger::produce().
|
inline |
Definition at line 93 of file TrackContainmentAlg.hh.
Referenced by trk::TrackContainmentAnalyzer::TrackContainmentAnalyzer().
|
inline |
Definition at line 92 of file TrackContainmentAlg.hh.
Referenced by trk::TrackContainmentTagger::TrackContainmentTagger().
void trk::TrackContainmentAlg::SetRunEvent | ( | unsigned int const & | run, |
unsigned int const & | event | ||
) |
Definition at line 155 of file TrackContainmentAlg.cxx.
Referenced by trk::TrackContainmentAnalyzer::analyze(), and trk::TrackContainmentTagger::produce().
void trk::TrackContainmentAlg::SetupOutputTree | ( | TTree * | tfs_tree_trk | ) |
Definition at line 12 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 108 of file TrackContainmentAlg.hh.
Referenced by ProcessTracks(), and SetupOutputTree().
|
private |
Definition at line 111 of file TrackContainmentAlg.hh.
Referenced by ProcessTracks(), and SetupOutputTree().
|
private |
Definition at line 116 of file TrackContainmentAlg.hh.
Referenced by GetTrackCosmicTags(), and ProcessTracks().
|
private |
Definition at line 101 of file TrackContainmentAlg.hh.
Referenced by Configure(), and ProcessTracks().
|
private |
Definition at line 110 of file TrackContainmentAlg.hh.
Referenced by ProcessTracks(), and SetupOutputTree().
|
private |
Definition at line 107 of file TrackContainmentAlg.hh.
Referenced by SetRunEvent(), and SetupOutputTree().
|
private |
Definition at line 102 of file TrackContainmentAlg.hh.
Referenced by Configure(), and ProcessTracks().
|
private |
Definition at line 99 of file TrackContainmentAlg.hh.
Referenced by Configure(), and ProcessTracks().
|
private |
Definition at line 100 of file TrackContainmentAlg.hh.
Referenced by Configure(), GetTrackCosmicTags(), and ProcessTracks().
|
private |
Definition at line 115 of file TrackContainmentAlg.hh.
Referenced by ProcessTracks().
|
private |
Definition at line 106 of file TrackContainmentAlg.hh.
Referenced by SetRunEvent(), and SetupOutputTree().
|
private |
Definition at line 114 of file TrackContainmentAlg.hh.
Referenced by ProcessTracks().
|
private |
Definition at line 113 of file TrackContainmentAlg.hh.
Referenced by ProcessTracks().
|
private |
Definition at line 104 of file TrackContainmentAlg.hh.
Referenced by ProcessTracks(), and SetupOutputTree().
|
private |
Definition at line 105 of file TrackContainmentAlg.hh.
Referenced by ProcessTracks(), and SetupOutputTree().
|
private |
Definition at line 109 of file TrackContainmentAlg.hh.
Referenced by ProcessTracks(), and SetupOutputTree().
|
private |
Definition at line 98 of file TrackContainmentAlg.hh.
Referenced by Configure(), GetCosmicTagID(), IsContained(), and ProcessTracks().
|
private |
Definition at line 97 of file TrackContainmentAlg.hh.
Referenced by Configure(), GetCosmicTagID(), IsContained(), and ProcessTracks().
|
private |
Definition at line 96 of file TrackContainmentAlg.hh.
Referenced by Configure(), GetCosmicTagID(), IsContained(), and ProcessTracks().