All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Public Types | Public Member Functions | Private Member Functions | List of all members
cheat::PhotonBackTrackerService Class Reference

#include <PhotonBackTrackerService.h>

Inheritance diagram for cheat::PhotonBackTrackerService:
cheat::PhotonBackTracker

Classes

struct  fhiclConfig
 

Public Types

using provider_type = PhotonBackTracker
 

Public Member Functions

const provider_typeprovider () const
 
 PhotonBackTrackerService (fhicl::ParameterSet const &pSet, art::ActivityRegistry &reg)
 
 PhotonBackTrackerService (fhiclConfig const &config, art::ActivityRegistry &reg)
 
void Rebuild (art::Event const &evt)
 
const std::vector< art::Ptr
< sim::OpDetBacktrackerRecord > > & 
OpDetBTRs ()
 
const double GetDelay ()
 
const std::vector< const
sim::SDP * > 
TrackIdToSimSDPs_Ps (int const &id)
 
const std::vector< const
sim::SDP * > 
TrackIdToSimSDPs_Ps (int const &id, geo::View_t const &view)
 
art::Ptr
< sim::OpDetBacktrackerRecord
FindOpDetBTR (int const &opDetNum)
 
const std::vector< sim::TrackSDPOpDetToTrackSDPs (int const &OpDetNum, double const &opHit_start_time, double const &opHit_end_time)
 
std::vector< sim::TrackSDPOpHitToTrackSDPs (art::Ptr< recob::OpHit > const &opHit_P)
 
std::vector< sim::TrackSDPOpHitToTrackSDPs (recob::OpHit const &opHit)
 
const std::vector< int > OpHitToTrackIds (recob::OpHit const &opHit)
 
const std::vector< int > OpHitToTrackIds (art::Ptr< recob::OpHit > const &opHit_P)
 
const std::vector< int > OpHitToEveTrackIds (recob::OpHit const &opHit)
 
const std::vector< int > OpHitToEveTrackIds (art::Ptr< recob::OpHit > const &opHit_P)
 
std::vector< sim::TrackSDPOpHitToEveTrackSDPs (art::Ptr< recob::OpHit > const &opHit_P)
 
std::vector< sim::TrackSDPOpHitToEveTrackSDPs (recob::OpHit const &opHit)
 
const std::vector< art::Ptr
< recob::OpHit > > 
TrackIdToOpHits_Ps (int const &tkId, std::vector< art::Ptr< recob::OpHit >> const &hitsIn)
 
const std::vector< std::vector
< art::Ptr< recob::OpHit > > > 
TrackIdsToOpHits_Ps (std::vector< int > const &tkIds, std::vector< art::Ptr< recob::OpHit >> const &hitsIn)
 
const std::vector< const
sim::SDP * > 
OpHitToSimSDPs_Ps (recob::OpHit const &opHit)
 
const std::vector< const
sim::SDP * > 
OpHitToSimSDPs_Ps (art::Ptr< recob::OpHit > const &opHit_P)
 
const std::unordered_set
< const sim::SDP * > 
OpHitToEveSimSDPs_Ps (recob::OpHit const &opHit)
 
const std::unordered_set
< const sim::SDP * > 
OpHitToEveSimSDPs_Ps (art::Ptr< recob::OpHit > &opHit_P)
 
const std::vector< double > SimSDPsToXYZ (std::vector< sim::SDP > const &sdps) const &
 
const std::vector< double > SimSDPsToXYZ (std::vector< const sim::SDP * > const &sdps_Ps)
 
const std::vector< double > OpHitToXYZ (recob::OpHit const &opHit)
 
const std::vector< double > OpHitToXYZ (art::Ptr< recob::OpHit > const &opHit_P)
 
const std::set< int > GetSetOfEveIds ()
 
const std::set< int > GetSetOfTrackIds ()
 
const std::set< int > GetSetOfEveIds (std::vector< art::Ptr< recob::OpHit > > const &opHits_Ps)
 
const std::set< int > GetSetOfEveIds (const std::vector< recob::OpHit > &opHits)
 
const std::set< int > GetSetOfTrackIds (std::vector< art::Ptr< recob::OpHit > > const &opHits_Ps)
 
const std::set< int > GetSetOfTrackIds (std::vector< recob::OpHit > const &opHits)
 
const double OpHitCollectionPurity (std::set< int > const &tkIds, std::vector< art::Ptr< recob::OpHit > > const &opHits_Ps)
 
const double OpHitLightCollectionPurity (std::set< int > const &tkIds, std::vector< art::Ptr< recob::OpHit > > const &opHits_Ps)
 
const double OpHitCollectionEfficiency (std::set< int > const &tkIds, std::vector< art::Ptr< recob::OpHit > > const &opHits_Ps, std::vector< art::Ptr< recob::OpHit > > const &opHitsIn_Ps, geo::View_t const &view)
 
const double OpHitCollectionEfficiency (std::set< int > const &tkIds, std::vector< art::Ptr< recob::OpHit > > const &opHits_Ps, std::vector< art::Ptr< recob::OpHit > > const &opHitsIn_Ps)
 
const double OpHitLightCollectionEfficiency (std::set< int > const &tkIds, std::vector< art::Ptr< recob::OpHit > > const &opHits_Ps, std::vector< art::Ptr< recob::OpHit > > const &opHitsIn_Ps, geo::View_t const &view)
 
const double OpHitLightCollectionEfficiency (std::set< int > const &tkIds, std::vector< art::Ptr< recob::OpHit > > const &opHits_Ps, std::vector< art::Ptr< recob::OpHit > > const &opHitsIn_Ps)
 
