10 #ifndef OPDET_RESPONSE_INTERFACE_H 11 #define OPDET_RESPONSE_INTERFACE_H 31 virtual int NOpChannels()
const;
35 virtual int readoutToGeoChannel(
int readoutChannel)
const;
37 virtual bool detected(
int OpChannel,
const sim::OnePhoton& Phot,
int& newOpChannel)
const;
38 virtual bool detected(
int OpChannel,
const sim::OnePhoton& Phot)
const;
39 virtual bool detectedLite(
int OpChannel,
int& newOpChannel)
const;
40 virtual bool detectedLite(
int OpChannel)
const;
42 virtual float wavelength(
double energy)
const;
47 virtual int doNOpChannels()
const;
48 virtual int doReadoutToGeoChannel(
int readoutChannel)
const;
50 virtual bool doDetected(
int OpChannel,
const sim::OnePhoton& Phot,
int& newOpChannel)
const = 0;
51 virtual bool doDetectedLite(
int OpChannel,
int& newOpChannel)
const = 0;
62 inline int OpDetResponseInterface::NOpChannels()
const 64 return doNOpChannels();
68 inline int OpDetResponseInterface::doNOpChannels()
const 72 return wireReadoutGeom.NOpChannels();
76 inline int OpDetResponseInterface::readoutToGeoChannel(
int readoutChannel)
const 78 return doReadoutToGeoChannel(readoutChannel);
82 inline int OpDetResponseInterface::doReadoutToGeoChannel(
int readoutChannel)
const 85 return wireReadoutGeom.OpDetFromOpChannel(readoutChannel);
89 inline bool OpDetResponseInterface::detected(
int OpChannel,
91 int& newOpChannel)
const 93 return doDetected(OpChannel, Phot, newOpChannel);
97 inline bool OpDetResponseInterface::detected(
int OpChannel,
const sim::OnePhoton& Phot)
const 100 return doDetected(OpChannel, Phot, newOpChannel);
104 inline bool OpDetResponseInterface::detectedLite(
int OpChannel,
int& newOpChannel)
const 106 return doDetectedLite(OpChannel, newOpChannel);
110 inline bool OpDetResponseInterface::detectedLite(
int OpChannel)
const 113 return doDetectedLite(OpChannel, newOpChannel);
117 inline float OpDetResponseInterface::wavelength(
double energy)
const 119 return (2.0 * 3.142) * 0.000197 /
energy;
126 #endif //OPDET_RESPONSE_H
All information of a photon entering the sensitive optical detector volume.
cout<< "Opened file "<< fin<< " ixs= "<< ixs<< endl;if(ixs==0) hhh=(TH1F *) fff-> Get("h1")
#define DECLARE_ART_SERVICE_INTERFACE(svc, scope)