Public Member Functions | Private Member Functions | List of all members
opdet::DefaultOpDetResponse Class Reference

#include <DefaultOpDetResponse.h>

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

Public Member Functions

 DefaultOpDetResponse (fhicl::ParameterSet const &pset)
 
- Public Member Functions inherited from opdet::OpDetResponseInterface
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)
 
virtual bool doDetected (int OpChannel, const sim::OnePhoton &Phot, int &newOpChannel) const
 
virtual bool doDetectedLite (int OpChannel, int &newOpChannel) const
 

Detailed Description

Definition at line 21 of file DefaultOpDetResponse.h.

Constructor & Destructor Documentation

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

Definition at line 16 of file DefaultOpDetResponse_service.cc.

17  {
18  this->doReconfigure(pset);
19  }
virtual void doReconfigure(fhicl::ParameterSet const &p)

Member Function Documentation

bool opdet::DefaultOpDetResponse::doDetected ( int  OpChannel,
const sim::OnePhoton Phot,
int &  newOpChannel 
) const
privatevirtual

Implements opdet::OpDetResponseInterface.

Definition at line 36 of file DefaultOpDetResponse_service.cc.

37  {
38  newOpChannel = OpChannel;
39  return true;
40  }
Index OpChannel(Index detNum, Index channel)
bool opdet::DefaultOpDetResponse::doDetectedLite ( int  OpChannel,
int &  newOpChannel 
) const
privatevirtual

Implements opdet::OpDetResponseInterface.

Definition at line 43 of file DefaultOpDetResponse_service.cc.

44  {
45  newOpChannel = OpChannel;
46  return true;
47  }
Index OpChannel(Index detNum, Index channel)
void opdet::DefaultOpDetResponse::doReconfigure ( fhicl::ParameterSet const &  p)
privatevirtual

Implements opdet::OpDetResponseInterface.

Definition at line 22 of file DefaultOpDetResponse_service.cc.

23  {
24  auto const* LarProp = lar::providerFrom<detinfo::LArPropertiesService>();
25 
26  if ( LarProp->ScintPreScale() < 1 ) {
27  mf::LogWarning("DefaultOpDetResponse_service") << "A prescale of " << LarProp->ScintPreScale() << " has been applied during optical MC production, "
28  << "but DefaultOpDetResponse does not include any QE so this effect is not being corrected out.";
29  assert(false);
30  }
31 
32  }
MaybeLogger_< ELseverityLevel::ELsev_warning, false > LogWarning

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