const double OpHitChargeCollectionEfficiency (std::set< int > const &tkIds, std::vector< art::Ptr< recob::OpHit > > const &opHits_Ps, std::vector< art::Ptr< recob::OpHit > > const &opHitsIn_Ps)
 
const std::set< int > OpFlashToTrackIds (art::Ptr< recob::OpFlash > &flash_P) const
 
const std::vector< art::Ptr
< recob::OpHit > > 
OpFlashToOpHits_Ps (art::Ptr< recob::OpFlash > &flash_P)
 
const std::vector< double > OpFlashToXYZ (art::Ptr< recob::OpFlash > &flash_P)
 

Private Member Functions

void priv_PrepEvent (art::Event const &evt, art::ScheduleContext)
 
void priv_PrepFailed ()
 
void priv_PrepOpDetBTRs (art::Event const &evt)
 
void priv_PrepOpFlashToOpHits (art::Event const &evt)
 
bool priv_CanRun (art::Event const &evt)
 
bool priv_OpDetBTRsReady ()
 
bool priv_OpFlashToOpHitsReady ()
 
- Private Member Functions inherited from cheat::PhotonBackTracker
 PhotonBackTracker (fhicl::ParameterSet const &pset, art::ActivityRegistry &reg)
 
 ~PhotonBackTracker ()
 
void reconfigure (fhicl::ParameterSet const &pset)
 
void Rebuild (const art::Event &evt)
 
const sim::ParticleList & ParticleList () const
 
void SetEveIdCalculator (sim::EveIdCalculator *ec)
 
const simb::MCParticle * TrackIDToParticle (int const &id) const
 
const simb::MCParticle * TrackIDToMotherParticle (int const &id) const
 
std::vector< sim::SDPTrackIDToSimSDP (int const &id) const
 
const art::Ptr< simb::MCTruth > & TrackIDToMCTruth (int const &id) const
 
const art::Ptr< simb::MCTruth > & ParticleToMCTruth (const simb::MCParticle *p) const
 
std::vector< const
simb::MCParticle * > 
MCTruthToParticles (art::Ptr< simb::MCTruth > const &mct) const
 
const std::vector< art::Ptr
< simb::MCTruth > > & 
MCTruthVector () const
 
DEPRECATED std::vector
< sim::TrackSDP
OpHitToTrackID (art::Ptr< recob::OpHit > const &hit)
 
std::vector< sim::TrackSDPOpHitToTrackSDPs (art::Ptr< recob::OpHit > const &hit)
 
const std::vector< std::vector
< art::Ptr< recob::OpHit > > > 
TrackIDsToOpHits (std::vector< art::Ptr< recob::OpHit >> const &allhits, std::vector< int > const &tkIDs)
 
std::vector< sim::TrackSDPOpHitToEveSDPs (art::Ptr< recob::OpHit > const &hit)
 
std::vector< sim::TrackSDPOpHitToEveID (art::Ptr< recob::OpHit > const &hit)
 
std::vector< double > SimSDPsToXYZ (std::vector< sim::SDP > const &sdps)
 
std::vector< double > OpHitToXYZ (art::Ptr< recob::OpHit > const &hit)
 
double OpHitCollectionPurity (std::set< int > trackIDs, std::vector< art::Ptr< recob::OpHit > > const &hits)
 
double OpHitCollectionEfficiency (std::set< int > trackIDs, std::vector< art::Ptr< recob::OpHit > > const &hits, std::vector< art::Ptr< recob::OpHit > > const &allhits)
 
double OpHitCollectionEfficiency (std::set< int > trackIDs, std::vector< art::Ptr< recob::OpHit > > const &hits, std::vector< art::Ptr< recob::OpHit > > const &allhits, geo::View_t const &view)
 
double OpHitChargeCollectionPurity (std::set< int > trackIDs, std::vector< art::Ptr< recob::OpHit > > const &hits)
 
double OpHitChargeCollectionEfficiency (std::set< int > trackIDs, std::vector< art::Ptr< recob::OpHit > > const &hits, std::vector< art::Ptr< recob::OpHit > > const &allhits)
 
double OpHitChargeCollectionEfficiency (std::set< int > trackIDs, std::vector< art::Ptr< recob::OpHit > > const &hits, std::vector< art::Ptr< recob::OpHit > > const &allhits, geo::View_t const &view)
 
std::set< int > GetSetOfEveIDs ()
 
std::set< int > GetSetOfTrackIDs ()
 
std::set< int > GetSetOfEveIDs (std::vector< art::Ptr< recob::OpHit > > const &hits)
 
std::set< int > GetSetOfTrackIDs (std::vector< art::Ptr< recob::OpHit > > const &hits)
 
const std::vector< art::Ptr
< sim::OpDetBacktrackerRecord > > & 
OpDetBacktrackerRecords () const
 
void ChannelToTrackSDPs (std::vector< sim::TrackSDP > &trackSDPs, int channel, const double hit_start_time, const double hit_end_time)
 
 PhotonBackTracker (fhicl::ParameterSet const &pset, art::ActivityRegistry &reg)
 
 ~PhotonBackTracker ()
 
void reconfigure (fhicl::ParameterSet const &pset)
 
void Rebuild (const art::Event &evt)
 
const sim::ParticleList & ParticleList () const
 
void SetEveIdCalculator (sim::EveIdCalculator *ec)
 
const simb::MCParticle * TrackIDToParticle (int const &id) const
 
const simb::MCParticle * TrackIDToMotherParticle (int const &id) const
 
std::vector< sim::SDPTrackIDToSimSDP (int const &id) const
 
