9 #ifndef CHEAT_PHOTONBACKTRACKERSERVICESERVICE_H 10 #define CHEAT_PHOTONBACKTRACKERSERVICESERVICE_H 20 class ActivityRegistry;
41 "This if the fhicl configuration of the PhotonBackTracker service provider.")};
56 std::vector<art::Ptr<sim::OpDetBacktrackerRecord>>
const& OpDetBTRs();
58 std::vector<const sim::SDP*> TrackIdToSimSDPs_Ps(
int id);
60 std::vector<sim::TrackSDP> OpDetToTrackSDPs(
int OpDetNum,
61 double opHit_start_time,
62 double opHit_end_time);
64 std::vector<sim::TrackSDP> OpHitToTrackSDPs(
recob::OpHit const& opHit);
65 std::vector<int> OpHitToTrackIds(
recob::OpHit const& opHit);
67 std::vector<int> OpHitToEveTrackIds(
recob::OpHit const& opHit);
70 std::vector<sim::TrackSDP> OpHitToEveTrackSDPs(
recob::OpHit const& opHit);
71 std::vector<art::Ptr<recob::OpHit>> TrackIdToOpHits_Ps(
74 std::vector<std::vector<art::Ptr<recob::OpHit>>> TrackIdsToOpHits_Ps(
75 std::vector<int>
const& tkIds,
77 std::vector<const sim::SDP*> OpHitToSimSDPs_Ps(
recob::OpHit const& opHit);
79 std::unordered_set<const sim::SDP*> OpHitToEveSimSDPs_Ps(
recob::OpHit const& opHit);
81 std::vector<double> SimSDPsToXYZ(std::vector<sim::SDP>
const& sdps)
const&;
82 std::vector<double> SimSDPsToXYZ(std::vector<const sim::SDP*>
const& sdps_Ps);
83 std::vector<double> OpHitToXYZ(
recob::OpHit const& opHit);
85 std::set<int> GetSetOfEveIds();
86 std::set<int> GetSetOfTrackIds();
88 std::set<int> GetSetOfEveIds(
const std::vector<recob::OpHit>& opHits);
90 std::set<int> GetSetOfTrackIds(std::vector<recob::OpHit>
const& opHits);
91 double OpHitCollectionPurity(std::set<int>
const& tkIds,
93 double OpHitLightCollectionPurity(std::set<int>
const& tkIds,
95 double OpHitCollectionEfficiency(std::set<int>
const& tkIds,
98 double OpHitLightCollectionEfficiency(std::set<int>
const& tkIds,
105 return PhotonBackTracker::OpHitLightCollectionEfficiency(tkIds, opHits_Ps, opHitsIn_Ps);
115 void priv_PrepFailed();
116 void priv_PrepOpDetBTRs(
art::Event const& evt);
117 void priv_PrepOpFlashToOpHits(
art::Event const& evt);
130 #endif //CHEAT_PHOTONBACKTRACKERSERVICESERVICE_H
auto vector(Vector const &v)
Returns a manipulator which will print the specified array.
bool priv_OpFlashToOpHitsReady()
#define DECLARE_ART_SERVICE(svc, scope)
back track the reconstruction to the simulation
Definition of data types for geometry description.
const provider_type * provider() const
code to link reconstructed objects back to the MC truth information
bool priv_OpDetBTRsReady()
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)