#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 () |
Private Member Functions inherited from cheat::BackTracker | |
BackTracker (const fhiclConfig &config, const cheat::ParticleInventory *partInv, const geo::GeometryCore *geom) | |
BackTracker (const fhicl::ParameterSet &pSet, const cheat::ParticleInventory *partInv, const geo::GeometryCore *geom) | |
BackTracker (BackTracker const &)=delete | |
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 |
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 > | FindSimChannelPtr (raw::ChannelID_t channel) const |
Returns the cached sim::SimChannel on the specified channel . More... | |
art::Ptr< sim::SimChannel > | FindSimChannel (raw::ChannelID_t channel) const |
Returns the cached sim::SimChannel on the specified channel . More... | |
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 > const &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 |
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 27 of file BackTrackerService.cc.
cheat::BackTrackerService::BackTrackerService | ( | const fhiclConfig & | config, |
art::ActivityRegistry & | reg | ||
) |
Definition at line 37 of file BackTrackerService.cc.
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 161 of file BackTrackerService.cc.
art::Ptr< sim::SimChannel > cheat::BackTrackerService::FindSimChannel | ( | raw::ChannelID_t | channel | ) | const |
Definition at line 152 of file BackTrackerService.cc.
std::set< int > cheat::BackTrackerService::GetSetOfEveIds | ( | ) | const |
Definition at line 390 of file BackTrackerService.cc.
std::set< int > cheat::BackTrackerService::GetSetOfEveIds | ( | detinfo::DetectorClocksData const & | clockData, |
std::vector< art::Ptr< recob::Hit >> const & | hits | ||
) | const |
Definition at line 409 of file BackTrackerService.cc.
std::set< int > cheat::BackTrackerService::GetSetOfTrackIds | ( | ) | const |
Definition at line 381 of file BackTrackerService.cc.
std::set< int > cheat::BackTrackerService::GetSetOfTrackIds | ( | detinfo::DetectorClocksData const & | clockData, |
std::vector< art::Ptr< recob::Hit >> const & | hits | ||
) | const |
Definition at line 399 of file BackTrackerService.cc.
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 367 of file BackTrackerService.cc.
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 343 of file BackTrackerService.cc.
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 354 of file BackTrackerService.cc.
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 332 of file BackTrackerService.cc.
std::vector< sim::IDE > cheat::BackTrackerService::HitToAvgSimIDEs | ( | detinfo::DetectorClocksData const & | clockData, |
recob::Hit const & | hit | ||
) | const |
Definition at line 254 of file BackTrackerService.cc.
std::vector< sim::IDE > cheat::BackTrackerService::HitToAvgSimIDEs | ( | detinfo::DetectorClocksData const & | clockData, |
art::Ptr< recob::Hit > | hit | ||
) | const |
Definition at line 264 of file BackTrackerService.cc.
std::vector< sim::TrackIDE > cheat::BackTrackerService::HitToEveTrackIDEs | ( | detinfo::DetectorClocksData const & | clockData, |
recob::Hit const & | hit | ||
) | const |
Definition at line 203 of file BackTrackerService.cc.
std::vector< sim::TrackIDE > cheat::BackTrackerService::HitToEveTrackIDEs | ( | detinfo::DetectorClocksData const & | clockData, |
art::Ptr< recob::Hit > const & | hit | ||
) | const |
Definition at line 213 of file BackTrackerService.cc.
std::vector< const sim::IDE * > cheat::BackTrackerService::HitToSimIDEs_Ps | ( | detinfo::DetectorClocksData const & | clockData, |
recob::Hit const & | hit | ||
) | const |
Definition at line 274 of file BackTrackerService.cc.
std::vector< const sim::IDE * > cheat::BackTrackerService::HitToSimIDEs_Ps | ( | detinfo::DetectorClocksData const & | clockData, |
art::Ptr< recob::Hit > const & | hit | ||
) | const |
Definition at line 284 of file BackTrackerService.cc.
std::vector< sim::TrackIDE > cheat::BackTrackerService::HitToTrackIDEs | ( | detinfo::DetectorClocksData const & | clockData, |
recob::Hit const & | hit | ||
) | const |
Definition at line 173 of file BackTrackerService.cc.
std::vector< sim::TrackIDE > cheat::BackTrackerService::HitToTrackIDEs | ( | detinfo::DetectorClocksData const & | clockData, |
art::Ptr< recob::Hit > const & | hit | ||
) | const |
Definition at line 183 of file BackTrackerService.cc.
std::vector< int > cheat::BackTrackerService::HitToTrackIds | ( | detinfo::DetectorClocksData const & | clockData, |
recob::Hit const & | hit | ||
) | const |
Definition at line 193 of file BackTrackerService.cc.
std::vector< double > cheat::BackTrackerService::HitToXYZ | ( | detinfo::DetectorClocksData const & | clockData, |
const recob::Hit & | hit | ||
) | const |
Definition at line 312 of file BackTrackerService.cc.
std::vector< double > cheat::BackTrackerService::HitToXYZ | ( | detinfo::DetectorClocksData const & | clockData, |
art::Ptr< recob::Hit > const & | hit | ||
) | const |
Definition at line 322 of file BackTrackerService.cc.
|
private |
Definition at line 75 of file BackTrackerService.cc.
|
private |
Definition at line 63 of file BackTrackerService.cc.
|
private |
Definition at line 82 of file BackTrackerService.cc.
|
private |
Definition at line 91 of file BackTrackerService.cc.
|
inlineprivate |
Definition at line 168 of file BackTrackerService.h.
|
inline |
Definition at line 55 of file BackTrackerService.h.
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 56 of file BackTrackerService.cc.
const std::vector< art::Ptr< sim::SimChannel > > & cheat::BackTrackerService::SimChannels | ( | ) | const |
Definition at line 125 of file BackTrackerService.cc.
std::vector< double > cheat::BackTrackerService::SimIDEsToXYZ | ( | std::vector< sim::IDE > const & | ides | ) | const |
Definition at line 294 of file BackTrackerService.cc.
std::vector< double > cheat::BackTrackerService::SimIDEsToXYZ | ( | std::vector< const sim::IDE * > const & | ide_Ps | ) | const |
Definition at line 303 of file BackTrackerService.cc.
std::vector< double > cheat::BackTrackerService::SpacePointHitsToWeightedXYZ | ( | detinfo::DetectorClocksData const & | clockData, |
std::vector< art::Ptr< recob::Hit >> const & | hits | ||
) | const |
Definition at line 419 of file BackTrackerService.cc.
std::vector< art::Ptr< recob::Hit > > cheat::BackTrackerService::SpacePointToHits_Ps | ( | art::Ptr< recob::SpacePoint > const & | spt | ) | const |
Definition at line 429 of file BackTrackerService.cc.
std::vector< double > cheat::BackTrackerService::SpacePointToXYZ | ( | detinfo::DetectorClocksData const & | clockData, |
art::Ptr< recob::SpacePoint > const & | spt | ||
) | const |
Definition at line 444 of file BackTrackerService.cc.
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 243 of file BackTrackerService.cc.
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 223 of file BackTrackerService.cc.
std::vector< const sim::IDE * > cheat::BackTrackerService::TrackIdToSimIDEs_Ps | ( | int const & | id | ) | const |
Definition at line 134 of file BackTrackerService.cc.
std::vector< const sim::IDE * > cheat::BackTrackerService::TrackIdToSimIDEs_Ps | ( | int const & | id, |
const geo::View_t | view | ||
) | const |
Definition at line 143 of file BackTrackerService.cc.
|
private |
Definition at line 157 of file BackTrackerService.h.