const art::Ptr< simb::MCTruth > & TrackIDToMCTruth (int const &id) const
 
const art::Ptr< simb::MCTruth > & ParticleToMCTruth (const simb::MCParticle *p) const
 
std::vector< const
simb::MCParticle * > 
MCTruthToParticles (art::Ptr< simb::MCTruth > const &mct) const
 
const std::vector< art::Ptr
< simb::MCTruth > > & 
MCTruthVector () const
 
DEPRECATED std::vector
< sim::TrackSDP
OpHitToTrackID (art::Ptr< recob::OpHit > const &hit)
 
std::vector< sim::TrackSDPOpHitToTrackSDPs (art::Ptr< recob::OpHit > const &hit)
 
const std::vector< std::vector
< art::Ptr< recob::OpHit > > > 
TrackIDsToOpHits (std::vector< art::Ptr< recob::OpHit >> const &allhits, std::vector< int > const &tkIDs)
 
std::vector< sim::TrackSDPOpHitToEveSDPs (art::Ptr< recob::OpHit > const &hit)
 
std::vector< sim::TrackSDPOpHitToEveID (art::Ptr< recob::OpHit > const &hit)
 
std::vector< double > SimSDPsToXYZ (std::vector< sim::SDP > const &sdps)
 
std::vector< double > OpHitToXYZ (art::Ptr< recob::OpHit > const &hit)
 
double OpHitCollectionPurity (std::set< int > trackIDs, std::vector< art::Ptr< recob::OpHit > > const &hits)
 
double OpHitCollectionEfficiency (std::set< int > trackIDs, std::vector< art::Ptr< recob::OpHit > > const &hits, std::vector< art::Ptr< recob::OpHit > > const &allhits)
 
double OpHitCollectionEfficiency (std::set< int > trackIDs, std::vector< art::Ptr< recob::OpHit > > const &hits, std::vector< art::Ptr< recob::OpHit > > const &allhits, geo::View_t const &view)
 
double OpHitChargeCollectionPurity (std::set< int > trackIDs, std::vector< art::Ptr< recob::OpHit > > const &hits)
 
double OpHitChargeCollectionEfficiency (std::set< int > trackIDs, std::vector< art::Ptr< recob::OpHit > > const &hits, std::vector< art::Ptr< recob::OpHit > > const &allhits)
 
double OpHitChargeCollectionEfficiency (std::set< int > trackIDs, std::vector< art::Ptr< recob::OpHit > > const &hits, std::vector< art::Ptr< recob::OpHit > > const &allhits, geo::View_t const &view)
 
std::set< int > GetSetOfEveIDs ()
 
std::set< int > GetSetOfTrackIDs ()
 
std::set< int > GetSetOfEveIDs (std::vector< art::Ptr< recob::OpHit > > const &hits)
 
std::set< int > GetSetOfTrackIDs (std::vector< art::Ptr< recob::OpHit > > const &hits)
 
const std::vector< art::Ptr
< sim::OpDetBacktrackerRecord > > & 
OpDetBacktrackerRecords () const
 
void ChannelToTrackSDPs (std::vector< sim::TrackSDP > &trackSDPs, int channel, const double hit_start_time, const double hit_end_time)
 
 PhotonBackTracker (fhiclConfig const &config, const cheat::ParticleInventory *partInv, const geo::GeometryCore *geom)
 
 PhotonBackTracker (fhicl::ParameterSet const &pSet, const cheat::ParticleInventory *partInv, const geo::GeometryCore *geom)
 
 PhotonBackTracker (PhotonBackTracker const &)=delete
 
template<typename Evt >
void PrepEvent (Evt const &evt)
 
template<typename Evt >
const bool CanRun (Evt const &evt)
 
template<typename Evt >
void PrepOpDetBTRs (Evt const &evt)
 
template<typename Evt >
void PrepOpFlashToOpHits (Evt const &evt)
 
const std::vector< art::Ptr
< recob::OpHit > > 
OpFlashToOpHits_Ps (art::Ptr< recob::OpFlash > &flash_P) const
 
const std::vector< double > OpFlashToXYZ (art::Ptr< recob::OpFlash > &flash_P) const
 
const std::set< int > OpFlashToTrackIds (art::Ptr< recob::OpFlash > &flash_P) const
 
const double GetDelay ()
 
void ClearEvent ()
 
const bool BTRsReady ()
 
const bool OpFlashToOpHitsReady ()
 
std::vector< art::Ptr
< sim::OpDetBacktrackerRecord >
> const & 
OpDetBTRs ()
 
const std::vector< const
sim::SDP * > 
TrackIdToSimSDPs_Ps (int const &id)
 
const std::vector< const
sim::SDP * > 
TrackIdToSimSDPs_Ps (int const &id, geo::View_t const &view)
 
const art::Ptr
< sim::OpDetBacktrackerRecord
FindOpDetBTR (int const &opDetNum) const
 
const std::vector< sim::TrackSDPOpDetToTrackSDPs (int const &OpDetNum, double const &opHit_start_time, double const &opHit_end_time) const
 
const std::vector< sim::TrackSDPOpHitToTrackSDPs (art::Ptr< recob::OpHit > const &opHit_P) const
 
const std::vector< sim::TrackSDPOpHitToTrackSDPs (recob::OpHit const &opHit) const
 
const std::vector< int > OpHitToTrackIds (recob::OpHit const &opHit) const
 
const std::vector< int > OpHitToTrackIds (art::Ptr< recob::OpHit > const &opHit) const
 
const std::vector< int > OpHitToEveTrackIds (recob::OpHit const &opHit)
 
