10 #ifndef OPDET_RESPONSE_INTERFACE_H 11 #define OPDET_RESPONSE_INTERFACE_H 33 virtual int NOpChannels()
const;
37 virtual int readoutToGeoChannel(
int readoutChannel)
const;
39 virtual bool detected(
int OpChannel,
const sim::OnePhoton& Phot,
int& newOpChannel)
const;
40 virtual bool detected(
int OpChannel,
const sim::OnePhoton& Phot)
const;
41 virtual bool detectedLite(
int OpChannel,
int& newOpChannel)
const;
42 virtual bool detectedLite(
int OpChannel)
const;
44 virtual float wavelength(
double energy)
const;
49 virtual int doNOpChannels()
const;
50 virtual int doReadoutToGeoChannel(
int readoutChannel)
const;
52 virtual bool doDetected(
int OpChannel,
const sim::OnePhoton& Phot,
int& newOpChannel)
const = 0;
53 virtual bool doDetectedLite(
int OpChannel,
int& newOpChannel)
const = 0;
64 inline int OpDetResponseInterface::NOpChannels()
const 66 return doNOpChannels();
70 inline int OpDetResponseInterface::doNOpChannels()
const 78 inline int OpDetResponseInterface::readoutToGeoChannel(
int readoutChannel)
const 80 return doReadoutToGeoChannel(readoutChannel);
84 inline int OpDetResponseInterface::doReadoutToGeoChannel(
int readoutChannel)
const 92 inline bool OpDetResponseInterface::detected(
int OpChannel,
94 int& newOpChannel)
const 96 return doDetected(OpChannel, Phot, newOpChannel);
100 inline bool OpDetResponseInterface::detected(
int OpChannel,
const sim::OnePhoton& Phot)
const 103 return doDetected(OpChannel, Phot, newOpChannel);
107 inline bool OpDetResponseInterface::detectedLite(
int OpChannel,
int& newOpChannel)
const 109 return doDetectedLite(OpChannel, newOpChannel);
113 inline bool OpDetResponseInterface::detectedLite(
int OpChannel)
const 116 return doDetectedLite(OpChannel, newOpChannel);
120 inline float OpDetResponseInterface::wavelength(
double energy)
const 122 return (2.0 * 3.142) * 0.000197 /
energy;
129 #endif //OPDET_RESPONSE_H
All information of a photon entering the sensitive optical detector volume.
unsigned int NOpChannels() const
Number of electronics channels for all the optical detectors.
unsigned int OpDetFromOpChannel(int opChannel) const
Convert unique channel to detector number.
#define DECLARE_ART_SERVICE_INTERFACE(svc, scope)
art framework interface to geometry description