LArSoft  v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
opdet::DefaultOpDetResponse Class Reference

#include "DefaultOpDetResponse.h"

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

Public Member Functions

 DefaultOpDetResponse (fhicl::ParameterSet const &pset, art::ActivityRegistry &reg)
 
 ~DefaultOpDetResponse () throw ()
 
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,
art::ActivityRegistry reg 
)

Definition at line 16 of file DefaultOpDetResponse_service.cc.

References doReconfigure().

18  {
19  this->doReconfigure(pset);
20  }
virtual void doReconfigure(fhicl::ParameterSet const &p)
opdet::DefaultOpDetResponse::~DefaultOpDetResponse ( )
throw (
)

Definition at line 23 of file DefaultOpDetResponse_service.cc.

24  { }

Member Function Documentation

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

Definition at line 102 of file OpDetResponseInterface.h.

References opdet::OpDetResponseInterface::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
inlinevirtualinherited

Definition at line 108 of file OpDetResponseInterface.h.

References opdet::OpDetResponseInterface::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
inlinevirtualinherited

Definition at line 115 of file OpDetResponseInterface.h.

References opdet::OpDetResponseInterface::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
inlinevirtualinherited

Definition at line 121 of file OpDetResponseInterface.h.

References opdet::OpDetResponseInterface::doDetectedLite().

122  {
123  int newOpChannel;
124  return doDetectedLite(OpChannel, newOpChannel);
125  }
virtual bool doDetectedLite(int OpChannel, int &newOpChannel) const =0
bool opdet::DefaultOpDetResponse::doDetected ( int  OpChannel,
const sim::OnePhoton Phot,
int &  newOpChannel 
) const
privatevirtual

Implements opdet::OpDetResponseInterface.

Definition at line 42 of file DefaultOpDetResponse_service.cc.

43  {
44  newOpChannel = OpChannel;
45  return true;
46  }
bool opdet::DefaultOpDetResponse::doDetectedLite ( int  OpChannel,
int &  newOpChannel 
) const
privatevirtual

Implements opdet::OpDetResponseInterface.

Definition at line 49 of file DefaultOpDetResponse_service.cc.

References DEFINE_ART_SERVICE_INTERFACE_IMPL.

50  {
51  newOpChannel = OpChannel;
52  return true;
53  }
void opdet::DefaultOpDetResponse::doReconfigure ( fhicl::ParameterSet const &  p)
privatevirtual

Implements opdet::OpDetResponseInterface.

Definition at line 28 of file DefaultOpDetResponse_service.cc.

Referenced by DefaultOpDetResponse().

29  {
30  auto const* LarProp = lar::providerFrom<detinfo::LArPropertiesService>();
31 
32  if ( LarProp->ScintPreScale() < 1 ) {
33  mf::LogWarning("DefaultOpDetResponse_service") << "A prescale of " << LarProp->ScintPreScale() << " has been applied during optical MC production, "
34  << "but DefaultOpDetResponse does not include any QE so this effect is not being corrected out.";
35  assert(false);
36  }
37 
38  }
MaybeLogger_< ELseverityLevel::ELsev_warning, false > LogWarning
int opdet::OpDetResponseInterface::NOpChannels ( ) const
inlinevirtualinherited
int opdet::OpDetResponseInterface::readoutToGeoChannel ( int  readoutChannel) const
inlinevirtualinherited

Definition at line 85 of file OpDetResponseInterface.h.

References opdet::OpDetResponseInterface::doReadoutToGeoChannel().

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

Definition at line 62 of file OpDetResponseInterface.h.

References opdet::OpDetResponseInterface::doReconfigure().

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

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 files: