9 #ifndef CHEAT_PHOTONBACKTRACKERSERVICESERVICE_H 10 #define CHEAT_PHOTONBACKTRACKERSERVICESERVICE_H 20 class ActivityRegistry;
44 "This if the fhicl configuration of the PhotonBackTracker service provider.")};
65 const std::vector<art::Ptr<sim::OpDetBacktrackerRecord>>& OpDetBTRs();
66 const double GetDelay();
67 const std::vector<const sim::SDP*> TrackIdToSimSDPs_Ps(
int const&
id);
68 const std::vector<const sim::SDP*> TrackIdToSimSDPs_Ps(
int const&
id,
geo::View_t const& view);
70 const std::vector<sim::TrackSDP> OpDetToTrackSDPs(
int const& OpDetNum,
71 double const& opHit_start_time,
72 double const& opHit_end_time);
74 std::vector<sim::TrackSDP> OpHitToTrackSDPs(
recob::OpHit const& opHit);
75 const std::vector<int> OpHitToTrackIds(
recob::OpHit const& opHit);
77 const std::vector<int> OpHitToEveTrackIds(
recob::OpHit const& opHit);
80 std::vector<sim::TrackSDP> OpHitToEveTrackSDPs(
recob::OpHit const& opHit);
81 const std::vector<art::Ptr<recob::OpHit>> TrackIdToOpHits_Ps(
84 const std::vector<std::vector<art::Ptr<recob::OpHit>>> TrackIdsToOpHits_Ps(
85 std::vector<int>
const& tkIds,
87 const std::vector<const sim::SDP*> OpHitToSimSDPs_Ps(
recob::OpHit const& opHit);
90 const std::unordered_set<const sim::SDP*> OpHitToEveSimSDPs_Ps(
recob::OpHit const& opHit);
92 const std::vector<double> SimSDPsToXYZ(std::vector<sim::SDP>
const& sdps)
const&;
93 const std::vector<double> SimSDPsToXYZ(std::vector<const sim::SDP*>
const& sdps_Ps);
94 const std::vector<double> OpHitToXYZ(
recob::OpHit const& opHit);
96 const std::set<int> GetSetOfEveIds();
97 const std::set<int> GetSetOfTrackIds();
99 const std::set<int> GetSetOfEveIds(
const std::vector<recob::OpHit>& opHits);
101 const std::set<int> GetSetOfTrackIds(std::vector<recob::OpHit>
const& opHits);
102 const double OpHitCollectionPurity(std::set<int>
const& tkIds,
104 const double OpHitLightCollectionPurity(std::set<int>
const& tkIds,
106 const double OpHitCollectionEfficiency(std::set<int>
const& tkIds,
110 const double OpHitCollectionEfficiency(std::set<int>
const& tkIds,
113 const double OpHitLightCollectionEfficiency(
114 std::set<int>
const& tkIds,
118 const double OpHitLightCollectionEfficiency(
119 std::set<int>
const& tkIds,
123 std::set<int>
const& tkIds,
127 return PhotonBackTracker::OpHitLightCollectionEfficiency(tkIds, opHits_Ps, opHitsIn_Ps);
137 void priv_PrepFailed();
138 void priv_PrepOpDetBTRs(
art::Event const& evt);
139 void priv_PrepOpFlashToOpHits(
art::Event const& evt);
151 #endif //CHEAT_PHOTONBACKTRACKERSERVICESERVICE_H
enum geo::_plane_proj View_t
Enumerate the possible plane projections.
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)
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()