10 #ifndef OPDET_RESPONSE_INTERFACE_H
11 #define OPDET_RESPONSE_INTERFACE_H
15 namespace sim {
struct OnePhoton; }
18 #include "art/Framework/Services/Registry/ServiceHandle.h"
19 #include "art/Framework/Services/Registry/ServiceDeclarationMacros.h"
20 namespace fhicl {
class ParameterSet; }
39 virtual bool detectedLite(
int OpChannel,
int &newOpChannel)
const;
51 virtual bool doDetectedLite(
int OpChannel,
int &newOpChannel)
const = 0;
75 art::ServiceHandle<geo::Geometry const> geom;
76 return geom->NOpChannels();
89 art::ServiceHandle<geo::Geometry const> geom;
90 return geom->OpDetFromOpChannel(readoutChannel);
99 return doDetected(OpChannel, Phot, newOpChannel);
106 return doDetected(OpChannel, Phot, newOpChannel);
125 return (2.0*3.142)*0.000197/energy;
133 #endif //OPDET_RESPONSE_H
virtual bool doDetectedLite(int OpChannel, int &newOpChannel) const =0
virtual void reconfigure(fhicl::ParameterSet const &p)
All information of a photon entering the sensitive optical detector volume.
virtual bool detected(int OpChannel, const sim::OnePhoton &Phot, int &newOpChannel) const
virtual void doReconfigure(fhicl::ParameterSet const &p)=0
virtual int NOpChannels() const
virtual ~OpDetResponseInterface()=default
virtual bool detectedLite(int OpChannel, int &newOpChannel) const
virtual bool doDetected(int OpChannel, const sim::OnePhoton &Phot, int &newOpChannel) const =0
virtual int doNOpChannels() const
virtual int doReadoutToGeoChannel(int readoutChannel) const
virtual int readoutToGeoChannel(int readoutChannel) const
virtual float wavelength(double energy) const
art framework interface to geometry description