7 #include "art/Framework/Services/Registry/ServiceDefinitionMacros.h"
24 bool doDetectedLite(
int OpChannel,
int &newOpChannel)
const override;
38 MicrobooneOpDetResponse::MicrobooneOpDetResponse(fhicl::ParameterSet
const& pset)
40 this->doReconfigure(pset);
44 void MicrobooneOpDetResponse::doReconfigure(fhicl::ParameterSet
const& pset)
46 fQE= pset.get<
double>(
"QuantumEfficiency");
48 fWavelengthCutLow= pset.get<
double>(
"WavelengthCutLow");
49 fWavelengthCutHigh= pset.get<
double>(
"WavelengthCutHigh");
71 bool MicrobooneOpDetResponse::doDetected(
int OpChannel,
const sim::OnePhoton& Phot,
int &newOpChannel)
const
74 newOpChannel = OpChannel;
84 double wavel = wavelength(Phot.
Energy);
86 if (wavel < fWavelengthCutLow)
return false;
87 if (wavel > fWavelengthCutHigh)
return false;
93 bool MicrobooneOpDetResponse::doDetectedLite(
int OpChannel,
int &newOpChannel)
const
95 newOpChannel = OpChannel;
All information of a photon entering the sensitive optical detector volume.
MicrobooneOpDetResponse(fhicl::ParameterSet const &pset)
void doReconfigure(fhicl::ParameterSet const &p) override
Simulation objects for optical detectors.
bool doDetectedLite(int OpChannel, int &newOpChannel) const override
float Energy
Scintillation photon energy [GeV].
bool doDetected(int OpChannel, const sim::OnePhoton &Phot, int &newOpChannel) const override