#include <BackTracker.h>
Classes | |
struct | fhiclConfig |
Public Member Functions | |
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 cheat::ParticleInventory * | fPartInv |
const geo::GeometryCore * | fGeom |
const art::InputTag | fG4ModuleLabel |
const art::InputTag | fSimChannelModuleLabel |
const art::InputTag | fHitLabel |
const double | fMinHitEnergyFraction |
const bool | fOverrideRealData |
const double | fHitTimeRMS |
std::vector< art::Ptr < sim::SimChannel > > | fSimChannels |
Definition at line 39 of file BackTracker.h.
cheat::BackTracker::BackTracker | ( | const fhiclConfig & | config, |
const cheat::ParticleInventory * | partInv, | ||
const geo::GeometryCore * | geom | ||
) |
Definition at line 25 of file BackTracker.cc.
cheat::BackTracker::BackTracker | ( | const fhicl::ParameterSet & | pSet, |
const cheat::ParticleInventory * | partInv, | ||
const geo::GeometryCore * | geom | ||
) |
Definition at line 39 of file BackTracker.cc.
|
delete |
|
inline |
Definition at line 94 of file BackTracker.h.
std::vector< sim::TrackIDE > cheat::BackTracker::ChannelToTrackIDEs | ( | detinfo::DetectorClocksData const & | clockData, |
raw::ChannelID_t | channel, | ||
const double | hit_start_time, | ||
const double | hit_end_time | ||
) | const |
Definition at line 131 of file BackTracker.cc.
void cheat::BackTracker::ClearEvent | ( | ) |
Definition at line 55 of file BackTracker.cc.
art::Ptr< sim::SimChannel > cheat::BackTracker::FindSimChannel | ( | raw::ChannelID_t | channel | ) | const |
Returns the cached sim::SimChannel
on the specified channel
.
channel | ID of the TPC channel to find |
sim::SimChannel
cet::exception | (category: "BackTracker" ) if no sim::SimChannel for the requested channel found |
Definition at line 122 of file BackTracker.cc.
art::Ptr< sim::SimChannel > cheat::BackTracker::FindSimChannelPtr | ( | raw::ChannelID_t | channel | ) | const |
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 108 of file BackTracker.cc.
|
inline |
Definition at line 247 of file BackTracker.h.
std::set< int > cheat::BackTracker::GetSetOfEveIds | ( | detinfo::DetectorClocksData const & | clockData, |
std::vector< art::Ptr< recob::Hit >> const & | hits | ||
) | const |
Definition at line 551 of file BackTracker.cc.
|
inline |
Definition at line 242 of file BackTracker.h.
std::set< int > cheat::BackTracker::GetSetOfTrackIds | ( | detinfo::DetectorClocksData const & | clockData, |
std::vector< art::Ptr< recob::Hit >> const & | hits | ||
) | const |
Definition at line 533 of file BackTracker.cc.
double cheat::BackTracker::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 497 of file BackTracker.cc.
double cheat::BackTracker::HitChargeCollectionPurity | ( | detinfo::DetectorClocksData const & | clockData, |
std::set< int > const & | trackIds, | ||
std::vector< art::Ptr< recob::Hit >> const & | hits | ||
) | const |
Definition at line 437 of file BackTracker.cc.
double cheat::BackTracker::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 458 of file BackTracker.cc.
double cheat::BackTracker::HitCollectionPurity | ( | detinfo::DetectorClocksData const & | clockData, |
std::set< int > const & | trackIds, | ||
std::vector< art::Ptr< recob::Hit >> const & | hits | ||
) | const |
Definition at line 417 of file BackTracker.cc.
std::vector< sim::IDE > cheat::BackTracker::HitToAvgSimIDEs | ( | detinfo::DetectorClocksData const & | clockData, |
recob::Hit const & | hit | ||
) | const |
Definition at line 305 of file BackTracker.cc.
|
inline |
Definition at line 196 of file BackTracker.h.
std::vector< sim::TrackIDE > cheat::BackTracker::HitToEveTrackIDEs | ( | detinfo::DetectorClocksData const & | clockData, |
recob::Hit const & | hit | ||
) | const |
Definition at line 201 of file BackTracker.cc.
|
inline |
Definition at line 175 of file BackTracker.h.
std::vector< const sim::IDE * > cheat::BackTracker::HitToSimIDEs_Ps | ( | detinfo::DetectorClocksData const & | clockData, |
recob::Hit const & | hit | ||
) | const |
Definition at line 320 of file BackTracker.cc.
|
inline |
Definition at line 205 of file BackTracker.h.
std::vector< sim::TrackIDE > cheat::BackTracker::HitToTrackIDEs | ( | detinfo::DetectorClocksData const & | clockData, |
recob::Hit const & | hit | ||
) | const |
Definition at line 178 of file BackTracker.cc.
|
inline |
Definition at line 161 of file BackTracker.h.
std::vector< int > cheat::BackTracker::HitToTrackIds | ( | detinfo::DetectorClocksData const & | clockData, |
recob::Hit const & | hit | ||
) | const |
Definition at line 188 of file BackTracker.cc.
std::vector< double > cheat::BackTracker::HitToXYZ | ( | detinfo::DetectorClocksData const & | clockData, |
const recob::Hit & | hit | ||
) | const |
Definition at line 409 of file BackTracker.cc.
|
inline |
Definition at line 217 of file BackTracker.h.
void cheat::BackTracker::PrepEvent | ( | const Evt & | evt | ) |
void cheat::BackTracker::PrepSimChannels | ( | const Evt & | evt | ) |
|
inline |
Definition at line 120 of file BackTracker.h.
|
inline |
Definition at line 114 of file BackTracker.h.
std::vector< double > cheat::BackTracker::SimIDEsToXYZ | ( | std::vector< sim::IDE > const & | ides | ) | const |
Definition at line 376 of file BackTracker.cc.
std::vector< double > cheat::BackTracker::SimIDEsToXYZ | ( | std::vector< const sim::IDE * > const & | ide_Ps | ) | const |
Definition at line 398 of file BackTracker.cc.
std::vector< double > cheat::BackTracker::SpacePointHitsToWeightedXYZ | ( | detinfo::DetectorClocksData const & | clockData, |
std::vector< art::Ptr< recob::Hit >> const & | hits | ||
) | const |
Definition at line 566 of file BackTracker.cc.
std::vector<art::Ptr<recob::Hit> > cheat::BackTracker::SpacePointToHits_Ps | ( | art::Ptr< recob::SpacePoint > const & | spt, |
const Evt & | evt | ||
) | const |
std::vector<double> cheat::BackTracker::SpacePointToXYZ | ( | detinfo::DetectorClocksData const & | clockData, |
art::Ptr< recob::SpacePoint > const & | spt, | ||
const Evt & | evt | ||
) | const |
std::vector< std::vector< art::Ptr< recob::Hit > > > cheat::BackTracker::TrackIdsToHits_Ps | ( | detinfo::DetectorClocksData const & | clockData, |
std::vector< int > const & | tkIds, | ||
std::vector< art::Ptr< recob::Hit >> const & | hitsIn | ||
) | const |
Definition at line 262 of file BackTracker.cc.
std::vector< art::Ptr< recob::Hit > > cheat::BackTracker::TrackIdToHits_Ps | ( | detinfo::DetectorClocksData const & | clockData, |
int | tkId, | ||
std::vector< art::Ptr< recob::Hit >> const & | hitsIn | ||
) | const |
Definition at line 235 of file BackTracker.cc.
std::vector< const sim::IDE * > cheat::BackTracker::TrackIdToSimIDEs_Ps | ( | int const & | id | ) | const |
Definition at line 63 of file BackTracker.cc.
std::vector< const sim::IDE * > cheat::BackTracker::TrackIdToSimIDEs_Ps | ( | int const & | id, |
const geo::View_t | view | ||
) | const |
Definition at line 87 of file BackTracker.cc.
|
private |
Definition at line 264 of file BackTracker.h.
|
private |
Definition at line 263 of file BackTracker.h.
|
private |
Definition at line 266 of file BackTracker.h.
|
private |
Definition at line 269 of file BackTracker.h.
|
private |
Definition at line 267 of file BackTracker.h.
|
private |
Definition at line 268 of file BackTracker.h.
|
private |
Definition at line 262 of file BackTracker.h.
|
private |
Definition at line 265 of file BackTracker.h.
|
mutableprivate |
Definition at line 271 of file BackTracker.h.