const std::vector< int > OpHitToEveTrackIds (art::Ptr< recob::OpHit > const &opHit_P)
 
const std::vector< sim::TrackSDPOpHitToEveTrackSDPs (art::Ptr< recob::OpHit > const &opHit_P) const
 
const std::vector< sim::TrackSDPOpHitToEveTrackSDPs (recob::OpHit const &opHit) const
 
const std::vector< art::Ptr
< recob::OpHit > > 
TrackIdToOpHits_Ps (int const &tkId, std::vector< art::Ptr< recob::OpHit >> const &hitsIn)
 
const std::vector< std::vector
< art::Ptr< recob::OpHit > > > 
TrackIdsToOpHits_Ps (std::vector< int > const &tkIds, std::vector< art::Ptr< recob::OpHit >> const &hitsIn)
 
const std::vector< const
sim::SDP * > 
OpHitToSimSDPs_Ps (recob::OpHit const &opHit) const
 
const std::vector< const
sim::SDP * > 
OpHitToSimSDPs_Ps (art::Ptr< recob::OpHit > const &opHit_P) const
 
const std::vector< const
sim::SDP * > 
OpHitsToSimSDPs_Ps (std::vector< art::Ptr< recob::OpHit > > const &opHits_Ps) const
 
const std::vector< double > SimSDPsToXYZ (std::vector< sim::SDP > const &sdps) const &
 
const std::vector< double > SimSDPsToXYZ (std::vector< const sim::SDP * > const &sdps_Ps) const &
 
const std::vector< double > OpHitToXYZ (art::Ptr< recob::OpHit > const &opHit)
 
const std::vector< double > OpHitToXYZ (recob::OpHit const &opHit)
 
const std::vector< double > OpHitsToXYZ (std::vector< art::Ptr< recob::OpHit > > const &opHits_Ps) const
 
const std::unordered_set
< const sim::SDP * > 
OpHitToEveSimSDPs_Ps (recob::OpHit const &opHit)
 
const std::unordered_set
< const sim::SDP * > 
OpHitToEveSimSDPs_Ps (art::Ptr< recob::OpHit > &opHit_P)
 
const std::set< int > GetSetOfEveIds () const
 
const std::set< int > GetSetOfTrackIds () const
 
const std::set< int > GetSetOfEveIds (std::vector< art::Ptr< recob::OpHit > > const &opHits) const
 
const std::set< int > GetSetOfEveIds (std::vector< recob::OpHit > const &opHits) const
 
const std::set< int > GetSetOfTrackIds (std::vector< art::Ptr< recob::OpHit > > const &opHits) const
 
const std::set< int > GetSetOfTrackIds (std::vector< recob::OpHit > const &opHits) const
 
const double OpHitCollectionPurity (std::set< int > const &tkIds, std::vector< art::Ptr< recob::OpHit > > const &opHits)
 
const double OpHitLightCollectionPurity (std::set< int > const &tkIds, std::vector< art::Ptr< recob::OpHit > > const &opHits)
 
const double OpHitCollectionEfficiency (std::set< int > const &tkIds, std::vector< art::Ptr< recob::OpHit > > const &opHits, std::vector< art::Ptr< recob::OpHit > > const &opHitsIn)
 
const double OpHitCollectionEfficiency (std::set< int > const &tkIds, std::vector< art::Ptr< recob::OpHit > > const &opHits, std::vector< art::Ptr< recob::OpHit > > const &opHitsIn, geo::View_t const &view)
 
const double OpHitLightCollectionEfficiency (std::set< int > const &tkIds, std::vector< art::Ptr< recob::OpHit > > const &opHits, std::vector< art::Ptr< recob::OpHit > > const &opHitsIn)
 
const double OpHitLightCollectionEfficiency (std::set< int > const &tkIds, std::vector< art::Ptr< recob::OpHit > > const &opHits, std::vector< art::Ptr< recob::OpHit > > const &opHitsIn, geo::View_t const &view)
 
void OpHitToSDPs (recob::OpHit const &hit, std::vector< sim::SDP > &sdps) const
 
DEPRECATED void OpHitToSimSDPs (recob::OpHit const &hit, std::vector< sim::SDP > &sdps) const
 
void OpHitToSDPs (art::Ptr< recob::OpHit > const &hit, std::vector< sim::SDP > &sdps) const
 
DEPRECATED void OpHitToSimSDPs (art::Ptr< recob::OpHit > const &hit, std::vector< sim::SDP > &sdps) const
 
void OpHitToSDPs (recob::OpHit const &hit, std::vector< sim::SDP > &sdps) const
 
DEPRECATED void OpHitToSimSDPs (recob::OpHit const &hit, std::vector< sim::SDP > &sdps) const
 
void OpHitToSDPs (art::Ptr< recob::OpHit > const &hit, std::vector< sim::SDP > &sdps) const
 
DEPRECATED void OpHitToSimSDPs (art::Ptr< recob::OpHit > const &hit, std::vector< sim::SDP > &sdps) const
 

Detailed Description

Definition at line 38 of file PhotonBackTrackerService.h.

Member Typedef Documentation

Definition at line 48 of file PhotonBackTrackerService.h.

Constructor & Destructor Documentation

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

Definition at line 26 of file PhotonBackTrackerService.cc.

28  pSet.get<fhicl::ParameterSet>("PhotonBackTracker"),
29  lar::providerFrom<cheat::ParticleInventoryService>(),
30  lar::providerFrom<geo::Geometry>()//,
31 // lar::providerFrom<detinfo::DetectorClocksService>()
32  )
33  {
34  reg.sPreProcessEvent.watch(this, &PhotonBackTrackerService::priv_PrepEvent);
35  }
PhotonBackTracker(fhicl::ParameterSet const &pset, art::ActivityRegistry &reg)
void priv_PrepEvent(art::Event const &evt, art::ScheduleContext)
cheat::PhotonBackTrackerService::PhotonBackTrackerService ( fhiclConfig const &  config,
art::ActivityRegistry &  reg 
)

