LArSoft  v10_04_05
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 89 of file OpDetResponseInterface.h.

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

92  {
93  return doDetected(OpChannel, Phot, newOpChannel);
94  }
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 97 of file OpDetResponseInterface.h.

98  {
99  int newOpChannel;
100  return doDetected(OpChannel, Phot, newOpChannel);
101  }
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 104 of file OpDetResponseInterface.h.

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

105  {
106  return doDetectedLite(OpChannel, newOpChannel);
107  }
virtual bool doDetectedLite(int OpChannel, int &newOpChannel) const =0
bool opdet::OpDetResponseInterface::detectedLite ( int  OpChannel) const
inlinevirtualinherited

Definition at line 110 of file OpDetResponseInterface.h.

111  {
112  int newOpChannel;
113  return doDetectedLite(OpChannel, newOpChannel);
114  }
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 62 of file OpDetResponseInterface.h.

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

63  {
64  return doNOpChannels();
65  }
int opdet::OpDetResponseInterface::readoutToGeoChannel ( int  readoutChannel) const
inlinevirtualinherited

Definition at line 76 of file OpDetResponseInterface.h.

77  {
78  return doReadoutToGeoChannel(readoutChannel);
79  }
virtual int doReadoutToGeoChannel(int readoutChannel) const
void opdet::OpDetResponseInterface::reconfigure ( fhicl::ParameterSet const &  p)
inlinevirtualinherited

Definition at line 56 of file OpDetResponseInterface.h.

57  {
58  doReconfigure(p);
59  }
virtual void doReconfigure(fhicl::ParameterSet const &p)=0
float opdet::OpDetResponseInterface::wavelength ( double  energy) const
inlinevirtualinherited

Definition at line 117 of file OpDetResponseInterface.h.

References DECLARE_ART_SERVICE_INTERFACE, and energy.

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

118  {
119  return (2.0 * 3.142) * 0.000197 / energy;
120  }
double energy
Definition: plottest35.C:25

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