LArSoft  v07_13_02
Liquid Argon Software toolkit - http://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 29 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 102 of file OpDetResponseInterface.h.

References doDetected().

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

103  {
104  return doDetected(OpChannel, Phot, newOpChannel);
105  }
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 108 of file OpDetResponseInterface.h.

References doDetected().

109  {
110  int newOpChannel;
111  return doDetected(OpChannel, Phot, newOpChannel);
112  }
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 115 of file OpDetResponseInterface.h.

References doDetectedLite().

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

116  {
117  return doDetectedLite(OpChannel, newOpChannel);
118  }
virtual bool doDetectedLite(int OpChannel, int &newOpChannel) const =0
bool opdet::OpDetResponseInterface::detectedLite ( int  OpChannel) const
inlinevirtual

Definition at line 121 of file OpDetResponseInterface.h.

References doDetectedLite().

122  {
123  int newOpChannel;
124  return doDetectedLite(OpChannel, newOpChannel);
125  }
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 77 of file OpDetResponseInterface.h.

References geo::GeometryCore::NOpChannels().

Referenced by NOpChannels().

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

Definition at line 91 of file OpDetResponseInterface.h.

References geo::GeometryCore::OpDetFromOpChannel().

Referenced by readoutToGeoChannel().

92  {
93  // Pass this call off to the geometry service
95  return geom->OpDetFromOpChannel(readoutChannel);
96  }
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 71 of file OpDetResponseInterface.h.

References doNOpChannels().

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

72  {
73  return doNOpChannels();
74  }
int opdet::OpDetResponseInterface::readoutToGeoChannel ( int  readoutChannel) const
inlinevirtual

Definition at line 85 of file OpDetResponseInterface.h.

References doReadoutToGeoChannel().

86  {
87  return doReadoutToGeoChannel(readoutChannel);
88  }
virtual int doReadoutToGeoChannel(int readoutChannel) const
void opdet::OpDetResponseInterface::reconfigure ( fhicl::ParameterSet const &  p)
inlinevirtual

Definition at line 62 of file OpDetResponseInterface.h.

References doReconfigure().

63  {
64  doReconfigure(p);
65  }
virtual void doReconfigure(fhicl::ParameterSet const &p)=0
float opdet::OpDetResponseInterface::wavelength ( double  energy) const
inlinevirtual

Definition at line 128 of file OpDetResponseInterface.h.

References DECLARE_ART_SERVICE_INTERFACE, and energy.

Referenced by opdet::SimPhotonCounter::analyze(), and opdet::MicrobooneOpDetResponse::doDetected().

129  {
130  return (2.0*3.142)*0.000197/energy;
131  }
double energy
Definition: plottest35.C:25

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