Definition at line 38 of file PhotonBackTrackerService.cc.

40  config.PhotonBackTrackerTable(),
41  lar::providerFrom<cheat::ParticleInventoryService>(),
42  lar::providerFrom<geo::Geometry>()//,
43 // lar::providerFrom<detinfo::DetectorClocksService>()
44  )
45  {
46  reg.sPreProcessEvent.watch(this, &PhotonBackTrackerService::priv_PrepEvent);
47  }
PhotonBackTracker(fhicl::ParameterSet const &pset, art::ActivityRegistry &reg)
void priv_PrepEvent(art::Event const &evt, art::ScheduleContext)

Member Function Documentation

art::Ptr< sim::OpDetBacktrackerRecord > cheat::PhotonBackTrackerService::FindOpDetBTR ( int const &  opDetNum)

Definition at line 143 of file PhotonBackTrackerService.cc.

144  {
145  return PhotonBackTracker::FindOpDetBTR(opDetNum);
146  }
const art::Ptr< sim::OpDetBacktrackerRecord > FindOpDetBTR(int const &opDetNum) const
const double cheat::PhotonBackTrackerService::GetDelay ( )

Definition at line 128 of file PhotonBackTrackerService.cc.

128 { return PhotonBackTracker::GetDelay();}
const double GetDelay()
const std::set< int > cheat::PhotonBackTrackerService::GetSetOfEveIds ( )

Definition at line 269 of file PhotonBackTrackerService.cc.

270  {
272  }
const std::set< int > GetSetOfEveIds() const
const std::set< int > cheat::PhotonBackTrackerService::GetSetOfEveIds ( std::vector< art::Ptr< recob::OpHit > > const &  opHits_Ps)

Definition at line 281 of file PhotonBackTrackerService.cc.

282  {
283  return PhotonBackTracker::GetSetOfEveIds(opHits_Ps);
284  }
const std::set< int > GetSetOfEveIds() const
const std::set< int > cheat::PhotonBackTrackerService::GetSetOfEveIds ( const std::vector< recob::OpHit > &  opHits)

Definition at line 286 of file PhotonBackTrackerService.cc.

287  {
288  return PhotonBackTracker::GetSetOfEveIds(opHits);
289  }
const std::set< int > GetSetOfEveIds() const
const std::set< int > cheat::PhotonBackTrackerService::GetSetOfTrackIds ( )

Definition at line 275 of file PhotonBackTrackerService.cc.

276  {
278  }
const std::set< int > GetSetOfTrackIds() const
const std::set< int > cheat::PhotonBackTrackerService::GetSetOfTrackIds ( std::vector< art::Ptr< recob::OpHit > > const &  opHits_Ps)

Definition at line 292 of file PhotonBackTrackerService.cc.

293  {
294  return PhotonBackTracker::GetSetOfTrackIds(opHits_Ps);
295  }
const std::set< int > GetSetOfTrackIds() const
const std::set< int > cheat::PhotonBackTrackerService::GetSetOfTrackIds ( std::vector< recob::OpHit > const &  opHits)

Definition at line 297 of file PhotonBackTrackerService.cc.

298  {
300  }
const std::set< int > GetSetOfTrackIds() const
const std::vector< art::Ptr< sim::OpDetBacktrackerRecord > > & cheat::PhotonBackTrackerService::OpDetBTRs ( )

Definition at line 122 of file PhotonBackTrackerService.cc.

123  {
125  }
std::vector< art::Ptr< sim::OpDetBacktrackerRecord > > const & OpDetBTRs()
const std::vector< sim::TrackSDP > cheat::PhotonBackTrackerService::OpDetToTrackSDPs ( int const &  OpDetNum,
double const &  opHit_start_time,
double const &  opHit_end_time 
)

Definition at line 149 of file PhotonBackTrackerService.cc.

152  {
153  return PhotonBackTracker::OpDetToTrackSDPs(OpDetNum, opHit_start_time, opHit_end_time);
154  }
const std::vector< sim::TrackSDP > OpDetToTrackSDPs(int const &OpDetNum, double const &opHit_start_time, double const &opHit_end_time) const
const std::vector< art::Ptr< recob::OpHit > > cheat::PhotonBackTrackerService::OpFlashToOpHits_Ps ( art::Ptr< recob::OpFlash > &  flash_P)

Definition at line 357 of file PhotonBackTrackerService.cc.

357  {
358  return PhotonBackTracker::OpFlashToOpHits_Ps( flash_P);
359  }
const std::vector< art::Ptr< recob::OpHit > > OpFlashToOpHits_Ps(art::Ptr< recob::OpFlash > &flash_P) const
const std::set< int > cheat::PhotonBackTrackerService::OpFlashToTrackIds ( art::Ptr< recob::OpFlash > &  flash_P) const

Definition at line 352 of file PhotonBackTrackerService.cc.

352  {
353  return PhotonBackTracker::OpFlashToTrackIds( flash_P);
354  }
const std::set< int > OpFlashToTrackIds(art::Ptr< recob::OpFlash > &flash_P) const
const std::vector< double > cheat::PhotonBackTrackerService::OpFlashToXYZ ( art::Ptr< recob::OpFlash > &  flash_P)

Definition at line 362 of file PhotonBackTrackerService.cc.

