11 #include "art/Framework/Services/Registry/ServiceDefinitionMacros.h"
12 #include "messagefacility/MessageLogger/MessageLogger.h"
27 bool doDetectedLite(
int OpChannel,
int &newOpChannel)
const override;
38 DefaultOpDetResponse::DefaultOpDetResponse(fhicl::ParameterSet
const& pset)
40 this->doReconfigure(pset);
44 void DefaultOpDetResponse::doReconfigure(fhicl::ParameterSet
const& pset)
46 auto const* LarProp = lar::providerFrom<detinfo::LArPropertiesService>();
48 if ( LarProp->ScintPreScale() < 1 ) {
49 mf::LogWarning(
"DefaultOpDetResponse_service") <<
"A prescale of " << LarProp->ScintPreScale() <<
" has been applied during optical MC production, "
50 <<
"but DefaultOpDetResponse does not include any QE so this effect is not being corrected out.";
58 bool DefaultOpDetResponse::doDetected(
int OpChannel,
const sim::OnePhoton& ,
int &newOpChannel)
const
60 newOpChannel = OpChannel;
65 bool DefaultOpDetResponse::doDetectedLite(
int OpChannel,
int &newOpChannel)
const
67 newOpChannel = OpChannel;
bool doDetectedLite(int OpChannel, int &newOpChannel) const override
Utilities related to art service access.
void doReconfigure(fhicl::ParameterSet const &p) override
All information of a photon entering the sensitive optical detector volume.
bool doDetected(int OpChannel, const sim::OnePhoton &Phot, int &newOpChannel) const override
DefaultOpDetResponse(fhicl::ParameterSet const &pset)