1-
21#ifndef CAF_FILLTRUE_H
32#define CAF_FILLTRUE_H
43
5- #include " art/Framework/Services/Registry/ServiceHandle.h"
6-
4+ #include " TRandom.h"
75#include " TDatabasePDG.h"
86#include " CLHEP/Random/RandEngine.h" // CLHEP::HepRandomEngine
97
108// LArSoft includes
11- #include " larcore/Geometry/Geometry.h"
12- #include " larcorealg/Geometry/GeometryCore.h"
139#include " larcorealg/Geometry/BoxBoundedGeo.h"
10+ #include " larcorealg/Geometry/fwd.h"
1411#include " larsim/MCCheater/BackTrackerService.h"
1512#include " larsim/MCCheater/ParticleInventoryService.h"
1613#include " larsim/Utils/TruthMatchUtils.h"
@@ -49,7 +46,7 @@ namespace caf
4946 const TVector3 p1);
5047
5148 caf::g4_process_ GetG4ProcessID (const std::string &name);
52-
49+
5350 void FillSRGlobal (const sbn::evwgh::EventWeightParameterSet& pset,
5451 caf::SRGlobal& srglobal,
5552 std::map<std::string, unsigned int >& weightPSetIndex);
@@ -59,15 +56,15 @@ namespace caf
5956 const caf::SRTruthBranch &srmc,
6057 const cheat::ParticleInventoryService &inventory_service,
6158 const detinfo::DetectorClocksData &clockData,
62- caf::SRSlice &srslice,
59+ caf::SRSlice &srslice,
6360 bool allowEmpty = false );
6461
6562 void FillSliceFakeReco (const std::vector<art::Ptr<recob::Hit>> &hits,
6663 const std::vector<art::Ptr<simb::MCTruth>> &neutrinos,
6764 const caf::SRTruthBranch &srmc,
6865 const cheat::ParticleInventoryService &inventory_service,
6966 const detinfo::DetectorClocksData &clockData,
70- caf::SRSlice &srslice,
67+ caf::SRSlice &srslice,
7168 const std::vector<caf::SRTrueParticle> &srparticles,
7269 const std::vector<art::Ptr<sim::MCTrack>> &mctracks,
7370 const std::vector<geo::BoxBoundedGeo> &volumes,
@@ -87,12 +84,12 @@ namespace caf
8784 const std::vector<geo::BoxBoundedGeo> &active_volumes,
8885 caf::SRMeVPrtl &srtruth);
8986
90- void FillTrueNeutrino (const art::Ptr<simb::MCTruth> mctruth,
91- const simb::MCFlux &mcflux,
87+ void FillTrueNeutrino (const art::Ptr<simb::MCTruth> mctruth,
88+ const simb::MCFlux &mcflux,
9289 const simb::GTruth& gtruth,
93- const std::vector<caf::SRTrueParticle> &srparticles,
90+ const std::vector<caf::SRTrueParticle> &srparticles,
9491 const std::map<int , std::vector<art::Ptr<recob::Hit>>> &id_to_truehit_map,
95- caf::SRTrueInteraction &srneutrino, size_t i,
92+ caf::SRTrueInteraction &srneutrino, size_t i,
9693 const std::vector<geo::BoxBoundedGeo> &active_volumes);
9794
9895 void FillEventWeight (const sbn::evwgh::EventWeightMap& wgtmap,
@@ -108,7 +105,8 @@ namespace caf
108105
109106 void FillTrackCaloTruth (const std::map<int , std::vector<std::pair<geo::WireID, const sim::IDE*>>> &id_to_ide_map,
110107 const std::vector<simb::MCParticle> &mc_particles,
111- const geo::GeometryCore *geo,
108+ const geo::GeometryCore & geometry,
109+ const geo::WireReadoutGeom& wireReadout,
112110 const detinfo::DetectorClocksData &clockData,
113111 const spacecharge::SpaceCharge *sce,
114112 caf::SRTrack& srtrack);
@@ -128,17 +126,17 @@ namespace caf
128126 caf::SRShower& srshower,
129127 bool allowEmpty = false );
130128
131- void FillFakeReco (const std::vector<art::Ptr<simb::MCTruth>> &mctruths,
132- const std::vector<caf::SRTrueParticle> &srparticles,
133- const std::vector<art::Ptr<sim::MCTrack>> &mctracks,
129+ void FillFakeReco (const std::vector<art::Ptr<simb::MCTruth>> &mctruths,
130+ const std::vector<caf::SRTrueParticle> &srparticles,
131+ const std::vector<art::Ptr<sim::MCTrack>> &mctracks,
134132 const std::vector<geo::BoxBoundedGeo> &volumes,
135133 CLHEP::HepRandomEngine &rand,
136134 std::vector<caf::SRFakeReco> &srfakereco);
137135
138- std::map<int , std::vector<std::pair<geo::WireID, const sim::IDE*>>> PrepSimChannels (const std::vector<art::Ptr<sim::SimChannel>> &simchannels, const geo::GeometryCore &geo );
139- std::map<int , std::vector<art::Ptr<recob::Hit>>> PrepTrueHits (const std::vector<art::Ptr<recob::Hit>> &allHits,
136+ std::map<int , std::vector<std::pair<geo::WireID, const sim::IDE*>>> PrepSimChannels (const std::vector<art::Ptr<sim::SimChannel>> &simchannels, const geo::WireReadoutGeom &wireReadout );
137+ std::map<int , std::vector<art::Ptr<recob::Hit>>> PrepTrueHits (const std::vector<art::Ptr<recob::Hit>> &allHits,
140138 const detinfo::DetectorClocksData &clockData, const cheat::BackTrackerService &backtracker);
141- std::map<int , caf::HitsEnergy> SetupIDHitEnergyMap (const std::vector<art::Ptr<recob::Hit>> &allHits, const detinfo::DetectorClocksData &clockData,
139+ std::map<int , caf::HitsEnergy> SetupIDHitEnergyMap (const std::vector<art::Ptr<recob::Hit>> &allHits, const detinfo::DetectorClocksData &clockData,
142140 const cheat::BackTrackerService &backtracker);
143141
144142}
0 commit comments