362  {
363  return PhotonBackTracker::OpFlashToXYZ( flash_P );
364  }
const std::vector< double > OpFlashToXYZ(art::Ptr< recob::OpFlash > &flash_P) const
const double cheat::PhotonBackTrackerService::OpHitChargeCollectionEfficiency ( std::set< int > const &  tkIds,
std::vector< art::Ptr< recob::OpHit > > const &  opHits_Ps,
std::vector< art::Ptr< recob::OpHit > > const &  opHitsIn_Ps 
)
inline

Definition at line 118 of file PhotonBackTrackerService.h.

120  { return PhotonBackTracker::OpHitLightCollectionEfficiency(tkIds, opHits_Ps, opHitsIn_Ps); }//Exists only temporarily. Is deprecated.
const double OpHitLightCollectionEfficiency(std::set< int > const &tkIds, std::vector< art::Ptr< recob::OpHit > > const &opHits, std::vector< art::Ptr< recob::OpHit > > const &opHitsIn)
const double cheat::PhotonBackTrackerService::OpHitCollectionEfficiency ( std::set< int > const &  tkIds,
std::vector< art::Ptr< recob::OpHit > > const &  opHits_Ps,
std::vector< art::Ptr< recob::OpHit > > const &  opHitsIn_Ps,
geo::View_t const &  view 
)

Definition at line 318 of file PhotonBackTrackerService.cc.

322  {
323  throw cet::exception("PhotonBackTrackerService")<<"This function is not supported. OpHits do not have type View.\n";
324  }
const double cheat::PhotonBackTrackerService::OpHitCollectionEfficiency ( std::set< int > const &  tkIds,
std::vector< art::Ptr< recob::OpHit > > const &  opHits_Ps,
std::vector< art::Ptr< recob::OpHit > > const &  opHitsIn_Ps 
)

Definition at line 327 of file PhotonBackTrackerService.cc.

330  {
331  return PhotonBackTracker::OpHitCollectionEfficiency(tkIds, opHits_Ps, opHitsIn_Ps);
332  }
double OpHitCollectionEfficiency(std::set< int > trackIDs, std::vector< art::Ptr< recob::OpHit > > const &hits, std::vector< art::Ptr< recob::OpHit > > const &allhits)
const double cheat::PhotonBackTrackerService::OpHitCollectionPurity ( std::set< int > const &  tkIds,
std::vector< art::Ptr< recob::OpHit > > const &  opHits_Ps 
)

Definition at line 303 of file PhotonBackTrackerService.cc.

305  {
306  return PhotonBackTracker::OpHitCollectionPurity(tkIds, opHits_Ps);
307  }
double OpHitCollectionPurity(std::set< int > trackIDs, std::vector< art::Ptr< recob::OpHit > > const &hits)
const double cheat::PhotonBackTrackerService::OpHitLightCollectionEfficiency ( std::set< int > const &  tkIds,
std::vector< art::Ptr< recob::OpHit > > const &  opHits_Ps,
std::vector< art::Ptr< recob::OpHit > > const &  opHitsIn_Ps,
geo::View_t const &  view 
)

Definition at line 335 of file PhotonBackTrackerService.cc.

339  {
340  throw cet::exception("PhotonBackTrackerService")<<"This function is not supported. OpHits do not have type View.\n";
341  }
const double cheat::PhotonBackTrackerService::OpHitLightCollectionEfficiency ( std::set< int > const &  tkIds,
std::vector< art::Ptr< recob::OpHit > > const &  opHits_Ps,
std::vector< art::Ptr< recob::OpHit > > const &  opHitsIn_Ps 
)

Definition at line 344 of file PhotonBackTrackerService.cc.

347  {
348  return PhotonBackTracker::OpHitLightCollectionEfficiency(tkIds, opHits_Ps, opHitsIn_Ps);
349  }
const double OpHitLightCollectionEfficiency(std::set< int > const &tkIds, std::vector< art::Ptr< recob::OpHit > > const &opHits, std::vector< art::Ptr< recob::OpHit > > const &opHitsIn)
const double cheat::PhotonBackTrackerService::OpHitLightCollectionPurity ( std::set< int > const &  tkIds,
std::vector< art::Ptr< recob::OpHit > > const &  opHits_Ps 
)

Definition at line 310 of file PhotonBackTrackerService.cc.

312  {
313  return PhotonBackTracker::OpHitLightCollectionPurity(tkIds, opHits_Ps);
314  }
const double OpHitLightCollectionPurity(std::set< int > const &tkIds, std::vector< art::Ptr< recob::OpHit > > const &opHits)
const std::unordered_set< const sim::SDP * > cheat::PhotonBackTrackerService::OpHitToEveSimSDPs_Ps ( recob::OpHit const &  opHit)

Definition at line 233 of file PhotonBackTrackerService.cc.

234  {
236  }
const std::unordered_set< const sim::SDP * > OpHitToEveSimSDPs_Ps(recob::OpHit const &opHit)
const std::unordered_set< const sim::SDP * > cheat::PhotonBackTrackerService::OpHitToEveSimSDPs_Ps ( art::Ptr< recob::OpHit > &  opHit_P)

Definition at line 239 of file PhotonBackTrackerService.cc.

240  {
242  }
const std::unordered_set< const sim::SDP * > OpHitToEveSimSDPs_Ps(recob::OpHit const &opHit)
const std::vector< int > cheat::PhotonBackTrackerService::OpHitToEveTrackIds ( recob::OpHit const &  opHit)

Definition at line 180 of file PhotonBackTrackerService.cc.

