![]() |
LArSoft
v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
|
#include "MicrobooneOpDetResponse.h"
Public Member Functions | |
| MicrobooneOpDetResponse (fhicl::ParameterSet const &pset, art::ActivityRegistry ®) | |
| ~MicrobooneOpDetResponse () 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 |
Private Attributes | |
| float | fQE |
| float | fWavelengthCutLow |
| float | fWavelengthCutHigh |
Definition at line 21 of file MicrobooneOpDetResponse.h.
| opdet::MicrobooneOpDetResponse::MicrobooneOpDetResponse | ( | fhicl::ParameterSet const & | pset, |
| art::ActivityRegistry & | reg | ||
| ) |
Definition at line 18 of file MicrobooneOpDetResponse_service.cc.
References doReconfigure().
| opdet::MicrobooneOpDetResponse::~MicrobooneOpDetResponse | ( | ) | ||
| throw | ( | |||
| ) | ||||
Definition at line 25 of file MicrobooneOpDetResponse_service.cc.
|
inlinevirtualinherited |
Definition at line 102 of file OpDetResponseInterface.h.
References opdet::OpDetResponseInterface::doDetected().
Referenced by opdet::SimPhotonCounter::analyze(), and opdet::OpMCDigi::produce().
|
inlinevirtualinherited |
Definition at line 108 of file OpDetResponseInterface.h.
References opdet::OpDetResponseInterface::doDetected().
|
inlinevirtualinherited |
Definition at line 115 of file OpDetResponseInterface.h.
References opdet::OpDetResponseInterface::doDetectedLite().
Referenced by opdet::SimPhotonCounter::analyze(), and opdet::OpMCDigi::produce().
|
inlinevirtualinherited |
Definition at line 121 of file OpDetResponseInterface.h.
References opdet::OpDetResponseInterface::doDetectedLite().
|
privatevirtual |
Don't apply QE here. It is applied in the uboone
electronics simulation.
Check QE if ( CLHEP::RandFlat::shoot(1.0) > fQE ) return false;
Implements opdet::OpDetResponseInterface.
Definition at line 57 of file MicrobooneOpDetResponse_service.cc.
References sim::OnePhoton::Energy, fWavelengthCutHigh, fWavelengthCutLow, and opdet::OpDetResponseInterface::wavelength().
|
privatevirtual |
Don't apply QE here. It is applied in the uboone
electronics simulation.
Check QE if ( CLHEP::RandFlat::shoot(1.0) > fQE ) return false;
Implements opdet::OpDetResponseInterface.
Definition at line 79 of file MicrobooneOpDetResponse_service.cc.
References DEFINE_ART_SERVICE_INTERFACE_IMPL.
|
privatevirtual |
Don't apply QE here. It is applied in the uboone
electronics simulation.
Correct out the prescaling applied during simulation auto const* LarProp = lar::providerFrom<detinfo::LArPropertiesService>(); fQE = tempfQE / LarProp->ScintPreScale();
if (fQE > 1.0001 ) { mf::LogWarning("MicrobooneOpDetResponse_service") << "Quantum efficiency set in OpDetResponse_service, " << tempfQE << " is too large. It is larger than the prescaling applied during simulation, " << LarProp->ScintPreScale() << ". Final QE must be equalt to or smaller than the QE applied at simulation time."; assert(false); }
Implements opdet::OpDetResponseInterface.
Definition at line 30 of file MicrobooneOpDetResponse_service.cc.
References fQE, fWavelengthCutHigh, fWavelengthCutLow, and fhicl::ParameterSet::get().
Referenced by MicrobooneOpDetResponse().
|
inlinevirtualinherited |
Definition at line 71 of file OpDetResponseInterface.h.
References opdet::OpDetResponseInterface::doNOpChannels().
Referenced by opdet::SimPhotonCounterAlg::InitializeCounters(), and opdet::OpMCDigi::produce().
|
inlinevirtualinherited |
Definition at line 85 of file OpDetResponseInterface.h.
References opdet::OpDetResponseInterface::doReadoutToGeoChannel().
|
inlinevirtualinherited |
Definition at line 62 of file OpDetResponseInterface.h.
References opdet::OpDetResponseInterface::doReconfigure().
|
inlinevirtualinherited |
Definition at line 128 of file OpDetResponseInterface.h.
References DECLARE_ART_SERVICE_INTERFACE, and energy.
Referenced by opdet::SimPhotonCounter::analyze(), and doDetected().
|
private |
Definition at line 35 of file MicrobooneOpDetResponse.h.
Referenced by doReconfigure().
|
private |
Definition at line 38 of file MicrobooneOpDetResponse.h.
Referenced by doDetected(), and doReconfigure().
|
private |
Definition at line 37 of file MicrobooneOpDetResponse.h.
Referenced by doDetected(), and doReconfigure().