LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
#include "BackTrackerService.h"
Classes | |
struct | fhiclConfig |
Public Types | |
using | provider_type = BackTracker |
Public Member Functions | |
const provider_type * | provider () const |
BackTrackerService (const fhicl::ParameterSet &pSet, art::ActivityRegistry ®) | |
BackTrackerService (const fhiclConfig &config, art::ActivityRegistry ®) | |
void | Rebuild (const art::Event &evt) |
const std::vector< art::Ptr< sim::SimChannel > > & | SimChannels () const |
std::vector< const sim::IDE * > | TrackIdToSimIDEs_Ps (int const &id) const |
std::vector< const sim::IDE * > | TrackIdToSimIDEs_Ps (int const &id, const geo::View_t view) const |
art::Ptr< sim::SimChannel > | FindSimChannel (raw::ChannelID_t channel) const |
std::vector< sim::TrackIDE > | ChannelToTrackIDEs (detinfo::DetectorClocksData const &clockData, raw::ChannelID_t channel, const double hit_start_time, const double hit_end_time) const |
std::vector< sim::TrackIDE > | HitToTrackIDEs (detinfo::DetectorClocksData const &clockData, recob::Hit const &hit) const |
std::vector< sim::TrackIDE > | HitToTrackIDEs (detinfo::DetectorClocksData const &clockData, art::Ptr< recob::Hit > const &hit) const |
std::vector< int > | HitToTrackIds (detinfo::DetectorClocksData const &clockData, recob::Hit const &hit) const |
std::vector< sim::TrackIDE > | HitToEveTrackIDEs (detinfo::DetectorClocksData const &clockData, recob::Hit const &hit) const |
std::vector< sim::TrackIDE > | HitToEveTrackIDEs (detinfo::DetectorClocksData const &clockData, art::Ptr< recob::Hit > const &hit) const |
std::vector< art::Ptr< recob::Hit > > | TrackIdToHits_Ps (detinfo::DetectorClocksData const &clockData, int tkId, std::vector< art::Ptr< recob::Hit >> const &hitsIn) const |
std::vector< std::vector< art::Ptr< recob::Hit > > > | TrackIdsToHits_Ps (detinfo::DetectorClocksData const &clockData, std::vector< int > const &tkIds, std::vector< art::Ptr< recob::Hit >> const &hitsIn) const |
std::vector< sim::IDE > | HitToAvgSimIDEs (detinfo::DetectorClocksData const &clockData, recob::Hit const &hit) const |
std::vector< sim::IDE > | HitToAvgSimIDEs (detinfo::DetectorClocksData const &clockData, art::Ptr< recob::Hit > hit) const |
std::vector< const sim::IDE * > | HitToSimIDEs_Ps (detinfo::DetectorClocksData const &clockData, recob::Hit const &hit) const |
std::vector< const sim::IDE * > | HitToSimIDEs_Ps (detinfo::DetectorClocksData const &clockData, art::Ptr< recob::Hit > const &hit) const |
std::vector< double > | SimIDEsToXYZ (std::vector< sim::IDE > const &ides) const |
std::vector< double > | SimIDEsToXYZ (std::vector< const sim::IDE * > const &ide_Ps) const |
std::vector< double > | HitToXYZ (detinfo::DetectorClocksData const &clockData, const recob::Hit &hit) const |
std::vector< double > | HitToXYZ (detinfo::DetectorClocksData const &clockData, art::Ptr< recob::Hit > const &hit) const |
double | HitCollectionPurity (detinfo::DetectorClocksData const &clockData, std::set< int > const &trackIds, std::vector< art::Ptr< recob::Hit >> const &hits) const |
double | HitChargeCollectionPurity (detinfo::DetectorClocksData const &clockData, std::set< int > const &trackIds, std::vector< art::Ptr< recob::Hit >> const &hits) const |
double | HitCollectionEfficiency (detinfo::DetectorClocksData const &clockData, std::set< int > const &trackIds, std::vector< art::Ptr< recob::Hit >> const &hits, std::vector< art::Ptr< recob::Hit >> const &allhits, geo::View_t const &view) const |
double | HitChargeCollectionEfficiency (detinfo::DetectorClocksData const &clockData, std::set< int > const &trackIds, std::vector< art::Ptr< recob::Hit >> const &hits, std::vector< art::Ptr< recob::Hit >> const &allhits, geo::View_t const &view) const |
std::set< int > | GetSetOfTrackIds () const |
std::set< int > | GetSetOfEveIds () const |
std::set< int > | GetSetOfTrackIds (detinfo::DetectorClocksData const &clockData, std::vector< art::Ptr< recob::Hit >> const &hits) const |
std::set< int > | GetSetOfEveIds (detinfo::DetectorClocksData const &clockData, std::vector< art::Ptr< recob::Hit >> const &hits) const |
std::vector< double > | SpacePointHitsToWeightedXYZ (detinfo::DetectorClocksData const &clockData, std::vector< art::Ptr< recob::Hit >> const &hits) const |
std::vector< art::Ptr< recob::Hit > > | SpacePointToHits_Ps (art::Ptr< recob::SpacePoint > const &spt) const |
std::vector< double > | SpacePointToXYZ (detinfo::DetectorClocksData const &clockData, art::Ptr< recob::SpacePoint > const &spt) const |
Private Member Functions | |
void | priv_PrepEvent (const art::Event &evt, art::ScheduleContext) |
void | priv_PrepSimChannels (const art::Event &evt) |
void | priv_PrepFailed () |
bool | priv_CanRun (const art::Event &evt) |
bool | priv_SimChannelsReady () |
template<typename Evt > | |
void | PrepEvent (const Evt &evt) |
template<typename Evt > | |
void | PrepSimChannels (const Evt &evt) |
template<typename Evt > | |
bool | CanRun (const Evt &evt) |
template<typename Evt > | |
std::vector< art::Ptr< recob::Hit > > | SpacePointToHits_Ps (art::Ptr< recob::SpacePoint > const &spt, const Evt &evt) const |
template<typename Evt > | |
std::vector< double > | SpacePointToXYZ (detinfo::DetectorClocksData const &clockData, art::Ptr< recob::SpacePoint > const &spt, const Evt &evt) const |
void | ClearEvent () |
bool | SimChannelsReady () const |
art::Ptr< sim::SimChannel > | FindSimChannelPtr (raw::ChannelID_t channel) const |
Returns the cached sim::SimChannel on the specified channel . More... | |
std::vector< sim::IDE > | HitToAvgSimIDEs (detinfo::DetectorClocksData const &clockData, art::Ptr< recob::Hit > const &hit) const |
Private Attributes | |
const art::Event * | fEvt = nullptr |
Definition at line 45 of file BackTrackerService.h.
Definition at line 53 of file BackTrackerService.h.
cheat::BackTrackerService::BackTrackerService | ( | const fhicl::ParameterSet & | pSet, |
art::ActivityRegistry & | reg | ||
) |
Definition at line 26 of file BackTrackerService.cc.
References priv_PrepEvent(), and art::ActivityRegistry::sPreProcessEvent.
cheat::BackTrackerService::BackTrackerService | ( | const fhiclConfig & | config, |
art::ActivityRegistry & | reg | ||
) |
Definition at line 36 of file BackTrackerService.cc.
References priv_PrepEvent(), and art::ActivityRegistry::sPreProcessEvent.
|
inlineinherited |
std::vector< sim::TrackIDE > cheat::BackTrackerService::ChannelToTrackIDEs | ( | detinfo::DetectorClocksData const & | clockData, |
raw::ChannelID_t | channel, | ||
const double | hit_start_time, | ||
const double | hit_end_time | ||
) | const |
Definition at line 151 of file BackTrackerService.cc.
References cheat::BackTracker::ChannelToTrackIDEs().
Referenced by tca::GetOrigin().
|
inherited |
Definition at line 54 of file BackTracker.cc.
References cheat::BackTracker::fSimChannels.
Referenced by priv_PrepEvent().
art::Ptr< sim::SimChannel > cheat::BackTrackerService::FindSimChannel | ( | raw::ChannelID_t | channel | ) | const |
Definition at line 143 of file BackTrackerService.cc.
References cheat::BackTracker::FindSimChannel().
|
inherited |
Returns the cached sim::SimChannel
on the specified channel
.
channel | ID of the TPC channel to find |
sim::SimChannel
, or an null pointer if none Definition at line 105 of file BackTracker.cc.
References cheat::BackTracker::fSimChannels.
Referenced by cheat::BackTracker::ChannelToTrackIDEs(), and cheat::BackTracker::FindSimChannel().
std::set< int > cheat::BackTrackerService::GetSetOfEveIds | ( | ) | const |
Definition at line 374 of file BackTrackerService.cc.
References cheat::BackTracker::GetSetOfEveIds().
std::set< int > cheat::BackTrackerService::GetSetOfEveIds | ( | detinfo::DetectorClocksData const & | clockData, |
std::vector< art::Ptr< recob::Hit >> const & | hits | ||
) | const |
Definition at line 392 of file BackTrackerService.cc.
References cheat::BackTracker::GetSetOfEveIds(), and hits().
std::set< int > cheat::BackTrackerService::GetSetOfTrackIds | ( | ) | const |
Definition at line 366 of file BackTrackerService.cc.
References cheat::BackTracker::GetSetOfTrackIds().
Referenced by cheat::RecoCheckAna::CheckReco(), and cheat::RecoCheckAna::FillResults().
std::set< int > cheat::BackTrackerService::GetSetOfTrackIds | ( | detinfo::DetectorClocksData const & | clockData, |
std::vector< art::Ptr< recob::Hit >> const & | hits | ||
) | const |
Definition at line 382 of file BackTrackerService.cc.
References cheat::BackTracker::GetSetOfTrackIds(), and hits().
double cheat::BackTrackerService::HitChargeCollectionEfficiency | ( | detinfo::DetectorClocksData const & | clockData, |
std::set< int > const & | trackIds, | ||
std::vector< art::Ptr< recob::Hit >> const & | hits, | ||
std::vector< art::Ptr< recob::Hit >> const & | allhits, | ||
geo::View_t const & | view | ||
) | const |
Definition at line 353 of file BackTrackerService.cc.
References cheat::BackTracker::HitChargeCollectionEfficiency(), and hits().
double cheat::BackTrackerService::HitChargeCollectionPurity | ( | detinfo::DetectorClocksData const & | clockData, |
std::set< int > const & | trackIds, | ||
std::vector< art::Ptr< recob::Hit >> const & | hits | ||
) | const |
Definition at line 329 of file BackTrackerService.cc.
References cheat::BackTracker::HitChargeCollectionPurity(), and hits().
double cheat::BackTrackerService::HitCollectionEfficiency | ( | detinfo::DetectorClocksData const & | clockData, |
std::set< int > const & | trackIds, | ||
std::vector< art::Ptr< recob::Hit >> const & | hits, | ||
std::vector< art::Ptr< recob::Hit >> const & | allhits, | ||
geo::View_t const & | view | ||
) | const |
Definition at line 340 of file BackTrackerService.cc.
References cheat::BackTracker::HitCollectionEfficiency(), and hits().
Referenced by cheat::CheckBackTracking::analyze(), trkf::TrackAna::analyze(), cheat::RecoCheckAna::CheckReco(), cheat::RecoCheckAna::CheckRecoEvents(), and cheat::RecoCheckAna::CheckRecoVertices().
double cheat::BackTrackerService::HitCollectionPurity | ( | detinfo::DetectorClocksData const & | clockData, |
std::set< int > const & | trackIds, | ||
std::vector< art::Ptr< recob::Hit >> const & | hits | ||
) | const |
Definition at line 318 of file BackTrackerService.cc.
References cheat::BackTracker::HitCollectionPurity(), and hits().
Referenced by cheat::CheckBackTracking::analyze(), trkf::TrackAna::analyze(), cheat::RecoCheckAna::CheckReco(), cheat::RecoCheckAna::CheckRecoEvents(), and cheat::RecoCheckAna::CheckRecoVertices().
std::vector< sim::IDE > cheat::BackTrackerService::HitToAvgSimIDEs | ( | detinfo::DetectorClocksData const & | clockData, |
recob::Hit const & | hit | ||
) | const |
Definition at line 243 of file BackTrackerService.cc.
References cheat::BackTracker::HitToAvgSimIDEs().
Referenced by trkf::SpacePointAlg::makeSpacePoints().
std::vector< sim::IDE > cheat::BackTrackerService::HitToAvgSimIDEs | ( | detinfo::DetectorClocksData const & | clockData, |
art::Ptr< recob::Hit > | hit | ||
) | const |
Definition at line 253 of file BackTrackerService.cc.
References cheat::BackTracker::HitToAvgSimIDEs().
|
inlineinherited |
Definition at line 183 of file BackTracker.h.
std::vector< sim::TrackIDE > cheat::BackTrackerService::HitToEveTrackIDEs | ( | detinfo::DetectorClocksData const & | clockData, |
recob::Hit const & | hit | ||
) | const |
Definition at line 192 of file BackTrackerService.cc.
References cheat::BackTracker::HitToEveTrackIDEs().
Referenced by cheat::CheckBackTracking::analyze(), cluster::DBclusterAna::analyze(), DUNE::NeutrinoShowerEff::checkCNNtrkshw(), cluster::ClusterCheater::produce(), shower::TCShowerTemplateMaker::showerProfileTrue(), shower::TCShowerAnalysis::truthMatcher(), and DUNE::NeutrinoShowerEff::truthMatcher().
std::vector< sim::TrackIDE > cheat::BackTrackerService::HitToEveTrackIDEs | ( | detinfo::DetectorClocksData const & | clockData, |
art::Ptr< recob::Hit > const & | hit | ||
) | const |
Definition at line 202 of file BackTrackerService.cc.
References cheat::BackTracker::HitToEveTrackIDEs().
std::vector< const sim::IDE * > cheat::BackTrackerService::HitToSimIDEs_Ps | ( | detinfo::DetectorClocksData const & | clockData, |
recob::Hit const & | hit | ||
) | const |
Definition at line 263 of file BackTrackerService.cc.
References cheat::BackTracker::HitToSimIDEs_Ps().
Referenced by hit::DisambigCheater::InitHitToWids().
std::vector< const sim::IDE * > cheat::BackTrackerService::HitToSimIDEs_Ps | ( | detinfo::DetectorClocksData const & | clockData, |
art::Ptr< recob::Hit > const & | hit | ||
) | const |
Definition at line 273 of file BackTrackerService.cc.
References cheat::BackTracker::HitToSimIDEs_Ps().
std::vector< sim::TrackIDE > cheat::BackTrackerService::HitToTrackIDEs | ( | detinfo::DetectorClocksData const & | clockData, |
recob::Hit const & | hit | ||
) | const |
Definition at line 163 of file BackTrackerService.cc.
References cheat::BackTracker::HitToTrackIDEs().
Referenced by cheat::CheckBackTracking::analyze(), hit::GausHitFinderAna::analyze(), cluster::DBclusterAna::analyze(), hit::HitFinderAna::analyze(), cluster::ClusterTrackAna::analyze(), trkf::TrackAna::anaStitch(), TruthMatchUtils::FillG4IDToEnergyDepositMap(), cheat::RecoCheckAna::FillResults(), trkf::TrackKalmanCheater::produce(), t0::MCTruthT0Matching::produce(), shower::LArPandoraShowerCheatingAlg::TrueParticleID(), shower::LArPandoraShowerCheatingAlg::TrueParticleIDFromTrueChain(), DUNE::NeutrinoTrackingEff::truthMatcher(), and DUNE::MuonTrackingEff::truthMatcher().
std::vector< sim::TrackIDE > cheat::BackTrackerService::HitToTrackIDEs | ( | detinfo::DetectorClocksData const & | clockData, |
art::Ptr< recob::Hit > const & | hit | ||
) | const |
Definition at line 173 of file BackTrackerService.cc.
References cheat::BackTracker::HitToTrackIDEs().
std::vector< int > cheat::BackTrackerService::HitToTrackIds | ( | detinfo::DetectorClocksData const & | clockData, |
recob::Hit const & | hit | ||
) | const |
Definition at line 183 of file BackTrackerService.cc.
References cheat::BackTracker::HitToTrackIds().
std::vector< double > cheat::BackTrackerService::HitToXYZ | ( | detinfo::DetectorClocksData const & | clockData, |
const recob::Hit & | hit | ||
) | const |
Definition at line 300 of file BackTrackerService.cc.
References cheat::BackTracker::HitToXYZ().
Referenced by cheat::CheckBackTracking::analyze(), hit::MagDriftAna::analyze(), hit::GausHitFinderAna::analyze(), hit::HitFinderAna::analyze(), trkf::SpacePointAna::analyze(), HitToXYZ(), shwf::ShowerCheater::produce(), trkf::TrackCheater::produce(), apa::DisambigAlg::RunDisambig(), apa::DisambigAlg::TrivialDisambig(), and reco3d::PlotSpacePoints::TrueSpacePoints().
std::vector< double > cheat::BackTrackerService::HitToXYZ | ( | detinfo::DetectorClocksData const & | clockData, |
art::Ptr< recob::Hit > const & | hit | ||
) | const |
Definition at line 309 of file BackTrackerService.cc.
References HitToXYZ().
|
inherited |
|
inherited |
Referenced by priv_PrepSimChannels().
|
private |
Definition at line 71 of file BackTrackerService.cc.
References cheat::BackTracker::CanRun().
Referenced by priv_PrepEvent(), and priv_PrepSimChannels().
|
private |
Definition at line 60 of file BackTrackerService.cc.
References cheat::BackTracker::ClearEvent(), tca::evt, fEvt, priv_CanRun(), and priv_PrepSimChannels().
Referenced by BackTrackerService(), and Rebuild().
|
private |
Definition at line 77 of file BackTrackerService.cc.
Referenced by priv_PrepSimChannels().
|
private |
Definition at line 85 of file BackTrackerService.cc.
References cheat::BackTracker::PrepSimChannels(), priv_CanRun(), priv_PrepFailed(), and priv_SimChannelsReady().
Referenced by priv_PrepEvent().
|
inlineprivate |
Definition at line 163 of file BackTrackerService.h.
References DECLARE_ART_SERVICE.
Referenced by priv_PrepSimChannels().
|
inline |
Definition at line 54 of file BackTrackerService.h.
References tca::evt, hits(), and lar::dump::vector().
void cheat::BackTrackerService::Rebuild | ( | const art::Event & | evt | ) |
Event Rebuild Implimentation////////// This section contains the implimentation /// of all Prep templates from the service /// provider. ///
Definition at line 54 of file BackTrackerService.cc.
References art::ScheduleContext::invalid(), and priv_PrepEvent().
Referenced by cheat::BackTrackerLoader::produce().
const std::vector< art::Ptr< sim::SimChannel > > & cheat::BackTrackerService::SimChannels | ( | ) | const |
Definition at line 118 of file BackTrackerService.cc.
References cheat::BackTracker::SimChannels().
|
inlineinherited |
Definition at line 111 of file BackTracker.h.
std::vector< double > cheat::BackTrackerService::SimIDEsToXYZ | ( | std::vector< sim::IDE > const & | ides | ) | const |
Definition at line 283 of file BackTrackerService.cc.
References cheat::BackTracker::SimIDEsToXYZ().
Referenced by hit::DisambigCheater::InitHitToWids(), and trkf::SpacePointAlg::makeSpacePoints().
std::vector< double > cheat::BackTrackerService::SimIDEsToXYZ | ( | std::vector< const sim::IDE * > const & | ide_Ps | ) | const |
Definition at line 291 of file BackTrackerService.cc.
References cheat::BackTracker::SimIDEsToXYZ().
std::vector< double > cheat::BackTrackerService::SpacePointHitsToWeightedXYZ | ( | detinfo::DetectorClocksData const & | clockData, |
std::vector< art::Ptr< recob::Hit >> const & | hits | ||
) | const |
Definition at line 402 of file BackTrackerService.cc.
References hits(), and cheat::BackTracker::SpacePointHitsToWeightedXYZ().
Referenced by trkf::SpacePointAna::analyze().
|
inherited |
Referenced by SpacePointToHits_Ps().
std::vector< art::Ptr< recob::Hit > > cheat::BackTrackerService::SpacePointToHits_Ps | ( | art::Ptr< recob::SpacePoint > const & | spt | ) | const |
Definition at line 411 of file BackTrackerService.cc.
References fEvt, and cheat::BackTracker::SpacePointToHits_Ps().
|
inherited |
Referenced by SpacePointToXYZ().
std::vector< double > cheat::BackTrackerService::SpacePointToXYZ | ( | detinfo::DetectorClocksData const & | clockData, |
art::Ptr< recob::SpacePoint > const & | spt | ||
) | const |
Definition at line 426 of file BackTrackerService.cc.
References fEvt, and cheat::BackTracker::SpacePointToXYZ().
std::vector< std::vector< art::Ptr< recob::Hit > > > cheat::BackTrackerService::TrackIdsToHits_Ps | ( | detinfo::DetectorClocksData const & | clockData, |
std::vector< int > const & | tkIds, | ||
std::vector< art::Ptr< recob::Hit >> const & | hitsIn | ||
) | const |
Definition at line 232 of file BackTrackerService.cc.
References cheat::BackTracker::TrackIdsToHits_Ps().
Referenced by pfpf::PFPAna::analyze(), and cluster::ClusterAna::analyze().
std::vector< art::Ptr< recob::Hit > > cheat::BackTrackerService::TrackIdToHits_Ps | ( | detinfo::DetectorClocksData const & | clockData, |
int | tkId, | ||
std::vector< art::Ptr< recob::Hit >> const & | hitsIn | ||
) | const |
Definition at line 212 of file BackTrackerService.cc.
References cheat::BackTracker::TrackIdToHits_Ps().
std::vector< const sim::IDE * > cheat::BackTrackerService::TrackIdToSimIDEs_Ps | ( | int const & | id | ) | const |
Definition at line 126 of file BackTrackerService.cc.
References cheat::BackTracker::TrackIdToSimIDEs_Ps().
Referenced by cheat::RecoCheckAna::FillResults(), lcvn::AssignLabels::GetNeutralDaughterHitsRecursive(), and lcvn::AssignLabels::GetTopology().
std::vector< const sim::IDE * > cheat::BackTrackerService::TrackIdToSimIDEs_Ps | ( | int const & | id, |
const geo::View_t | view | ||
) | const |
Definition at line 134 of file BackTrackerService.cc.
References cheat::BackTracker::TrackIdToSimIDEs_Ps().
|
private |
Definition at line 153 of file BackTrackerService.h.
Referenced by priv_PrepEvent(), SpacePointToHits_Ps(), and SpacePointToXYZ().