180  {
182  }
const std::vector< int > OpHitToEveTrackIds(recob::OpHit const &opHit)
const std::vector< int > cheat::PhotonBackTrackerService::OpHitToEveTrackIds ( art::Ptr< recob::OpHit > const &  opHit_P)

Definition at line 185 of file PhotonBackTrackerService.cc.

185  {
187  }
const std::vector< int > OpHitToEveTrackIds(recob::OpHit const &opHit)
std::vector< sim::TrackSDP > cheat::PhotonBackTrackerService::OpHitToEveTrackSDPs ( art::Ptr< recob::OpHit > const &  opHit_P)

Definition at line 190 of file PhotonBackTrackerService.cc.

191  {
193  }
const std::vector< sim::TrackSDP > OpHitToEveTrackSDPs(art::Ptr< recob::OpHit > const &opHit_P) const
std::vector< sim::TrackSDP > cheat::PhotonBackTrackerService::OpHitToEveTrackSDPs ( recob::OpHit const &  opHit)

Definition at line 196 of file PhotonBackTrackerService.cc.

197  {
199  }
const std::vector< sim::TrackSDP > OpHitToEveTrackSDPs(art::Ptr< recob::OpHit > const &opHit_P) const
const std::vector< const sim::SDP * > cheat::PhotonBackTrackerService::OpHitToSimSDPs_Ps ( recob::OpHit const &  opHit)

Definition at line 214 of file PhotonBackTrackerService.cc.

215  {
217  }
const std::vector< const sim::SDP * > OpHitToSimSDPs_Ps(recob::OpHit const &opHit) const
const std::vector< const sim::SDP * > cheat::PhotonBackTrackerService::OpHitToSimSDPs_Ps ( art::Ptr< recob::OpHit > const &  opHit_P)

Definition at line 220 of file PhotonBackTrackerService.cc.

221  {
222  return PhotonBackTracker::OpHitToSimSDPs_Ps(opHit_P);
223  }
const std::vector< const sim::SDP * > OpHitToSimSDPs_Ps(recob::OpHit const &opHit) const
const std::vector< int > cheat::PhotonBackTrackerService::OpHitToTrackIds ( recob::OpHit const &  opHit)

Definition at line 169 of file PhotonBackTrackerService.cc.

169  {
171  }
const std::vector< int > OpHitToTrackIds(recob::OpHit const &opHit) const
const std::vector< int > cheat::PhotonBackTrackerService::OpHitToTrackIds ( art::Ptr< recob::OpHit > const &  opHit_P)

Definition at line 174 of file PhotonBackTrackerService.cc.

174  {
175  return PhotonBackTracker::OpHitToTrackIds(opHit_P);
176  }
const std::vector< int > OpHitToTrackIds(recob::OpHit const &opHit) const
std::vector< sim::TrackSDP > cheat::PhotonBackTrackerService::OpHitToTrackSDPs ( art::Ptr< recob::OpHit > const &  opHit_P)

Definition at line 157 of file PhotonBackTrackerService.cc.

158  {
159  return PhotonBackTracker::OpHitToTrackSDPs(opHit_P );
160  }
std::vector< sim::TrackSDP > OpHitToTrackSDPs(art::Ptr< recob::OpHit > const &hit)
std::vector< sim::TrackSDP > cheat::PhotonBackTrackerService::OpHitToTrackSDPs ( recob::OpHit const &  opHit)

Definition at line 163 of file PhotonBackTrackerService.cc.

164  {
166  }
std::vector< sim::TrackSDP > OpHitToTrackSDPs(art::Ptr< recob::OpHit > const &hit)
const std::vector< double > cheat::PhotonBackTrackerService::OpHitToXYZ ( recob::OpHit const &  opHit)

Definition at line 257 of file PhotonBackTrackerService.cc.

258  {
259  return PhotonBackTracker::OpHitToXYZ(opHit);
260  }
std::vector< double > OpHitToXYZ(art::Ptr< recob::OpHit > const &hit)
const std::vector< double > cheat::PhotonBackTrackerService::OpHitToXYZ ( art::Ptr< recob::OpHit > const &  opHit_P)

Definition at line 263 of file PhotonBackTrackerService.cc.

264  {
265  return PhotonBackTracker::OpHitToXYZ(opHit_P);
266  }
std::vector< double > OpHitToXYZ(art::Ptr< recob::OpHit > const &hit)
bool cheat::PhotonBackTrackerService::priv_CanRun ( art::Event const &  evt)
private

Definition at line 73 of file PhotonBackTrackerService.cc.

73  {
75  }
const bool CanRun(Evt const &evt)
TCEvent evt
Definition: DataStructs.cxx:8
bool cheat::PhotonBackTrackerService::priv_OpDetBTRsReady ( )
inlineprivate

Definition at line 136 of file PhotonBackTrackerService.h.

bool cheat::PhotonBackTrackerService::priv_OpFlashToOpHitsReady ( )
inlineprivate

Definition at line 137 of file PhotonBackTrackerService.h.

void cheat::PhotonBackTrackerService::priv_PrepEvent ( art::Event const &  evt,
art::ScheduleContext   
)
private

Definition at line 64 of file PhotonBackTrackerService.cc.

65  {
67  if( ! this->priv_CanRun(evt) ){ return; }
68  this->priv_PrepOpDetBTRs(evt);
70  }
bool priv_CanRun(art::Event const &evt)
void priv_PrepOpDetBTRs(art::Event const &evt)
TCEvent evt
Definition: DataStructs.cxx:8
void priv_PrepOpFlashToOpHits(art::Event const &evt)
void cheat::PhotonBackTrackerService::priv_PrepFailed ( )
private

