LArSoft
v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
|
#include "MVAAlg.h"
Classes | |
struct | SortedObj |
struct | SumDistance2 |
Public Member Functions | |
MVAAlg (fhicl::ParameterSet const &pset, const art::EDProducer *parentModule) | |
virtual | ~MVAAlg () |
void | GetDetectorEdges () |
void | GetWireNormals () |
void | reconfigure (fhicl::ParameterSet const &p) |
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) |
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 SortedObj &track, double start, double end) |
double | CalcSegmentdEdxDist (const SortedObj &track, double start, double end) |
double | CalcSegmentdEdxDistAtEnd (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, |
const art::EDProducer * | parentModule | ||
) |
Definition at line 28 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().
Referenced by mvapid::MVAAlg::SumDistance2::operator()().
|
virtual |
Definition at line 72 of file MVAAlg.cxx.
Referenced by mvapid::MVAAlg::SumDistance2::operator()().
|
private |
Definition at line 539 of file MVAAlg.cxx.
References mvapid::MVAAlg::SortedObj::dir, E, fHitsToSpacePoints, mvapid::MVAAlg::SortedObj::hitMap, mvapid::MVAAlg::SortedObj::length, max, mvapid::MVAAlg::SortedObj::start, and recob::SpacePoint::XYZ().
Referenced by mvapid::MVAAlg::SumDistance2::operator()(), and RunPID().
|
private |
Definition at line 618 of file MVAAlg.cxx.
References geo::CryostatID::Cryostat, 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(), CalcSegmentdEdxFrac(), and mvapid::MVAAlg::SumDistance2::operator()().
|
private |
Definition at line 612 of file MVAAlg.cxx.
References CalcSegmentdEdxDist(), mvapid::MVAAlg::SortedObj::end, and mvapid::MVAAlg::SortedObj::start.
Referenced by mvapid::MVAAlg::SumDistance2::operator()().
|
private |
Definition at line 606 of file MVAAlg.cxx.
References CalcSegmentdEdxDist(), mvapid::MVAAlg::SortedObj::end, and mvapid::MVAAlg::SortedObj::start.
Referenced by mvapid::MVAAlg::SumDistance2::operator()(), and RunPID().
|
private |
Definition at line 374 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(), and recob::SpacePoint::XYZ().
Referenced by mvapid::MVAAlg::SumDistance2::operator()(), and RunPID().
void mvapid::MVAAlg::GetDetectorEdges | ( | ) |
Definition at line 89 of file MVAAlg.cxx.
References fDetMaxX, fDetMaxY, fDetMaxZ, fDetMinX, fDetMinY, fDetMinZ, geo::BoxBoundedGeo::MaxX(), geo::BoxBoundedGeo::MaxY(), geo::BoxBoundedGeo::MaxZ(), geo::BoxBoundedGeo::MinX(), geo::BoxBoundedGeo::MinY(), geo::BoxBoundedGeo::MinZ(), geo::GeometryCore::TotalNTPC(), and geo::GeometryCore::TPC().
Referenced by mvapid::MVAPID::beginJob(), and mvapid::MVAAlg::SumDistance2::operator()().
void mvapid::MVAAlg::GetWireNormals | ( | ) |
Definition at line 118 of file MVAAlg.cxx.
References fNormToWiresY, fNormToWiresZ, geo::GeometryCore::IteratePlanes(), geo::GeometryCore::Nplanes(), and geo::GeometryCore::NTPC().
Referenced by mvapid::MVAPID::beginJob(), and mvapid::MVAAlg::SumDistance2::operator()().
|
private |
Definition at line 76 of file MVAAlg.cxx.
References fDetMaxX, fDetMaxY, fDetMaxZ, fDetMinX, fDetMinY, and fDetMinZ.
Referenced by FitAndSortTrack(), mvapid::MVAAlg::SumDistance2::operator()(), and SortShower().
|
private |
Definition at line 661 of file MVAAlg.cxx.
References recob::Track::End(), fTracksToSpacePoints, and recob::Track::Vertex().
Referenced by FitAndSortTrack(), and mvapid::MVAAlg::SumDistance2::operator()().
|
private |
Definition at line 708 of file MVAAlg.cxx.
References recob::Shower::Direction(), fShowersToSpacePoints, and recob::Shower::ShowerStart().
Referenced by mvapid::MVAAlg::SumDistance2::operator()(), and SortShower().
|
private |
Definition at line 272 of file MVAAlg.cxx.
References fCheatVertex, fEventT0, fHitLabel, fHits, fHitsToSpacePoints, fShowerLabel, fShowers, fShowersToHits, fShowersToSpacePoints, fSpacePointLabel, fSpacePoints, fSpacePointsToHits, fTrackingLabel, fTrackLabel, fTracks, fTracksToHits, fTracksToSpacePoints, fVertex4Vect, art::DataViewImpl::getByLabel(), and track.
Referenced by mvapid::MVAAlg::SumDistance2::operator()(), and RunPID().
void mvapid::MVAAlg::reconfigure | ( | fhicl::ParameterSet const & | p | ) |
Definition at line 74 of file MVAAlg.cxx.
Referenced by mvapid::MVAAlg::SumDistance2::operator()().
|
private |
Definition at line 513 of file MVAAlg.cxx.
References fHitsToSpacePoints, and hits().
Referenced by mvapid::MVAAlg::SumDistance2::operator()(), and 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 148 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, fParentModule, 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::MVAAlg::SumDistance2::operator()(), and mvapid::MVAPID::produce().
|
private |
Definition at line 437 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 mvapid::MVAAlg::SumDistance2::operator()(), and RunPID().
|
private |
Definition at line 125 of file MVAAlg.h.
Referenced by CalcSegmentdEdxDist().
|
private |
Definition at line 161 of file MVAAlg.h.
Referenced by FitAndSortTrack(), MVAAlg(), PrepareEvent(), and SortShower().
|
private |
Definition at line 129 of file MVAAlg.h.
Referenced by GetDetectorEdges(), and IsInActiveVol().
|
private |
Definition at line 129 of file MVAAlg.h.
Referenced by GetDetectorEdges(), and IsInActiveVol().
|
private |
Definition at line 129 of file MVAAlg.h.
Referenced by GetDetectorEdges(), and IsInActiveVol().
|
private |
Definition at line 129 of file MVAAlg.h.
Referenced by GetDetectorEdges(), and IsInActiveVol().
|
private |
Definition at line 129 of file MVAAlg.h.
Referenced by GetDetectorEdges(), and IsInActiveVol().
|
private |
Definition at line 129 of file MVAAlg.h.
Referenced by GetDetectorEdges(), and IsInActiveVol().
|
private |
Definition at line 127 of file MVAAlg.h.
Referenced by CalcSegmentdEdxDist(), and PrepareEvent().
|
private |
Definition at line 138 of file MVAAlg.h.
Referenced by MVAAlg(), and PrepareEvent().
|
private |
Definition at line 145 of file MVAAlg.h.
Referenced by PrepareEvent().
|
private |
Definition at line 151 of file MVAAlg.h.
Referenced by _Var_Shape(), FitAndSortTrack(), PrepareEvent(), RunPCA(), and SortShower().
|
private |
|
private |
Definition at line 131 of file MVAAlg.h.
Referenced by CalcSegmentdEdxDist(), and GetWireNormals().
|
private |
Definition at line 132 of file MVAAlg.h.
Referenced by CalcSegmentdEdxDist(), and GetWireNormals().
|
private |
|
private |
|
private |
|
private |
Definition at line 137 of file MVAAlg.h.
Referenced by MVAAlg(), and PrepareEvent().
|
private |
Definition at line 143 of file MVAAlg.h.
Referenced by PrepareEvent(), and RunPID().
|
private |
Definition at line 149 of file MVAAlg.h.
Referenced by PrepareEvent(), RunPID(), and SortShower().
|
private |
Definition at line 150 of file MVAAlg.h.
Referenced by LinFitShower(), and PrepareEvent().
|
private |
Definition at line 139 of file MVAAlg.h.
Referenced by MVAAlg(), and PrepareEvent().
|
private |
Definition at line 144 of file MVAAlg.h.
Referenced by PrepareEvent().
|
private |
Definition at line 152 of file MVAAlg.h.
Referenced by PrepareEvent().
|
private |
Definition at line 140 of file MVAAlg.h.
Referenced by MVAAlg(), and PrepareEvent().
|
private |
Definition at line 136 of file MVAAlg.h.
Referenced by MVAAlg(), and PrepareEvent().
|
private |
Definition at line 142 of file MVAAlg.h.
Referenced by PrepareEvent(), and RunPID().
|
private |
Definition at line 147 of file MVAAlg.h.
Referenced by FitAndSortTrack(), PrepareEvent(), and RunPID().
|
private |
Definition at line 148 of file MVAAlg.h.
Referenced by LinFit(), and PrepareEvent().
|
private |
Definition at line 163 of file MVAAlg.h.
Referenced by FitAndSortTrack(), PrepareEvent(), and SortShower().
|
private |