All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Member Functions | List of all members
opdet::DefaultOpDetResponse Class Reference
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

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 18 of file DefaultOpDetResponse_service.cc.

Constructor & Destructor Documentation

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

Definition at line 38 of file DefaultOpDetResponse_service.cc.

39  {
40  this->doReconfigure(pset);
41  }
void doReconfigure(fhicl::ParameterSet const &p) override

Member Function Documentation

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

Implements opdet::OpDetResponseInterface.

Definition at line 58 of file DefaultOpDetResponse_service.cc.

59  {
60  newOpChannel = OpChannel;
61  return true;
62  }
bool opdet::DefaultOpDetResponse::doDetectedLite ( int  OpChannel,
int &  newOpChannel 
) const
overrideprivatevirtual

Implements opdet::OpDetResponseInterface.

Definition at line 65 of file DefaultOpDetResponse_service.cc.

66  {
67  newOpChannel = OpChannel;
68  return true;
69  }
void opdet::DefaultOpDetResponse::doReconfigure ( fhicl::ParameterSet const &  p)
overrideprivatevirtual

Implements opdet::OpDetResponseInterface.

Definition at line 44 of file DefaultOpDetResponse_service.cc.

45  {
46  auto const* LarProp = lar::providerFrom<detinfo::LArPropertiesService>();
47 
48  if ( LarProp->ScintPreScale() < 1 ) {
49  mf::LogWarning("DefaultOpDetResponse_service") << "A prescale of " << LarProp->ScintPreScale() << " has been applied during optical MC production, "
50  << "but DefaultOpDetResponse does not include any QE so this effect is not being corrected out.";
51  assert(false);
52  }
53 
54  }

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