Definition at line 78 of file PhotonBackTrackerService.cc.

78  {
79  throw cet::exception("PhotonBackTrackerService")
80  <<"The called Prep Fucntion failed. This is most likely due "
81  <<"to a PhotonBackTracker fucntion being used on a file that "
82  <<"is real data.";
83  }
void cheat::PhotonBackTrackerService::priv_PrepOpDetBTRs ( art::Event const &  evt)
private

Definition at line 86 of file PhotonBackTrackerService.cc.

86  {
87  if( !this->priv_CanRun(evt) ) {this->priv_PrepFailed(); }
88  if( this->priv_OpDetBTRsReady()){ return; }
90  //catch(...){ mf::LogWarning("PhotonBackTrackerService")//This needs to go. Catch all should not be used.
91  catch(cet::exception const&){//This needs to go. Make it specific if there is a really an exception we would like to catch.
92  mf::LogWarning("PhotonBackTrackerService")
93  <<"Rebuild failed to get the OpDetBTRs. This is expected when "
94  <<"running on a generation or simulation step.";}
95  }
bool priv_CanRun(art::Event const &evt)
void PrepOpDetBTRs(Evt const &evt)
TCEvent evt
Definition: DataStructs.cxx:8
void cheat::PhotonBackTrackerService::priv_PrepOpFlashToOpHits ( art::Event const &  evt)
private

Definition at line 97 of file PhotonBackTrackerService.cc.

97  {
98  if( !this->priv_CanRun(evt) ) {this->priv_PrepFailed();}
99  if( this->priv_OpFlashToOpHitsReady()){ return; }
101  //catch(...){ //This needs to go. Catch all should not be used.
102  catch(cet::exception const&){//This needs to go. Make it specific if there is a really an exception we would like to catch.
103  mf::LogWarning("PhotonBackTrackerService")
104  <<"Rebuild failed to get the OpFlashToOpHits. This is expected when "
105  <<"running on a generation or simulation stage.";
106  }
107  }
void PrepOpFlashToOpHits(Evt const &evt)
bool priv_CanRun(art::Event const &evt)
TCEvent evt
Definition: DataStructs.cxx:8
const provider_type* cheat::PhotonBackTrackerService::provider ( ) const
inline

Definition at line 49 of file PhotonBackTrackerService.h.

50  {return static_cast<provider_type const*>(this);}
void cheat::PhotonBackTrackerService::Rebuild ( art::Event const &  evt)

Event Rebuild Implimentation////////// This section contains the implimentation /// of all Prep templates from the service /// provider. ///

Definition at line 58 of file PhotonBackTrackerService.cc.

59  {
60  this->priv_PrepEvent(evt, art::ScheduleContext::invalid());
61  }
void priv_PrepEvent(art::Event const &evt, art::ScheduleContext)
TCEvent evt
Definition: DataStructs.cxx:8
const std::vector< double > cheat::PhotonBackTrackerService::SimSDPsToXYZ ( std::vector< sim::SDP > const &  sdps) const

Definition at line 245 of file PhotonBackTrackerService.cc.

246  {
247  return PhotonBackTracker::SimSDPsToXYZ(sdps);
248  }
std::vector< double > SimSDPsToXYZ(std::vector< sim::SDP > const &sdps)
const std::vector< double > cheat::PhotonBackTrackerService::SimSDPsToXYZ ( std::vector< const sim::SDP * > const &  sdps_Ps)

Definition at line 251 of file PhotonBackTrackerService.cc.

252  {
253  return PhotonBackTracker::SimSDPsToXYZ(sdps_Ps);
254  }
std::vector< double > SimSDPsToXYZ(std::vector< sim::SDP > const &sdps)
const std::vector< std::vector< art::Ptr< recob::OpHit > > > cheat::PhotonBackTrackerService::TrackIdsToOpHits_Ps ( std::vector< int > const &  tkIds,
std::vector< art::Ptr< recob::OpHit >> const &  hitsIn 
)

Definition at line 208 of file PhotonBackTrackerService.cc.

209  {
210  return PhotonBackTracker::TrackIdsToOpHits_Ps(tkIds, hitsIn);
211  }
const std::vector< std::vector< art::Ptr< recob::OpHit > > > TrackIdsToOpHits_Ps(std::vector< int > const &tkIds, std::vector< art::Ptr< recob::OpHit >> const &hitsIn)
const std::vector< art::Ptr< recob::OpHit > > cheat::PhotonBackTrackerService::TrackIdToOpHits_Ps ( int const &  tkId,
std::vector< art::Ptr< recob::OpHit >> const &  hitsIn 
)

Definition at line 202 of file PhotonBackTrackerService.cc.

203  {
204  return PhotonBackTracker::TrackIdToOpHits_Ps(tkId, hitsIn);
205  }
const std::vector< art::Ptr< recob::OpHit > > TrackIdToOpHits_Ps(int const &tkId, std::vector< art::Ptr< recob::OpHit >> const &hitsIn)
const std::vector< const sim::SDP * > cheat::PhotonBackTrackerService::TrackIdToSimSDPs_Ps ( int const &  id)

Definition at line 131 of file PhotonBackTrackerService.cc.

132  {
134  }
const std::vector< const sim::SDP * > TrackIdToSimSDPs_Ps(int const &id)
const std::vector< const sim::SDP * > cheat::PhotonBackTrackerService::TrackIdToSimSDPs_Ps ( int const &  id,
geo::View_t const &  view 
)

Definition at line 137 of file PhotonBackTrackerService.cc.

138  {
140  }
const std::vector< const sim::SDP * > TrackIdToSimSDPs_Ps(int const &id)

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