LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
#include "MVAAlg.h"
Classes | |
struct | SortedObj |
struct | SumDistance2 |
Public Member Functions | |
MVAAlg (fhicl::ParameterSet const &pset) | |
void | GetDetectorEdges () |
void | GetWireNormals () |
void | RunPID (art::Event &evt, std::vector< anab::MVAPIDResult > &result, art::Assns< recob::Track, anab::MVAPIDResult, void > &trackAssns, art::Assns< recob::Shower, anab::MVAPIDResult, void > &showerAssns) |
Private Member Functions | |
int | IsInActiveVol (const TVector3 &pos) |
void | PrepareEvent (const art::Event &event, const detinfo::DetectorClocksData &clockData) |
void | FitAndSortTrack (art::Ptr< recob::Track > track, int &isStoppingReco, SortedObj &sortedObj) |
void | SortShower (art::Ptr< recob::Shower > shower, int &isStoppingReco, mvapid::MVAAlg::SortedObj &sortedShower) |
void | RunPCA (std::vector< art::Ptr< recob::Hit >> &hits, std::vector< double > &eVals, std::vector< double > &eVecs) |
void | _Var_Shape (const SortedObj &track, double &coreHaloRatio, double &concentration, double &conicalness) |
double | CalcSegmentdEdxFrac (const detinfo::DetectorClocksData &clock_data, const detinfo::DetectorPropertiesData &det_prop, const SortedObj &track, double start, double end) |
double | CalcSegmentdEdxDist (const detinfo::DetectorClocksData &clock_data, const detinfo::DetectorPropertiesData &det_prop, const SortedObj &track, double start, double end) |
double | CalcSegmentdEdxDistAtEnd (const detinfo::DetectorClocksData &clock_data, const detinfo::DetectorPropertiesData &det_prop, const mvapid::MVAAlg::SortedObj &track, double distAtEnd) |
int | LinFit (const art::Ptr< recob::Track > track, TVector3 &trackPoint, TVector3 &trackDir) |
int | LinFitShower (const art::Ptr< recob::Shower > shower, TVector3 &showerPoint, TVector3 &showerDir) |
mvapid::MVAAlg::MVAAlg | ( | fhicl::ParameterSet const & | pset | ) |
Definition at line 33 of file MVAAlg.cxx.
References anab::MVAPIDResult::concentration, anab::MVAPIDResult::conicalness, anab::MVAPIDResult::coreHaloRatio, anab::MVAPIDResult::dEdxEnd, anab::MVAPIDResult::dEdxEndRatio, anab::MVAPIDResult::dEdxStart, anab::MVAPIDResult::evalRatio, fCheatVertex, fHitLabel, fMVAMethods, fReader, fResHolder, fShowerLabel, fSpacePointLabel, fTrackingLabel, fTrackLabel, fWeightFiles, and fhicl::ParameterSet::get().
|
private |
Definition at line 538 of file MVAAlg.cxx.
References mvapid::MVAAlg::SortedObj::dir, E, fHitsToSpacePoints, mvapid::MVAAlg::SortedObj::hitMap, mvapid::MVAAlg::SortedObj::length, mvapid::MVAAlg::SortedObj::start, and recob::SpacePoint::XYZ().
Referenced by RunPID().
|
private |
Definition at line 627 of file MVAAlg.cxx.
References geo::PlaneID::asPlaneID(), geo::CryostatID::Cryostat, tca::dEdx(), calo::CalorimetryAlg::dEdx_AREA(), dir, mvapid::MVAAlg::SortedObj::dir, fCaloAlg, fEventT0, fNormToWiresY, fNormToWiresZ, mvapid::MVAAlg::SortedObj::hitMap, geo::GeometryCore::Nplanes(), geo::GeometryCore::NTPC(), geo::PlaneID::Plane, geo::TPCID::TPC, recob::Hit::WireID(), and geo::GeometryCore::WirePitch().
Referenced by CalcSegmentdEdxDistAtEnd(), and CalcSegmentdEdxFrac().
|
private |
Definition at line 617 of file MVAAlg.cxx.
References CalcSegmentdEdxDist(), mvapid::MVAAlg::SortedObj::end, and mvapid::MVAAlg::SortedObj::start.
|
private |
Definition at line 606 of file MVAAlg.cxx.
References CalcSegmentdEdxDist(), mvapid::MVAAlg::SortedObj::end, and mvapid::MVAAlg::SortedObj::start.
Referenced by RunPID().
|
private |
Definition at line 342 of file MVAAlg.cxx.
References mvapid::MVAAlg::SortedObj::dir, mvapid::MVAAlg::SortedObj::end, recob::Track::End(), fCheatVertex, fHitsToSpacePoints, fTracksToHits, fVertex4Vect, mvapid::MVAAlg::SortedObj::hitMap, hits(), IsInActiveVol(), mvapid::MVAAlg::SortedObj::length, LinFit(), mvapid::MVAAlg::SortedObj::start, track, recob::Track::Vertex(), recob::SpacePoint::XYZ(), and Z.
Referenced by RunPID().
void mvapid::MVAAlg::GetDetectorEdges | ( | ) |
Definition at line 89 of file MVAAlg.cxx.
References fDetMaxX, fDetMaxY, fDetMaxZ, fDetMinX, fDetMinY, fDetMinZ, and geo::GeometryCore::Iterate().
Referenced by mvapid::MVAPID::beginJob().
void mvapid::MVAAlg::GetWireNormals | ( | ) |
Definition at line 111 of file MVAAlg.cxx.
References fNormToWiresY, fNormToWiresZ, geo::GeometryCore::Iterate(), geo::GeometryCore::Nplanes(), and geo::GeometryCore::NTPC().
Referenced by mvapid::MVAPID::beginJob().
|
private |
Definition at line 77 of file MVAAlg.cxx.
References fDetMaxX, fDetMaxY, fDetMaxZ, fDetMinX, fDetMinY, and fDetMinZ.
Referenced by FitAndSortTrack(), and SortShower().
|
private |
Definition at line 675 of file MVAAlg.cxx.
References recob::Track::End(), fTracksToSpacePoints, and recob::Track::Vertex().
Referenced by FitAndSortTrack().
|
private |
Definition at line 725 of file MVAAlg.cxx.
References recob::Shower::Direction(), fShowersToSpacePoints, and recob::Shower::ShowerStart().
Referenced by SortShower().
|
private |
Definition at line 242 of file MVAAlg.cxx.
References fCheatVertex, fEventT0, fHitLabel, fHits, fHitsToSpacePoints, fShowerLabel, fShowers, fShowersToHits, fShowersToSpacePoints, fSpacePointLabel, fSpacePoints, fSpacePointsToHits, fTrackingLabel, fTrackLabel, fTracks, fTracksToHits, fTracksToSpacePoints, fVertex4Vect, art::ProductRetriever::getByLabel(), track, and detinfo::trigger_offset().
Referenced by RunPID().
|
private |
Definition at line 514 of file MVAAlg.cxx.
References fHitsToSpacePoints, and hits().
Referenced by RunPID().
void mvapid::MVAAlg::RunPID | ( | art::Event & | evt, |
std::vector< anab::MVAPIDResult > & | result, | ||
art::Assns< recob::Track, anab::MVAPIDResult, void > & | trackAssns, | ||
art::Assns< recob::Shower, anab::MVAPIDResult, void > & | showerAssns | ||
) |
Definition at line 143 of file MVAAlg.cxx.
References _Var_Shape(), CalcSegmentdEdxFrac(), anab::MVAPIDResult::concentration, anab::MVAPIDResult::conicalness, anab::MVAPIDResult::coreHaloRatio, util::CreateAssn(), anab::MVAPIDResult::dEdxEnd, anab::MVAPIDResult::dEdxEndRatio, anab::MVAPIDResult::dEdxStart, anab::MVAPIDResult::evalRatio, FitAndSortTrack(), fMVAMethods, fReader, fResHolder, fShowers, fShowersToHits, fTracks, fTracksToHits, mvapid::MVAAlg::SortedObj::hitMap, anab::MVAPIDResult::isStoppingReco, anab::MVAPIDResult::isTrack, anab::MVAPIDResult::length, mvapid::MVAAlg::SortedObj::length, anab::MVAPIDResult::mvaOutput, anab::MVAPIDResult::nSpacePoints, PrepareEvent(), RunPCA(), SortShower(), and anab::MVAPIDResult::trackID.
Referenced by mvapid::MVAPID::produce().
|
private |
Definition at line 424 of file MVAAlg.cxx.
References mvapid::MVAAlg::SortedObj::dir, mvapid::MVAAlg::SortedObj::end, fCheatVertex, fHitsToSpacePoints, fShowersToHits, fVertex4Vect, mvapid::MVAAlg::SortedObj::hitMap, hits(), IsInActiveVol(), mvapid::MVAAlg::SortedObj::length, LinFitShower(), recob::Shower::ShowerStart(), mvapid::MVAAlg::SortedObj::start, and recob::SpacePoint::XYZ().
Referenced by RunPID().
|
private |
Definition at line 135 of file MVAAlg.h.
Referenced by CalcSegmentdEdxDist().
|
private |
Definition at line 170 of file MVAAlg.h.
Referenced by FitAndSortTrack(), MVAAlg(), PrepareEvent(), and SortShower().
|
private |
Definition at line 139 of file MVAAlg.h.
Referenced by GetDetectorEdges(), and IsInActiveVol().
|
private |
Definition at line 139 of file MVAAlg.h.
Referenced by GetDetectorEdges(), and IsInActiveVol().
|
private |
Definition at line 139 of file MVAAlg.h.
Referenced by GetDetectorEdges(), and IsInActiveVol().
|
private |
Definition at line 139 of file MVAAlg.h.
Referenced by GetDetectorEdges(), and IsInActiveVol().
|
private |
Definition at line 139 of file MVAAlg.h.
Referenced by GetDetectorEdges(), and IsInActiveVol().
|
private |
Definition at line 139 of file MVAAlg.h.
Referenced by GetDetectorEdges(), and IsInActiveVol().
|
private |
Definition at line 137 of file MVAAlg.h.
Referenced by CalcSegmentdEdxDist(), and PrepareEvent().
|
private |
Definition at line 146 of file MVAAlg.h.
Referenced by MVAAlg(), and PrepareEvent().
|
private |
Definition at line 153 of file MVAAlg.h.
Referenced by PrepareEvent().
|
private |
Definition at line 160 of file MVAAlg.h.
Referenced by _Var_Shape(), FitAndSortTrack(), PrepareEvent(), RunPCA(), and SortShower().
|
private |
|
private |
Definition at line 141 of file MVAAlg.h.
Referenced by CalcSegmentdEdxDist(), and GetWireNormals().
|
private |
Definition at line 142 of file MVAAlg.h.
Referenced by CalcSegmentdEdxDist(), and GetWireNormals().
|
private |
|
private |
|
private |
Definition at line 145 of file MVAAlg.h.
Referenced by MVAAlg(), and PrepareEvent().
|
private |
Definition at line 151 of file MVAAlg.h.
Referenced by PrepareEvent(), and RunPID().
|
private |
Definition at line 157 of file MVAAlg.h.
Referenced by PrepareEvent(), RunPID(), and SortShower().
|
private |
Definition at line 159 of file MVAAlg.h.
Referenced by LinFitShower(), and PrepareEvent().
|
private |
Definition at line 147 of file MVAAlg.h.
Referenced by MVAAlg(), and PrepareEvent().
|
private |
Definition at line 152 of file MVAAlg.h.
Referenced by PrepareEvent().
|
private |
Definition at line 161 of file MVAAlg.h.
Referenced by PrepareEvent().
|
private |
Definition at line 148 of file MVAAlg.h.
Referenced by MVAAlg(), and PrepareEvent().
|
private |
Definition at line 144 of file MVAAlg.h.
Referenced by MVAAlg(), and PrepareEvent().
|
private |
Definition at line 150 of file MVAAlg.h.
Referenced by PrepareEvent(), and RunPID().
|
private |
Definition at line 155 of file MVAAlg.h.
Referenced by FitAndSortTrack(), PrepareEvent(), and RunPID().
|
private |
Definition at line 156 of file MVAAlg.h.
Referenced by LinFit(), and PrepareEvent().
|
private |
Definition at line 172 of file MVAAlg.h.
Referenced by FitAndSortTrack(), PrepareEvent(), and SortShower().
|
private |