![]() |
LArSoft
v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
|
#include "TCTruth.h"
Public Member Functions | |
| TruthMatcher () | |
| void | Initialize () |
| void | MatchTruth (std::vector< simb::MCParticle * > const &mcpList, std::vector< unsigned int > const &mcpListIndex) |
| void | MatchAndSum (std::vector< simb::MCParticle * > const &mcpList, std::vector< unsigned int > const &mcpListIndex) |
| void | PrintResults (int eventNum) const |
| bool | CanReconstruct (std::vector< unsigned int > mcpHits, unsigned short nDimensions, const geo::TPCID &inTPCID) |
| void | StudyShowerParents (TCSlice &slc, HistStuff &hist) |
| void | StudyElectrons (TCSlice &slc, const HistStuff &hist) |
| void | StudyPiZeros (TCSlice &slc, const HistStuff &hist) |
Public Attributes | |
| std::array< short, 5 > | EPCnts {{0}} |
| std::array< float, 5 > | TSums |
| std::array< float, 5 > | EPTSums |
| float | MCP_TSum |
| float | MCP_EPTSum |
| float | MCP_Cnt |
| float | MCP_PFP_Cnt |
| float | Prim_TSum |
| float | Prim_EPTSum |
| float | PFP_Cnt |
| unsigned short | nBadEP |
| unsigned short | nLongInPln |
| unsigned short | nLongMCP |
| unsigned short | nGoodLongMCP |
| std::array< unsigned short, 3 > | TruVxCounts |
|
inline |
Definition at line 27 of file TCTruth.h.
References CanReconstruct(), EPCnts, EPTSums, hist, Initialize(), MatchAndSum(), MatchTruth(), MCP_Cnt, MCP_EPTSum, MCP_PFP_Cnt, MCP_TSum, nBadEP, nGoodLongMCP, nLongInPln, nLongMCP, PFP_Cnt, Prim_EPTSum, Prim_TSum, PrintResults(), StudyElectrons(), StudyPiZeros(), StudyShowerParents(), TruVxCounts, and TSums.
| bool tca::TruthMatcher::CanReconstruct | ( | std::vector< unsigned int > | mcpHits, |
| unsigned short | nDimensions, | ||
| const geo::TPCID & | inTPCID | ||
| ) |
Definition at line 415 of file TCTruth.cxx.
References tca::TCEvent::allHits, geo::CryostatID::Cryostat, tca::evt, tca::TCConfig::geom, geo::GeometryCore::Nplanes(), tca::tcc, and geo::TPCID::TPC.
Referenced by MatchAndSum(), and TruthMatcher().
| void tca::TruthMatcher::Initialize | ( | ) |
Definition at line 20 of file TCTruth.cxx.
References EPCnts, EPTSums, nBadEP, TruVxCounts, and TSums.
Referenced by TruthMatcher().
| void tca::TruthMatcher::MatchAndSum | ( | std::vector< simb::MCParticle * > const & | mcpList, |
| std::vector< unsigned int > const & | mcpListIndex | ||
| ) |
Definition at line 120 of file TCTruth.cxx.
References tca::AlgBitNames, tca::TCEvent::allHits, CanReconstruct(), tca::DecodeCTP(), tca::ElectronLikelihood(), EPCnts, EPTSums, tca::TCEvent::eventsProcessed, tca::evt, tca::TCConfig::geom, geo::GeometryCore::IterateTPCIDs(), tca::kBragg, tca::kKilled, tca::kStudy3, tca::kUsedHits, tca::TCConfig::matchTruth, MCP_Cnt, MCP_EPTSum, MCP_PFP_Cnt, MCP_TSum, tca::TCConfig::modes, nBadEP, nGoodLongMCP, nLongInPln, geo::GeometryCore::Nplanes(), tca::PDGCodeIndex(), geo::PlaneID::Plane, tca::PrintPos(), tca::PutTrajHitsInVector(), tca::SetIntersection(), tca::slices, tca::tcc, tmp, util::flags::to_string(), geo::TPCID::TPC, and TSums.
Referenced by MatchTruth(), and TruthMatcher().
| void tca::TruthMatcher::MatchTruth | ( | std::vector< simb::MCParticle * > const & | mcpList, |
| std::vector< unsigned int > const & | mcpListIndex | ||
| ) |
Definition at line 31 of file TCTruth.cxx.
References tca::TCEvent::allHits, tca::ElectronLikelihood(), tca::TCEvent::eventsProcessed, tca::evt, tca::kKilled, tca::kStudy2, MatchAndSum(), tca::TCConfig::modes, tca::slices, tca::tcc, and tca::TrajPointSeparation().
Referenced by TruthMatcher().
| void tca::TruthMatcher::PrintResults | ( | int | eventNum | ) | const |
Definition at line 364 of file TCTruth.cxx.
References EPTSums, MCP_Cnt, MCP_EPTSum, MCP_TSum, nBadEP, nGoodLongMCP, nLongInPln, nLongMCP, Prim_EPTSum, Prim_TSum, TruVxCounts, and TSums.
Referenced by TruthMatcher().
Referenced by TruthMatcher().
Referenced by TruthMatcher().
Referenced by TruthMatcher().
| std::array<short, 5> tca::TruthMatcher::EPCnts {{0}} |
Definition at line 57 of file TCTruth.h.
Referenced by Initialize(), MatchAndSum(), and TruthMatcher().
| std::array<float, 5> tca::TruthMatcher::EPTSums |
Definition at line 59 of file TCTruth.h.
Referenced by Initialize(), MatchAndSum(), PrintResults(), and TruthMatcher().
| float tca::TruthMatcher::MCP_Cnt |
Definition at line 63 of file TCTruth.h.
Referenced by MatchAndSum(), PrintResults(), and TruthMatcher().
| float tca::TruthMatcher::MCP_EPTSum |
Definition at line 62 of file TCTruth.h.
Referenced by MatchAndSum(), PrintResults(), and TruthMatcher().
| float tca::TruthMatcher::MCP_PFP_Cnt |
Definition at line 64 of file TCTruth.h.
Referenced by MatchAndSum(), and TruthMatcher().
| float tca::TruthMatcher::MCP_TSum |
Definition at line 61 of file TCTruth.h.
Referenced by MatchAndSum(), PrintResults(), and TruthMatcher().
| unsigned short tca::TruthMatcher::nBadEP |
Definition at line 69 of file TCTruth.h.
Referenced by Initialize(), MatchAndSum(), PrintResults(), and TruthMatcher().
| unsigned short tca::TruthMatcher::nGoodLongMCP |
Definition at line 72 of file TCTruth.h.
Referenced by MatchAndSum(), PrintResults(), and TruthMatcher().
| unsigned short tca::TruthMatcher::nLongInPln |
Definition at line 70 of file TCTruth.h.
Referenced by MatchAndSum(), PrintResults(), and TruthMatcher().
| unsigned short tca::TruthMatcher::nLongMCP |
Definition at line 71 of file TCTruth.h.
Referenced by PrintResults(), and TruthMatcher().
| float tca::TruthMatcher::PFP_Cnt |
Definition at line 67 of file TCTruth.h.
Referenced by TruthMatcher().
| float tca::TruthMatcher::Prim_EPTSum |
Definition at line 66 of file TCTruth.h.
Referenced by PrintResults(), and TruthMatcher().
| float tca::TruthMatcher::Prim_TSum |
Definition at line 65 of file TCTruth.h.
Referenced by PrintResults(), and TruthMatcher().
| std::array<unsigned short, 3> tca::TruthMatcher::TruVxCounts |
Definition at line 78 of file TCTruth.h.
Referenced by Initialize(), PrintResults(), and TruthMatcher().
| std::array<float, 5> tca::TruthMatcher::TSums |
Definition at line 58 of file TCTruth.h.
Referenced by Initialize(), MatchAndSum(), PrintResults(), and TruthMatcher().