Skip to content

Commit 5cda7c1

Browse files
Fix conflicts with new larsim version
1 parent 1cca17c commit 5cda7c1

3 files changed

Lines changed: 8 additions & 2 deletions

File tree

sbndcode/TPCPMTBarycenterMatching/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ set( MODULE_LIBRARIES
1010
larreco::Calorimetry
1111
larsim::PhotonPropagation
1212
larsim::PhotonPropagation_PhotonVisibilityService_service
13+
larsim::OpticalPath
1314
lardata::Utilities
1415
nusimdata::SimulationBase
1516
nurandom::RandomUtils_NuRandomService_service

sbndcode/TPCPMTBarycenterMatching/TPCPMTBarycenterMatching_module.cc

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
#include "art/Framework/Principal/Handle.h"
2121
#include "art/Framework/Principal/Run.h"
2222
#include "art/Framework/Principal/SubRun.h"
23+
#include "art/Utilities/make_tool.h"
2324
#include "canvas/Utilities/InputTag.h"
2425
#include "fhiclcpp/ParameterSet.h"
2526
#include "messagefacility/MessageLogger/MessageLogger.h"
@@ -40,6 +41,7 @@
4041
#include "larcore/Geometry/WireReadout.h"
4142
#include "larcorealg/Geometry/GeometryCore.h"
4243
#include "larsim/PhotonPropagation/SemiAnalyticalModel.h"
44+
#include "larsim/PhotonPropagation/OpticalPathTools/OpticalPath.h"
4345
#include "larcore/CoreUtils/ServiceUtil.h"
4446
#include "sbndcode/OpDetSim/sbndPDMapAlg.hh"
4547

@@ -289,6 +291,7 @@ class TPCPMTBarycenterMatchProducer : public art::EDProducer {
289291
std::unique_ptr<phot::SemiAnalyticalModel> _semi_model;
290292
fhicl::ParameterSet _vuv_params;
291293
fhicl::ParameterSet _vis_params;
294+
std::shared_ptr<phot::OpticalPath> _optical_path_tool;
292295

293296
};
294297

@@ -384,8 +387,8 @@ TPCPMTBarycenterMatchProducer::TPCPMTBarycenterMatchProducer(fhicl::ParameterSet
384387

385388
_vuv_params = p.get<fhicl::ParameterSet>("VUVHits");
386389
_vis_params = p.get<fhicl::ParameterSet>("VIVHits");
387-
_semi_model = std::make_unique<phot::SemiAnalyticalModel>(_vuv_params, _vis_params, true, false);
388-
390+
_optical_path_tool = std::shared_ptr<phot::OpticalPath>(art::make_tool<phot::OpticalPath>(p.get<fhicl::ParameterSet>("OpticalPathTool")));
391+
_semi_model = std::make_unique<phot::SemiAnalyticalModel>(_vuv_params, _vis_params, _optical_path_tool, true, false);
389392
}
390393

391394
void TPCPMTBarycenterMatchProducer::produce(art::Event& e)

sbndcode/TPCPMTBarycenterMatching/job/sbnd_tpcpmt3dbarycentermatching_config.fcl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#include "opticalsimparameterisations_sbnd.fcl"
22
#include "digi_pmt_sbnd.fcl"
33
#include "calorimetry_sbnd.fcl"
4+
#include "sbndopticalpath_tool.fcl"
45

56
BEGIN_PROLOG
67

@@ -24,6 +25,7 @@ TPCPMTBarycenterMatchProducer:
2425
ZError: 23 // cm
2526
AngleError: 27 // deg
2627
FlashVetoWindow: [-1500000,1500000] // ns
28+
OpticalPathTool: @local::SBNDOpticalPath
2729
module_type: "TPCPMTBarycenterMatchProducer"
2830
}
2931

0 commit comments

Comments
 (0)