Classes | Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
cheat::BackTrackerService Class Reference

#include <BackTrackerService.h>

Inheritance diagram for cheat::BackTrackerService:
cheat::BackTracker

Classes

struct  fhiclConfig
 

Public Types

using provider_type = BackTracker
 

Public Member Functions

const provider_typeprovider () const
 
 BackTrackerService (const fhicl::ParameterSet &pSet, art::ActivityRegistry &reg)
 
 BackTrackerService (const fhiclConfig &config, art::ActivityRegistry &reg)
 
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::SimChannelFindSimChannel (raw::ChannelID_t channel) const
 
std::vector< sim::TrackIDEChannelToTrackIDEs (detinfo::DetectorClocksData const &clockData, raw::ChannelID_t channel, const double hit_start_time, const double hit_end_time) const
 
std::vector< sim::TrackIDEHitToTrackIDEs (detinfo::DetectorClocksData const &clockData, recob::Hit const &hit) const
 
std::vector< sim::TrackIDEHitToTrackIDEs (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::TrackIDEHitToEveTrackIDEs (detinfo::DetectorClocksData const &clockData, recob::Hit const &hit) const
 
std::vector< sim::TrackIDEHitToEveTrackIDEs (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::IDEHitToAvgSimIDEs (detinfo::DetectorClocksData const &clockData, recob::Hit const &hit) const
 
std::vector< sim::IDEHitToAvgSimIDEs (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::SimChannelFindSimChannelPtr (raw::ChannelID_t channel) const
 Returns the cached sim::SimChannel on the specified channel. More...
 
art::Ptr< sim::SimChannelFindSimChannel (raw::ChannelID_t channel) const
 Returns the cached sim::SimChannel on the specified channel. More...
 
std::vector< sim::TrackIDEChannelToTrackIDEs (detinfo::DetectorClocksData const &clockData, raw::ChannelID_t channel, const double hit_start_time, const double hit_end_time) const
 
std::vector< sim::TrackIDEHitToTrackIDEs (detinfo::DetectorClocksData const &clockData, recob::Hit const &hit) const
 
std::vector< sim::TrackIDEHitToTrackIDEs (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::TrackIDEHitToEveTrackIDEs (detinfo::DetectorClocksData const &clockData, recob::Hit const &hit) const
 
std::vector< sim::TrackIDEHitToEveTrackIDEs (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::IDEHitToAvgSimIDEs (detinfo::DetectorClocksData const &clockData, recob::Hit const &hit) const
 
std::vector< sim::IDEHitToAvgSimIDEs (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::EventfEvt = nullptr
 

Detailed Description

Definition at line 28 of file BackTrackerService.h.

Member Typedef Documentation

Definition at line 36 of file BackTrackerService.h.

Constructor & Destructor Documentation

cheat::BackTrackerService::BackTrackerService ( const fhicl::ParameterSet pSet,
art::ActivityRegistry reg 
)

Definition at line 27 of file BackTrackerService_service.cc.

29  : BackTracker(pSet.get<fhicl::ParameterSet>("BackTracker"),
30  lar::providerFrom<cheat::ParticleInventoryService>(),
31  lar::providerFrom<geo::Geometry>())
32  {
34  }
BackTracker(const fhiclConfig &config, const cheat::ParticleInventory *partInv, const geo::GeometryCore *geom)
Definition: BackTracker.cc:25
T get(std::string const &key) const
Definition: ParameterSet.h:271
void priv_PrepEvent(const art::Event &evt, art::ScheduleContext)
GlobalSignal< detail::SignalResponseType::FIFO, void(Event const &, ScheduleContext)> sPreProcessEvent
cheat::BackTrackerService::BackTrackerService ( const fhiclConfig config,
art::ActivityRegistry reg 
)

Definition at line 37 of file BackTrackerService_service.cc.

38  : BackTracker(config.BackTrackerTable(),
39  lar::providerFrom<cheat::ParticleInventoryService>(),
40  lar::providerFrom<geo::Geometry>())
41  {
42  // This line is only to be included until art/LArSoft discussion about lazy
43  // rebuild can be completed.
45  }
BackTracker(const fhiclConfig &config, const cheat::ParticleInventory *partInv, const geo::GeometryCore *geom)
Definition: BackTracker.cc:25
static Config * config
Definition: config.cpp:1054
void priv_PrepEvent(const art::Event &evt, art::ScheduleContext)
GlobalSignal< detail::SignalResponseType::FIFO, void(Event const &, ScheduleContext)> sPreProcessEvent

Member Function Documentation

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_service.cc.

165  {
166  // Removed until Lazy Rebuild works
167  // if(!this->priv_SimChannelsReady()){this->priv_PrepSimChannels();}
168  return BackTracker::ChannelToTrackIDEs(clockData, channel, hit_start_time, hit_end_time);
169  }
uint8_t channel
Definition: CRTFragment.hh:201
std::vector< sim::TrackIDE > ChannelToTrackIDEs(detinfo::DetectorClocksData const &clockData, raw::ChannelID_t channel, const double hit_start_time, const double hit_end_time) const
Definition: BackTracker.cc:131
art::Ptr< sim::SimChannel > cheat::BackTrackerService::FindSimChannel ( raw::ChannelID_t  channel) const

Definition at line 152 of file BackTrackerService_service.cc.

153  {
154  // Removed until Lazy Rebuild works
155  // if(!this->priv_SimChannelsReady()){this->priv_PrepSimChannels();}
157  }
uint8_t channel
Definition: CRTFragment.hh:201
art::Ptr< sim::SimChannel > FindSimChannel(raw::ChannelID_t channel) const
Returns the cached sim::SimChannel on the specified channel.
Definition: BackTracker.cc:122
std::set< int > cheat::BackTrackerService::GetSetOfEveIds ( ) const

Definition at line 390 of file BackTrackerService_service.cc.

391  {
392  // Removed until Lazy Rebuild works
393  // if(!this->priv_SimChannelsReady()){this->priv_PrepSimChannels();}
395  }
std::set< int > GetSetOfEveIds() const
Definition: BackTracker.h:247
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_service.cc.

411  {
412  // Removed until Lazy Rebuild works
413  // if(!this->priv_SimChannelsReady()){this->priv_PrepSimChannels();}
414  return BackTracker::GetSetOfEveIds(clockData, hits);
415  }
std::set< int > GetSetOfEveIds() const
Definition: BackTracker.h:247
std::set< int > cheat::BackTrackerService::GetSetOfTrackIds ( ) const

Definition at line 381 of file BackTrackerService_service.cc.

382  {
383  // Removed until Lazy Rebuild works
384  // if(!this->priv_SimChannelsReady()){this->priv_PrepSimChannels();}
386  }
std::set< int > GetSetOfTrackIds() const
Definition: BackTracker.h:242
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_service.cc.

401  {
402  // Removed until Lazy Rebuild works
403  // if(!this->priv_SimChannelsReady()){this->priv_PrepSimChannels();}
404  return BackTracker::GetSetOfTrackIds(clockData, hits);
405  }
std::set< int > GetSetOfTrackIds() const
Definition: BackTracker.h:242
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_service.cc.

373  {
374  //Removed until Lazy Rebuild works
375  //if(!this->priv_SimChannelsReady()){this->priv_PrepSimChannels();}
376  return BackTracker::HitChargeCollectionEfficiency(clockData, trackIds, hits, allhits, view);
377  }
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
Definition: BackTracker.cc:497
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_service.cc.

346  {
347  // Removed until Lazy Rebuild works
348  // if(!this->priv_SimChannelsReady()){this->priv_PrepSimChannels();}
349  return BackTracker::HitChargeCollectionPurity(clockData, trackIds, hits);
350  }
double HitChargeCollectionPurity(detinfo::DetectorClocksData const &clockData, std::set< int > const &trackIds, std::vector< art::Ptr< recob::Hit >> const &hits) const
Definition: BackTracker.cc:437
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_service.cc.

359  {
360  // Removed until Lazy Rebuild works
361  // if(!this->priv_SimChannelsReady()){this->priv_PrepSimChannels();}
362  return BackTracker::HitCollectionEfficiency(clockData, trackIds, hits, allhits, view);
363  }
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
Definition: BackTracker.cc:458
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_service.cc.

335  {
336  // Removed until Lazy Rebuild works
337  // if(!this->priv_SimChannelsReady()){this->priv_PrepSimChannels();}
338  return BackTracker::HitCollectionPurity(clockData, trackIds, hits);
339  }
double HitCollectionPurity(detinfo::DetectorClocksData const &clockData, std::set< int > const &trackIds, std::vector< art::Ptr< recob::Hit >> const &hits) const
Definition: BackTracker.cc:417
std::vector< sim::IDE > cheat::BackTrackerService::HitToAvgSimIDEs ( detinfo::DetectorClocksData const &  clockData,
recob::Hit const &  hit 
) const

Definition at line 254 of file BackTrackerService_service.cc.

256  {
257  // Removed until Lazy Rebuild works
258  // if(!this->priv_SimChannelsReady()){this->priv_PrepSimChannels();}
259  return BackTracker::HitToAvgSimIDEs(clockData, hit);
260  }
Detector simulation of raw signals on wires.
std::vector< sim::IDE > HitToAvgSimIDEs(detinfo::DetectorClocksData const &clockData, recob::Hit const &hit) const
Definition: BackTracker.cc:305
std::vector< sim::IDE > cheat::BackTrackerService::HitToAvgSimIDEs ( detinfo::DetectorClocksData const &  clockData,
art::Ptr< recob::Hit hit 
) const

Definition at line 264 of file BackTrackerService_service.cc.

266  {
267  // Removed until Lazy Rebuild works
268  // if(!this->priv_SimChannelsReady()){this->priv_PrepSimChannels();}
269  return BackTracker::HitToAvgSimIDEs(clockData, hit);
270  }
std::vector< sim::IDE > HitToAvgSimIDEs(detinfo::DetectorClocksData const &clockData, recob::Hit const &hit) const
Definition: BackTracker.cc:305
std::vector< sim::TrackIDE > cheat::BackTrackerService::HitToEveTrackIDEs ( detinfo::DetectorClocksData const &  clockData,
recob::Hit const &  hit 
) const

Definition at line 203 of file BackTrackerService_service.cc.

205  {
206  // Removed until Lazy Rebuild works
207  // if(!this->priv_SimChannelsReady()){this->priv_PrepSimChannels();}
208  return BackTracker::HitToEveTrackIDEs(clockData, hit);
209  }
std::vector< sim::TrackIDE > HitToEveTrackIDEs(detinfo::DetectorClocksData const &clockData, recob::Hit const &hit) const
Definition: BackTracker.cc:201
Detector simulation of raw signals on wires.
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_service.cc.

215  {
216  // Removed until Lazy Rebuild works
217  // if(!this->priv_SimChannelsReady()){this->priv_PrepSimChannels();}
218  return BackTracker::HitToEveTrackIDEs(clockData, hit);
219  }
std::vector< sim::TrackIDE > HitToEveTrackIDEs(detinfo::DetectorClocksData const &clockData, recob::Hit const &hit) const
Definition: BackTracker.cc:201
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_service.cc.

276  {
277  //Removed until Lazy Rebuild works
278  //if(!this->priv_SimChannelsReady()){this->priv_PrepSimChannels();}
279  return BackTracker::HitToSimIDEs_Ps(clockData, hit);
280  }
Detector simulation of raw signals on wires.
std::vector< const sim::IDE * > HitToSimIDEs_Ps(detinfo::DetectorClocksData const &clockData, recob::Hit const &hit) const
Definition: BackTracker.cc:320
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_service.cc.

286  {
287  //Removed until Lazy Rebuild works
288  //if(!this->priv_SimChannelsReady()){this->priv_PrepSimChannels();}
289  return BackTracker::HitToSimIDEs_Ps(clockData, hit);
290  }
std::vector< const sim::IDE * > HitToSimIDEs_Ps(detinfo::DetectorClocksData const &clockData, recob::Hit const &hit) const
Definition: BackTracker.cc:320
std::vector< sim::TrackIDE > cheat::BackTrackerService::HitToTrackIDEs ( detinfo::DetectorClocksData const &  clockData,
recob::Hit const &  hit 
) const

Definition at line 173 of file BackTrackerService_service.cc.

175  {
176  // Removed until Lazy Rebuild works
177  // if(!this->priv_SimChannelsReady()){this->priv_PrepSimChannels();}
178  return BackTracker::HitToTrackIDEs(clockData, hit);
179  }
std::vector< sim::TrackIDE > HitToTrackIDEs(detinfo::DetectorClocksData const &clockData, recob::Hit const &hit) const
Definition: BackTracker.cc:178
Detector simulation of raw signals on wires.
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_service.cc.

185  {
186  // Removed until Lazy Rebuild works
187  // if(!this->priv_SimChannelsReady()){this->priv_PrepSimChannels();}
188  return BackTracker::HitToTrackIDEs(clockData, hit);
189  }
std::vector< sim::TrackIDE > HitToTrackIDEs(detinfo::DetectorClocksData const &clockData, recob::Hit const &hit) const
Definition: BackTracker.cc:178
std::vector< int > cheat::BackTrackerService::HitToTrackIds ( detinfo::DetectorClocksData const &  clockData,
recob::Hit const &  hit 
) const

Definition at line 193 of file BackTrackerService_service.cc.

195  {
196  // Removed until Lazy Rebuild works
197  // if(!this->priv_SimChannelsReady()){this->priv_PrepSimChannels();}
198  return BackTracker::HitToTrackIds(clockData, hit);
199  }
Detector simulation of raw signals on wires.
std::vector< int > HitToTrackIds(detinfo::DetectorClocksData const &clockData, recob::Hit const &hit) const
Definition: BackTracker.cc:188
std::vector< double > cheat::BackTrackerService::HitToXYZ ( detinfo::DetectorClocksData const &  clockData,
const recob::Hit hit 
) const

Definition at line 312 of file BackTrackerService_service.cc.

314  {
315  // Removed until Lazy Rebuild works
316  // if(!this->priv_SimChannelsReady()){this->priv_PrepSimChannels();}
317  return BackTracker::HitToXYZ(clockData, hit);
318  }
std::vector< double > HitToXYZ(detinfo::DetectorClocksData const &clockData, const recob::Hit &hit) const
Definition: BackTracker.cc:409
std::vector< double > cheat::BackTrackerService::HitToXYZ ( detinfo::DetectorClocksData const &  clockData,
art::Ptr< recob::Hit > const &  hit 
) const

Definition at line 322 of file BackTrackerService_service.cc.

324  {
325  // Removed until Lazy Rebuild works
326  // if(!this->priv_SimChannelsReady()){this->priv_PrepSimChannels();}
327  return HitToXYZ(clockData, *hit);
328  }
std::vector< double > HitToXYZ(detinfo::DetectorClocksData const &clockData, const recob::Hit &hit) const
bool cheat::BackTrackerService::priv_CanRun ( const art::Event evt)
private

Definition at line 75 of file BackTrackerService_service.cc.

76  {
77  return BackTracker::CanRun(evt);
78  }
bool CanRun(const Evt &evt)
Definition: BackTracker.h:94
void cheat::BackTrackerService::priv_PrepEvent ( const art::Event evt,
art::ScheduleContext   
)
private

Definition at line 63 of file BackTrackerService_service.cc.

64  {
65  fEvt = &evt;
67  if (!this->priv_CanRun(evt)) { return; }
68  this->priv_PrepSimChannels(evt);
69  fEvt = nullptr; // don't save the pointer because it will be useless after this
70  // anyways. I want to make sure calls at the wrong time crash.
71  }
void priv_PrepSimChannels(const art::Event &evt)
bool priv_CanRun(const art::Event &evt)
TCEvent evt
Definition: DataStructs.cxx:7
void cheat::BackTrackerService::priv_PrepFailed ( )
private

Definition at line 82 of file BackTrackerService_service.cc.

83  {
84  throw cet::exception("BackTrackerService")
85  << "The called Prep Function failed. This is most likely due "
86  << "to a BackTracker function being used on a file that is real data.";
87  }
cet::coded_exception< error, detail::translate > exception
Definition: exception.h:33
void cheat::BackTrackerService::priv_PrepSimChannels ( const art::Event evt)
private

Definition at line 91 of file BackTrackerService_service.cc.

92  {
93  if (!this->priv_CanRun(evt)) { this->priv_PrepFailed(); }
94  if (this->priv_SimChannelsReady()) { return; }
95  try {
97  }
98  catch (...) {
99  mf::LogWarning("BackTrackerService")
100  << "Rebuild failed to get the SimChannels. This is expected when running on a generation "
101  "or simulation step.";
102  }
103  }
void PrepSimChannels(const Evt &evt)
bool priv_CanRun(const art::Event &evt)
MaybeLogger_< ELseverityLevel::ELsev_warning, false > LogWarning
bool cheat::BackTrackerService::priv_SimChannelsReady ( )
inlineprivate

Definition at line 151 of file BackTrackerService.h.

152  {
154  }
bool SimChannelsReady() const
Definition: BackTracker.h:114
const provider_type* cheat::BackTrackerService::provider ( ) const
inline

Definition at line 38 of file BackTrackerService.h.

39  {
40  return static_cast<provider_type const*>(this);
41  }
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_service.cc.

57  {
59  }
void priv_PrepEvent(const art::Event &evt, art::ScheduleContext)
static ScheduleContext invalid()
const std::vector< art::Ptr< sim::SimChannel > > & cheat::BackTrackerService::SimChannels ( ) const

Definition at line 125 of file BackTrackerService_service.cc.

126  {
127  // Removed until Lazy Rebuild works
128  // if(!this->priv_SimChannelsReady()){this->priv_PrepSimChannels();}
129  return BackTracker::SimChannels();
130  }
const std::vector< art::Ptr< sim::SimChannel > > & SimChannels() const
Definition: BackTracker.h:120
std::vector< double > cheat::BackTrackerService::SimIDEsToXYZ ( std::vector< sim::IDE > const &  ides) const

Definition at line 294 of file BackTrackerService_service.cc.

295  {
296  // Removed until Lazy Rebuild works
297  // if(!this->priv_SimChannelsReady()){this->priv_PrepSimChannels();}
298  return BackTracker::SimIDEsToXYZ(ides);
299  }
std::vector< double > SimIDEsToXYZ(std::vector< sim::IDE > const &ides) const
Definition: BackTracker.cc:376
std::vector< double > cheat::BackTrackerService::SimIDEsToXYZ ( std::vector< const sim::IDE * > const &  ide_Ps) const

Definition at line 303 of file BackTrackerService_service.cc.

304  {
305  // Removed until Lazy Rebuild works
306  // if(!this->priv_SimChannelsReady()){this->priv_PrepSimChannels();}
307  return BackTracker::SimIDEsToXYZ(ide_Ps);
308  }
std::vector< double > SimIDEsToXYZ(std::vector< sim::IDE > const &ides) const
Definition: BackTracker.cc:376
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_service.cc.

422  {
423  // if( !this->priv_CanRun(*fEvt)) { this->priv_PrepFailed(); }
424  return BackTracker::SpacePointHitsToWeightedXYZ(clockData, hits);
425  }
std::vector< double > SpacePointHitsToWeightedXYZ(detinfo::DetectorClocksData const &clockData, std::vector< art::Ptr< recob::Hit >> const &hits) const
Definition: BackTracker.cc:566
std::vector< art::Ptr< recob::Hit > > cheat::BackTrackerService::SpacePointToHits_Ps ( art::Ptr< recob::SpacePoint > const &  spt) const

Definition at line 429 of file BackTrackerService_service.cc.

430  {
431  // Note, this function is goofy in that it doesn't use the hits prepared by
432  // the module. That should likely be changed to make things more uniform.
433  // if( !this->priv_CanRun(*fEvt)) { this->priv_PrepFailed(); }
434  if (!fEvt) {
435  throw cet::exception("BackTrackerService")
436  << "This function is not yet implimented pending the implimentation of "
437  "backtracker lazy loading.";
438  }
440  }
std::vector< art::Ptr< recob::Hit > > SpacePointToHits_Ps(art::Ptr< recob::SpacePoint > const &spt, const Evt &evt) const
cet::coded_exception< error, detail::translate > exception
Definition: exception.h:33
std::vector< double > cheat::BackTrackerService::SpacePointToXYZ ( detinfo::DetectorClocksData const &  clockData,
art::Ptr< recob::SpacePoint > const &  spt 
) const

Definition at line 444 of file BackTrackerService_service.cc.

446  {
447  // if( !this->priv_CanRun(*fEvt)) { this->priv_PrepFailed(); }
448  if (!fEvt) {
449  throw cet::exception("BackTrackerService")
450  << "This function is not yet implimented pending the implimentation of "
451  "backtracker lazy loading.";
452  }
453  return BackTracker::SpacePointToXYZ(clockData, spt, *fEvt);
454  }
std::vector< double > SpacePointToXYZ(detinfo::DetectorClocksData const &clockData, art::Ptr< recob::SpacePoint > const &spt, const Evt &evt) const
cet::coded_exception< error, detail::translate > exception
Definition: exception.h:33
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_service.cc.

246  {
247  // Removed until Lazy Rebuild works
248  // if(!this->priv_SimChannelsReady()){this->priv_PrepSimChannels();}
249  return BackTracker::TrackIdsToHits_Ps(clockData, tkIds, hitsIn);
250  }
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
Definition: BackTracker.cc:262
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_service.cc.

226  {
227  // Removed until Lazy Rebuild works
228  // if(!this->priv_SimChannelsReady()){this->priv_PrepSimChannels();}
229  return BackTracker::TrackIdToHits_Ps(clockData, tkId, hitsIn);
230  }
std::vector< art::Ptr< recob::Hit > > TrackIdToHits_Ps(detinfo::DetectorClocksData const &clockData, int tkId, std::vector< art::Ptr< recob::Hit >> const &hitsIn) const
Definition: BackTracker.cc:235
std::vector< const sim::IDE * > cheat::BackTrackerService::TrackIdToSimIDEs_Ps ( int const &  id) const

Definition at line 134 of file BackTrackerService_service.cc.

135  {
136  // Removed until Lazy Rebuild works
137  // if(!this->priv_SimChannelsReady()){this->priv_PrepSimChannels();}
139  }
std::vector< const sim::IDE * > TrackIdToSimIDEs_Ps(int const &id) const
Definition: BackTracker.cc:63
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_service.cc.

144  {
145  // Removed until Lazy Rebuild works
146  // if(!this->priv_SimChannelsReady()){this->priv_PrepSimChannels();}
147  return BackTracker::TrackIdToSimIDEs_Ps(id, view);
148  }
std::vector< const sim::IDE * > TrackIdToSimIDEs_Ps(int const &id) const
Definition: BackTracker.cc:63

Member Data Documentation

const art::Event* cheat::BackTrackerService::fEvt = nullptr
private

Definition at line 140 of file BackTrackerService.h.


The documentation for this class was generated from the following files: