LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
opdet::OpDetResponseInterface Class Referenceabstract

#include "OpDetResponseInterface.h"

Inheritance diagram for opdet::OpDetResponseInterface:
opdet::DefaultOpDetResponse opdet::MicrobooneOpDetResponse

Public Member Functions

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)=0
 
virtual int doNOpChannels () const
 
virtual int doReadoutToGeoChannel (int readoutChannel) const
 
virtual bool doDetected (int OpChannel, const sim::OnePhoton &Phot, int &newOpChannel) const =0
 
virtual bool doDetectedLite (int OpChannel, int &newOpChannel) const =0
 

Detailed Description

Definition at line 27 of file OpDetResponseInterface.h.

Constructor & Destructor Documentation

virtual opdet::OpDetResponseInterface::~OpDetResponseInterface ( )
virtualdefault

Member Function Documentation

bool opdet::OpDetResponseInterface::detected ( int  OpChannel,
const sim::OnePhoton Phot,
int &  newOpChannel 
) const
inlinevirtual

Definition at line 92 of file OpDetResponseInterface.h.

Referenced by opdet::SimPhotonCounter::analyze(), and opdet::OpMCDigi::produce().

95  {
96  return doDetected(OpChannel, Phot, newOpChannel);
97  }
virtual bool doDetected(int OpChannel, const sim::OnePhoton &Phot, int &newOpChannel) const =0
bool opdet::OpDetResponseInterface::detected ( int  OpChannel,
const sim::OnePhoton Phot 
) const
inlinevirtual

Definition at line 100 of file OpDetResponseInterface.h.

101  {
102  int newOpChannel;
103  return doDetected(OpChannel, Phot, newOpChannel);
104  }
virtual bool doDetected(int OpChannel, const sim::OnePhoton &Phot, int &newOpChannel) const =0
bool opdet::OpDetResponseInterface::detectedLite ( int  OpChannel,
int &  newOpChannel 
) const
inlinevirtual

Definition at line 107 of file OpDetResponseInterface.h.

Referenced by opdet::SimPhotonCounter::analyze(), and opdet::OpMCDigi::produce().

108  {
109  return doDetectedLite(OpChannel, newOpChannel);
110  }
virtual bool doDetectedLite(int OpChannel, int &newOpChannel) const =0
bool opdet::OpDetResponseInterface::detectedLite ( int  OpChannel) const
inlinevirtual

Definition at line 113 of file OpDetResponseInterface.h.

114  {
115  int newOpChannel;
116  return doDetectedLite(OpChannel, newOpChannel);
117  }
virtual bool doDetectedLite(int OpChannel, int &newOpChannel) const =0
virtual bool opdet::OpDetResponseInterface::doDetected ( int  OpChannel,
const sim::OnePhoton Phot,
int &  newOpChannel 
) const
privatepure virtual
virtual bool opdet::OpDetResponseInterface::doDetectedLite ( int  OpChannel,
int &  newOpChannel 
) const
privatepure virtual
int opdet::OpDetResponseInterface::doNOpChannels ( ) const
inlineprivatevirtual

Definition at line 70 of file OpDetResponseInterface.h.

References geo::GeometryCore::NOpChannels().

71  {
72  // By default return the number of detector channels
74  return geom->NOpChannels();
75  }
unsigned int NOpChannels() const
Number of electronics channels for all the optical detectors.
int opdet::OpDetResponseInterface::doReadoutToGeoChannel ( int  readoutChannel) const
inlineprivatevirtual

Definition at line 84 of file OpDetResponseInterface.h.

References geo::GeometryCore::OpDetFromOpChannel().

85  {
86  // Pass this call off to the geometry service
88  return geom->OpDetFromOpChannel(readoutChannel);
89  }
unsigned int OpDetFromOpChannel(int opChannel) const
Convert unique channel to detector number.
virtual void opdet::OpDetResponseInterface::doReconfigure ( fhicl::ParameterSet const &  p)
privatepure virtual
int opdet::OpDetResponseInterface::NOpChannels ( ) const
inlinevirtual

Definition at line 64 of file OpDetResponseInterface.h.

Referenced by opdet::SimPhotonCounterAlg::InitializeCounters(), and opdet::OpMCDigi::produce().

65  {
66  return doNOpChannels();
67  }
int opdet::OpDetResponseInterface::readoutToGeoChannel ( int  readoutChannel) const
inlinevirtual

Definition at line 78 of file OpDetResponseInterface.h.

79  {
80  return doReadoutToGeoChannel(readoutChannel);
81  }
virtual int doReadoutToGeoChannel(int readoutChannel) const
void opdet::OpDetResponseInterface::reconfigure ( fhicl::ParameterSet const &  p)
inlinevirtual

Definition at line 58 of file OpDetResponseInterface.h.

59  {
60  doReconfigure(p);
61  }
virtual void doReconfigure(fhicl::ParameterSet const &p)=0
float opdet::OpDetResponseInterface::wavelength ( double  energy) const
inlinevirtual

Definition at line 120 of file OpDetResponseInterface.h.

References DECLARE_ART_SERVICE_INTERFACE, and energy.

Referenced by opdet::SimPhotonCounter::analyze(), and DECLARE_ART_SERVICE_INTERFACE_IMPL().

121  {
122  return (2.0 * 3.142) * 0.000197 / energy;
123  }
double energy
Definition: plottest35.C:25

The documentation for this class was generated from the following file: