LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
opdet::DefaultOpDetResponse Class Reference
Inheritance diagram for opdet::DefaultOpDetResponse:
opdet::OpDetResponseInterface

Public Member Functions

 DefaultOpDetResponse (fhicl::ParameterSet const &pset)
 
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

void doReconfigure (fhicl::ParameterSet const &p) override
 
bool doDetected (int OpChannel, const sim::OnePhoton &Phot, int &newOpChannel) const override
 
bool doDetectedLite (int OpChannel, int &newOpChannel) const override
 

Detailed Description

Definition at line 17 of file DefaultOpDetResponse_service.cc.

Constructor & Destructor Documentation

opdet::DefaultOpDetResponse::DefaultOpDetResponse ( fhicl::ParameterSet const &  pset)

Member Function Documentation

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

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
inlinevirtualinherited

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
inlinevirtualinherited

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
inlinevirtualinherited

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
bool opdet::DefaultOpDetResponse::doDetected ( int  OpChannel,
const sim::OnePhoton Phot,
int &  newOpChannel 
) const
overrideprivatevirtual
bool opdet::DefaultOpDetResponse::doDetectedLite ( int  OpChannel,
int &  newOpChannel 
) const
overrideprivatevirtual
void opdet::DefaultOpDetResponse::doReconfigure ( fhicl::ParameterSet const &  p)
overrideprivatevirtual
int opdet::OpDetResponseInterface::NOpChannels ( ) const
inlinevirtualinherited

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
inlinevirtualinherited

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)
inlinevirtualinherited

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
inlinevirtualinherited

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: