#include <MicrobooneOpDetResponse.h>
Public Member Functions | |
MicrobooneOpDetResponse (fhicl::ParameterSet const &pset) | |
Public Member Functions inherited from opdet::OpDetResponseInterface | |
virtual | ~OpDetResponseInterface ()=default |
virtual void | reconfigure (fhicl::ParameterSet const &p) |
virtual int | NOpChannels () const |
virtual int | readoutToGeoChannel (int readoutChannel) const |
virtual bool | detected (int OpChannel, const sim::OnePhoton &Phot, int &newOpChannel) const |
virtual bool | detected (int OpChannel, const sim::OnePhoton &Phot) const |
virtual bool | detectedLite (int OpChannel, int &newOpChannel) const |
virtual bool | detectedLite (int OpChannel) const |
virtual float | wavelength (double energy) const |
Private Member Functions | |
virtual void | doReconfigure (fhicl::ParameterSet const &p) |
virtual bool | doDetected (int OpChannel, const sim::OnePhoton &Phot, int &newOpChannel) const |
virtual bool | doDetectedLite (int OpChannel, int &newOpChannel) const |
Private Attributes | |
float | fQE |
float | fWavelengthCutLow |
float | fWavelengthCutHigh |
Definition at line 21 of file MicrobooneOpDetResponse.h.
opdet::MicrobooneOpDetResponse::MicrobooneOpDetResponse | ( | fhicl::ParameterSet const & | pset | ) |
Definition at line 16 of file MicrobooneOpDetResponse_service.cc.
|
privatevirtual |
Don't apply QE here. It is applied in the uboone electronics simulation.
Check QE if ( CLHEP::RandFlat::shoot(1.0) > fQE ) return false;
Implements opdet::OpDetResponseInterface.
Definition at line 49 of file MicrobooneOpDetResponse_service.cc.
|
privatevirtual |
Don't apply QE here. It is applied in the uboone electronics simulation.
Check QE if ( CLHEP::RandFlat::shoot(1.0) > fQE ) return false;
Implements opdet::OpDetResponseInterface.
Definition at line 71 of file MicrobooneOpDetResponse_service.cc.
|
privatevirtual |
Don't apply QE here. It is applied in the uboone electronics simulation.
Correct out the prescaling applied during simulation auto const* LarProp = lar::providerFrom<detinfo::LArPropertiesService>(); fQE = tempfQE / LarProp->ScintPreScale();
if (fQE > 1.0001 ) { mf::LogWarning("MicrobooneOpDetResponse_service") << "Quantum efficiency set in OpDetResponse_service, " << tempfQE << " is too large. It is larger than the prescaling applied during simulation, " << LarProp->ScintPreScale() << ". Final QE must be equalt to or smaller than the QE applied at simulation time."; assert(false); }
Implements opdet::OpDetResponseInterface.
Definition at line 22 of file MicrobooneOpDetResponse_service.cc.
|
private |
Definition at line 32 of file MicrobooneOpDetResponse.h.
|
private |
Definition at line 35 of file MicrobooneOpDetResponse.h.
|
private |
Definition at line 34 of file MicrobooneOpDetResponse.h.