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::OpDetBacktrackerRecordFindOpDetBTR (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::MCParticleTrackIDToParticle (int const &id) const
 
const simb::MCParticleTrackIDToMotherParticle (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::TrackSDPOpHitToTrackID (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::MCParticleTrackIDToParticle (int const &id) const
 
const simb::MCParticleTrackIDToMotherParticle (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::TrackSDPOpHitToTrackID (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::OpDetBacktrackerRecordFindOpDetBTR (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 36 of file PhotonBackTrackerService.h.

Member Typedef Documentation

Definition at line 46 of file PhotonBackTrackerService.h.

Constructor & Destructor Documentation

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

Definition at line 27 of file PhotonBackTrackerService_service.cc.

29  pSet.get<fhicl::ParameterSet>("PhotonBackTracker"),
30  lar::providerFrom<cheat::ParticleInventoryService>(),
31  lar::providerFrom<geo::Geometry>()//,
32 // lar::providerFrom<detinfo::DetectorClocksService>()
33  )
34  {
36  }
GlobalSignal< detail::SignalResponseType::FIFO, void(Event const &, ScheduleContext)> sPreProcessEvent
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 39 of file PhotonBackTrackerService_service.cc.

41  config.PhotonBackTrackerTable(),
42  lar::providerFrom<cheat::ParticleInventoryService>(),
43  lar::providerFrom<geo::Geometry>()//,
44 // lar::providerFrom<detinfo::DetectorClocksService>()
45  )
46  {
48  }
static Config * config
Definition: config.cpp:1054
GlobalSignal< detail::SignalResponseType::FIFO, void(Event const &, ScheduleContext)> sPreProcessEvent
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 144 of file PhotonBackTrackerService_service.cc.

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

Definition at line 129 of file PhotonBackTrackerService_service.cc.

const std::set< int > cheat::PhotonBackTrackerService::GetSetOfEveIds ( )

Definition at line 270 of file PhotonBackTrackerService_service.cc.

271  {
273  }
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 282 of file PhotonBackTrackerService_service.cc.

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

Definition at line 287 of file PhotonBackTrackerService_service.cc.

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

Definition at line 276 of file PhotonBackTrackerService_service.cc.

277  {
279  }
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 293 of file PhotonBackTrackerService_service.cc.

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

Definition at line 298 of file PhotonBackTrackerService_service.cc.

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

Definition at line 123 of file PhotonBackTrackerService_service.cc.

124  {
126  }
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 150 of file PhotonBackTrackerService_service.cc.

153  {
154  return PhotonBackTracker::OpDetToTrackSDPs(OpDetNum, opHit_start_time, opHit_end_time);
155  }
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 358 of file PhotonBackTrackerService_service.cc.

358  {
359  return PhotonBackTracker::OpFlashToOpHits_Ps( flash_P);
360  }
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 353 of file PhotonBackTrackerService_service.cc.

353  {
354  return PhotonBackTracker::OpFlashToTrackIds( flash_P);
355  }
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 363 of file PhotonBackTrackerService_service.cc.

363  {
364  return PhotonBackTracker::OpFlashToXYZ( flash_P );
365  }
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 116 of file PhotonBackTrackerService.h.

118  { 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 319 of file PhotonBackTrackerService_service.cc.

323  {
324  throw cet::exception("PhotonBackTrackerService")<<"This function is not supported. OpHits do not have type View.\n";
325  }
cet::coded_exception< error, detail::translate > exception
Definition: exception.h:33
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 328 of file PhotonBackTrackerService_service.cc.

331  {
332  return PhotonBackTracker::OpHitCollectionEfficiency(tkIds, opHits_Ps, opHitsIn_Ps);
333  }
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 304 of file PhotonBackTrackerService_service.cc.

306  {
307  return PhotonBackTracker::OpHitCollectionPurity(tkIds, opHits_Ps);
308  }
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 336 of file PhotonBackTrackerService_service.cc.

340  {
341  throw cet::exception("PhotonBackTrackerService")<<"This function is not supported. OpHits do not have type View.\n";
342  }
cet::coded_exception< error, detail::translate > exception
Definition: exception.h:33
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 345 of file PhotonBackTrackerService_service.cc.

348  {
349  return PhotonBackTracker::OpHitLightCollectionEfficiency(tkIds, opHits_Ps, opHitsIn_Ps);
350  }
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 311 of file PhotonBackTrackerService_service.cc.

313  {
314  return PhotonBackTracker::OpHitLightCollectionPurity(tkIds, opHits_Ps);
315  }
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 234 of file PhotonBackTrackerService_service.cc.

235  {
237  }
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 240 of file PhotonBackTrackerService_service.cc.

241  {
243  }
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 181 of file PhotonBackTrackerService_service.cc.

181  {
183  }
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 186 of file PhotonBackTrackerService_service.cc.

186  {
188  }
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 191 of file PhotonBackTrackerService_service.cc.

192  {
194  }
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 197 of file PhotonBackTrackerService_service.cc.

198  {
200  }
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 215 of file PhotonBackTrackerService_service.cc.

216  {
218  }
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 221 of file PhotonBackTrackerService_service.cc.

222  {
223  return PhotonBackTracker::OpHitToSimSDPs_Ps(opHit_P);
224  }
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 170 of file PhotonBackTrackerService_service.cc.

170  {
172  }
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 175 of file PhotonBackTrackerService_service.cc.

175  {
176  return PhotonBackTracker::OpHitToTrackIds(opHit_P);
177  }
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 158 of file PhotonBackTrackerService_service.cc.

159  {
160  return PhotonBackTracker::OpHitToTrackSDPs(opHit_P );
161  }
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 164 of file PhotonBackTrackerService_service.cc.

165  {
167  }
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 258 of file PhotonBackTrackerService_service.cc.

259  {
260  return PhotonBackTracker::OpHitToXYZ(opHit);
261  }
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 264 of file PhotonBackTrackerService_service.cc.

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

Definition at line 74 of file PhotonBackTrackerService_service.cc.

74  {
76  }
const bool CanRun(Evt const &evt)
TCEvent evt
Definition: DataStructs.cxx:7
bool cheat::PhotonBackTrackerService::priv_OpDetBTRsReady ( )
inlineprivate

Definition at line 134 of file PhotonBackTrackerService.h.

bool cheat::PhotonBackTrackerService::priv_OpFlashToOpHitsReady ( )
inlineprivate

Definition at line 135 of file PhotonBackTrackerService.h.

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

Definition at line 65 of file PhotonBackTrackerService_service.cc.

66  {
68  if( ! this->priv_CanRun(evt) ){ return; }
69  this->priv_PrepOpDetBTRs(evt);
71  }
TCEvent evt
Definition: DataStructs.cxx:7
void priv_PrepOpFlashToOpHits(art::Event const &evt)
void cheat::PhotonBackTrackerService::priv_PrepFailed ( )
private

Definition at line 79 of file PhotonBackTrackerService_service.cc.

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

Definition at line 87 of file PhotonBackTrackerService_service.cc.

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

Definition at line 98 of file PhotonBackTrackerService_service.cc.

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

Definition at line 47 of file PhotonBackTrackerService.h.

48  {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 59 of file PhotonBackTrackerService_service.cc.

60  {
62  }
static ScheduleContext invalid()
void priv_PrepEvent(art::Event const &evt, art::ScheduleContext)
TCEvent evt
Definition: DataStructs.cxx:7
const std::vector< double > cheat::PhotonBackTrackerService::SimSDPsToXYZ ( std::vector< sim::SDP > const &  sdps) const

Definition at line 246 of file PhotonBackTrackerService_service.cc.

247  {
248  return PhotonBackTracker::SimSDPsToXYZ(sdps);
249  }
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 252 of file PhotonBackTrackerService_service.cc.

253  {
254  return PhotonBackTracker::SimSDPsToXYZ(sdps_Ps);
255  }
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 209 of file PhotonBackTrackerService_service.cc.

210  {
211  return PhotonBackTracker::TrackIdsToOpHits_Ps(tkIds, hitsIn);
212  }
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 203 of file PhotonBackTrackerService_service.cc.

204  {
205  return PhotonBackTracker::TrackIdToOpHits_Ps(tkId, hitsIn);
206  }
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 132 of file PhotonBackTrackerService_service.cc.

133  {
135  }
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 138 of file PhotonBackTrackerService_service.cc.

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

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