#include <DetectorPropertiesProtoDUNEsp.h>
Classes | |
struct | Configuration_t |
Structure for configuration parameters. More... | |
struct | SternheimerParameters_t |
Parameters for Sternheimer density effect corrections. More... | |
Public Types | |
using | providers_type = lar::ProviderPack< geo::GeometryCore, detinfo::LArProperties > |
List of service providers we depend on. More... | |
Public Member Functions | |
DetectorPropertiesProtoDUNEsp () | |
DetectorPropertiesProtoDUNEsp (fhicl::ParameterSet const &pset, const geo::GeometryCore *geo, const detinfo::LArProperties *lp, std::set< std::string > const &ignore_params={}) | |
DetectorPropertiesProtoDUNEsp (fhicl::ParameterSet const &pset, providers_type providers, std::set< std::string > const &ignore_params={}) | |
Constructs the provider and sets up the dependencies. More... | |
DetectorPropertiesProtoDUNEsp (DetectorPropertiesProtoDUNEsp const &)=delete | |
virtual | ~DetectorPropertiesProtoDUNEsp ()=default |
void | ValidateAndConfigure (fhicl::ParameterSet const &p, std::set< std::string > const &ignore_params={}) |
Configures the provider, first validating the configuration. More... | |
void | Configure (Configuration_t const &config) |
Extracts the relevant configuration from the specified object. More... | |
Configuration_t | ValidateConfiguration (fhicl::ParameterSet const &p, std::set< std::string > const &ignore_params={}) |
Validates the specified configuration. More... | |
bool | UpdateHV (std::string filename) |
bool | UpdateReadoutWindowSize (detinfo::DetectorClocksData const &clockData, std::string filename) |
bool | UpdateTemp (int run) |
detinfo::DetectorPropertiesData | DataFor (const detinfo::DetectorClocksData &clockData) const override |
void | Setup (providers_type providers) |
Sets all the providers at once. More... | |
void | SetGeometry (const geo::GeometryCore *g) |
void | SetLArProperties (const detinfo::LArProperties *lp) |
void | SetNumberTimeSamples (unsigned int nsamp) |
virtual double | Efield (unsigned int planegap=0) const override |
kV/cm More... | |
virtual double | DriftVelocity (double efield=0., double temperature=0.) const override |
cm/us More... | |
virtual double | BirksCorrection (double dQdX) const override |
dQ/dX in electrons/cm, returns dE/dX in MeV/cm. More... | |
virtual double | BirksCorrection (double dQdX, double EField) const override |
virtual double | ModBoxCorrection (double dQdX) const override |
virtual double | ModBoxCorrection (double dQdX, double EField) const override |
virtual double | ElectronLifetime () const override |
Returns the attenuation constant for ionization electrons. More... | |
virtual double | Density (double temperature) const override |
Returns argon density at a given temperature. More... | |
virtual double | Density () const override |
Returns argon density at the temperature from Temperature() More... | |
virtual double | Temperature () const override |
In kelvin. More... | |
virtual double | Eloss (double mom, double mass, double tcut) const override |
Restricted mean energy loss (dE/dx) More... | |
virtual double | ElossVar (double mom, double mass) const override |
Energy loss fluctuation ( ) More... | |
virtual double | ElectronsToADC () const override |
virtual unsigned int | NumberTimeSamples () const override |
virtual unsigned int | ReadOutWindowSize () const override |
virtual double | TimeOffsetU () const override |
virtual double | TimeOffsetV () const override |
virtual double | TimeOffsetZ () const override |
virtual double | TimeOffsetY () const override |
virtual bool | SimpleBoundary () const override |
void | CheckIfConfigured () const |
Public Member Functions inherited from detinfo::DetectorProperties | |
DetectorProperties ()=default | |
DetectorProperties (const DetectorProperties &)=delete | |
DetectorProperties (DetectorProperties &&)=delete | |
DetectorProperties & | operator= (const DetectorProperties &)=delete |
DetectorProperties & | operator= (DetectorProperties &&)=delete |
virtual | ~DetectorProperties ()=default |
virtual DetectorPropertiesData | DataFor (DetectorClocksData const &clockData) const =0 |
Protected Member Functions | |
detinfo::DetectorPropertiesData | CalculateXTicksParams (detinfo::DetectorClocksData const &clockData) const |
std::string | CheckTimeOffsetConfigurationAfterSetup () const |
Checks the configuration of time offsets. More... | |
void | CheckConfigurationAfterSetup () const |
Protected Attributes | |
const detinfo::LArProperties * | fLP |
const geo::GeometryCore * | fGeo |
bool | fGetHVDriftfromMetaData |
bool | fGetReadOutWindowSizefromMetaData |
bool | fUseRunDependentTemperature |
double | fHV_cath |
std::vector< double > | fEfield |
kV/cm (per inter-plane volume) More... | |
double | fElectronlifetime |
microseconds More... | |
double | fTemperature |
kelvin More... | |
double | fSamplingRate |
in ns More... | |
double | fElectronsToADC |
conversion factor for # of ionization electrons to 1 ADC count More... | |
unsigned int | fNumberTimeSamples |
number of clock ticks per event More... | |
unsigned int | fReadOutWindowSize |
number of clock ticks per readout window More... | |
double | fTimeOffsetU |
time offset to convert spacepoint coordinates to hit times on view U More... | |
double | fTimeOffsetV |
time offset to convert spacepoint coordinates to hit times on view V More... | |
double | fTimeOffsetZ |
time offset to convert spacepoint coordinates to hit times on view Z More... | |
double | fTimeOffsetY |
time offset to convert spacepoint coordinates to hit times on view Y More... | |
double | fTimeOffsetX |
time offset to convert spacepoint coordinates to hit times on view X More... | |
double | fHasTimeOffsetU = false |
whether time offset was configured for view U More... | |
double | fHasTimeOffsetV = false |
whether time offset was configured for view V More... | |
double | fHasTimeOffsetZ = false |
whether time offset was configured for view Z More... | |
double | fHasTimeOffsetY = false |
whether time offset was configured for view Y More... | |
double | fHasTimeOffsetX = false |
whether time offset was configured for view X More... | |
SternheimerParameters_t | fSternheimerParameters |
Sternheimer parameters. More... | |
bool | fSimpleBoundary |
Definition at line 59 of file DetectorPropertiesProtoDUNEsp.h.
using spdp::DetectorPropertiesProtoDUNEsp::providers_type = lar::ProviderPack< geo::GeometryCore, detinfo::LArProperties > |
List of service providers we depend on.
Definition at line 65 of file DetectorPropertiesProtoDUNEsp.h.
spdp::DetectorPropertiesProtoDUNEsp::DetectorPropertiesProtoDUNEsp | ( | ) |
Definition at line 56 of file DetectorPropertiesProtoDUNEsp.cxx.
spdp::DetectorPropertiesProtoDUNEsp::DetectorPropertiesProtoDUNEsp | ( | fhicl::ParameterSet const & | pset, |
const geo::GeometryCore * | geo, | ||
const detinfo::LArProperties * | lp, | ||
std::set< std::string > const & | ignore_params = {} |
||
) |
Definition at line 63 of file DetectorPropertiesProtoDUNEsp.cxx.
spdp::DetectorPropertiesProtoDUNEsp::DetectorPropertiesProtoDUNEsp | ( | fhicl::ParameterSet const & | pset, |
providers_type | providers, | ||
std::set< std::string > const & | ignore_params = {} |
||
) |
Constructs the provider and sets up the dependencies.
pset | FHiCL parameter set for provider configuration |
providers | pack of providers DetectorPropertiesStandard depends on |
ignore_params | unknown configuration keys in pset to be tolerated |
Definition at line 82 of file DetectorPropertiesProtoDUNEsp.cxx.
|
delete |
|
virtualdefault |
|
overridevirtual |
dQ/dX in electrons/cm, returns dE/dX in MeV/cm.
Implements detinfo::DetectorProperties.
Definition at line 482 of file DetectorPropertiesProtoDUNEsp.cxx.
|
overridevirtual |
Implements detinfo::DetectorProperties.
Definition at line 486 of file DetectorPropertiesProtoDUNEsp.cxx.
|
protected |
Definition at line 533 of file DetectorPropertiesProtoDUNEsp.cxx.
|
protected |
Checks that provider configuration is complete, using setup information.
Definition at line 633 of file DetectorPropertiesProtoDUNEsp.cxx.
void spdp::DetectorPropertiesProtoDUNEsp::CheckIfConfigured | ( | ) | const |
Verifies that the provider is in a fully configured status
cet::exception | (category DetectorPropertiesStandard) if not ok |
Definition at line 522 of file DetectorPropertiesProtoDUNEsp.cxx.
|
protected |
Checks the configuration of time offsets.
Definition at line 591 of file DetectorPropertiesProtoDUNEsp.cxx.
void spdp::DetectorPropertiesProtoDUNEsp::Configure | ( | Configuration_t const & | config | ) |
Extracts the relevant configuration from the specified object.
Definition at line 229 of file DetectorPropertiesProtoDUNEsp.cxx.
|
override |
Definition at line 223 of file DetectorPropertiesProtoDUNEsp.cxx.
|
overridevirtual |
Returns argon density at a given temperature.
temperature | the temperature in kelvin |
Density is nearly a linear function of temperature. See the NIST tables for details Slope is between -6.2 and -6.1, intercept is 1928 kg/m^3. This parameterization will be good to better than 0.5%.g/cm^3
Implements detinfo::DetectorProperties.
Definition at line 304 of file DetectorPropertiesProtoDUNEsp.cxx.
|
inlineoverridevirtual |
Returns argon density at the temperature from Temperature()
Reimplemented from detinfo::DetectorProperties.
Definition at line 261 of file DetectorPropertiesProtoDUNEsp.h.
|
overridevirtual |
cm/us
Implements detinfo::DetectorProperties.
Definition at line 402 of file DetectorPropertiesProtoDUNEsp.cxx.
|
overridevirtual |
kV/cm
Implements detinfo::DetectorProperties.
Definition at line 293 of file DetectorPropertiesProtoDUNEsp.cxx.
|
inlineoverridevirtual |
Returns the attenuation constant for ionization electrons.
The returned constant τ can be used to know the attenuation the ionization charge undergoes after drifting for a certain time t: (t is measured in microseconds).
This is a uniform, constant value for the detector.
Implements detinfo::DetectorProperties.
Definition at line 245 of file DetectorPropertiesProtoDUNEsp.h.
|
inlineoverridevirtual |
Implements detinfo::DetectorProperties.
Definition at line 291 of file DetectorPropertiesProtoDUNEsp.h.
|
overridevirtual |
Restricted mean energy loss (dE/dx)
mom | momentum of incident particle [GeV/c] |
mass | mass of incident particle [GeV/c^2] |
tcut | maximum kinetic energy of delta rays [MeV]; 0 for unlimited |
Returned value is always positive. For unrestricted mean energy loss, set tcut = 0 (special case), or tcut large.
Based on Bethe-Bloch formula as contained in particle data book. Material parameters are from the configuration.
Implements detinfo::DetectorProperties.
Definition at line 333 of file DetectorPropertiesProtoDUNEsp.cxx.
|
overridevirtual |
Energy loss fluctuation ( )
mom | momentum of incident particle in [GeV/c] |
mass | mass of incident particle [GeV/c^2] |
Based on Bichsel formula referred to but not given in PDG.
Implements detinfo::DetectorProperties.
Definition at line 383 of file DetectorPropertiesProtoDUNEsp.cxx.
|
overridevirtual |
Implements detinfo::DetectorProperties.
Definition at line 503 of file DetectorPropertiesProtoDUNEsp.cxx.
|
overridevirtual |
Implements detinfo::DetectorProperties.
Definition at line 507 of file DetectorPropertiesProtoDUNEsp.cxx.
|
inlineoverridevirtual |
Implements detinfo::DetectorProperties.
Definition at line 292 of file DetectorPropertiesProtoDUNEsp.h.
|
inlineoverridevirtual |
Implements detinfo::DetectorProperties.
Definition at line 293 of file DetectorPropertiesProtoDUNEsp.h.
|
inline |
Definition at line 233 of file DetectorPropertiesProtoDUNEsp.h.
|
inline |
Definition at line 234 of file DetectorPropertiesProtoDUNEsp.h.
|
inline |
Definition at line 235 of file DetectorPropertiesProtoDUNEsp.h.
void spdp::DetectorPropertiesProtoDUNEsp::Setup | ( | providers_type | providers | ) |
Sets all the providers at once.
providers | the pack of service providers we depend on |
lar::DetectorPropertiesStandard::providers_type providers; providers.set(lar::providerFrom<geo::Geometry>()); providers.set(lar::providerFrom<detinfo::LArPropertiesService>()); providers.set(lar::providerFrom<detinfo::DetectorClocksService>()); detprop->Setup(providers);
Definition at line 282 of file DetectorPropertiesProtoDUNEsp.cxx.
|
inlineoverridevirtual |
Implements detinfo::DetectorProperties.
Definition at line 301 of file DetectorPropertiesProtoDUNEsp.h.
|
inlineoverridevirtual |
In kelvin.
Implements detinfo::DetectorProperties.
Definition at line 264 of file DetectorPropertiesProtoDUNEsp.h.
|
inlineoverridevirtual |
Implements detinfo::DetectorProperties.
Definition at line 294 of file DetectorPropertiesProtoDUNEsp.h.
|
inlineoverridevirtual |
Implements detinfo::DetectorProperties.
Definition at line 295 of file DetectorPropertiesProtoDUNEsp.h.
|
inlineoverridevirtual |
Reimplemented from detinfo::DetectorProperties.
Definition at line 297 of file DetectorPropertiesProtoDUNEsp.h.
|
inlineoverridevirtual |
Implements detinfo::DetectorProperties.
Definition at line 296 of file DetectorPropertiesProtoDUNEsp.h.
bool spdp::DetectorPropertiesProtoDUNEsp::UpdateHV | ( | std::string | filename | ) |
Definition at line 146 of file DetectorPropertiesProtoDUNEsp.cxx.
bool spdp::DetectorPropertiesProtoDUNEsp::UpdateReadoutWindowSize | ( | detinfo::DetectorClocksData const & | clockData, |
std::string | filename | ||
) |
Definition at line 112 of file DetectorPropertiesProtoDUNEsp.cxx.
bool spdp::DetectorPropertiesProtoDUNEsp::UpdateTemp | ( | int | run | ) |
Definition at line 93 of file DetectorPropertiesProtoDUNEsp.cxx.
void spdp::DetectorPropertiesProtoDUNEsp::ValidateAndConfigure | ( | fhicl::ParameterSet const & | p, |
std::set< std::string > const & | ignore_params = {} |
||
) |
Configures the provider, first validating the configuration.
p | configuration parameter set |
ignore_params | parameters to be ignored (optional) |
This method will validate the parameter set (except for the parameters it's explicitly told to ignore) and extract the useful information out of it.
Definition at line 273 of file DetectorPropertiesProtoDUNEsp.cxx.
DetectorPropertiesProtoDUNEsp::Configuration_t spdp::DetectorPropertiesProtoDUNEsp::ValidateConfiguration | ( | fhicl::ParameterSet const & | p, |
std::set< std::string > const & | ignore_params = {} |
||
) |
Validates the specified configuration.
p | configuration parameter set |
ignore_params | parameters to be ignored (optional) |
This method will validate the parameter set (except for the parameters it's explicitly told to ignore) and it returns an object ready to be used with Configure().
Definition at line 258 of file DetectorPropertiesProtoDUNEsp.cxx.
|
protected |
kV/cm (per inter-plane volume)
Definition at line 332 of file DetectorPropertiesProtoDUNEsp.h.
|
protected |
microseconds
Definition at line 333 of file DetectorPropertiesProtoDUNEsp.h.
|
protected |
conversion factor for # of ionization electrons to 1 ADC count
Definition at line 336 of file DetectorPropertiesProtoDUNEsp.h.
|
protected |
Definition at line 324 of file DetectorPropertiesProtoDUNEsp.h.
|
protected |
Definition at line 328 of file DetectorPropertiesProtoDUNEsp.h.
|
protected |
Definition at line 329 of file DetectorPropertiesProtoDUNEsp.h.
|
protected |
whether time offset was configured for view U
Definition at line 344 of file DetectorPropertiesProtoDUNEsp.h.
|
protected |
whether time offset was configured for view V
Definition at line 345 of file DetectorPropertiesProtoDUNEsp.h.
|
protected |
whether time offset was configured for view X
Definition at line 348 of file DetectorPropertiesProtoDUNEsp.h.
|
protected |
whether time offset was configured for view Y
Definition at line 347 of file DetectorPropertiesProtoDUNEsp.h.
|
protected |
whether time offset was configured for view Z
Definition at line 346 of file DetectorPropertiesProtoDUNEsp.h.
|
protected |
Definition at line 331 of file DetectorPropertiesProtoDUNEsp.h.
|
protected |
Definition at line 323 of file DetectorPropertiesProtoDUNEsp.h.
|
protected |
number of clock ticks per event
Definition at line 337 of file DetectorPropertiesProtoDUNEsp.h.
|
protected |
number of clock ticks per readout window
Definition at line 338 of file DetectorPropertiesProtoDUNEsp.h.
|
protected |
in ns
Definition at line 335 of file DetectorPropertiesProtoDUNEsp.h.
|
protected |
Definition at line 352 of file DetectorPropertiesProtoDUNEsp.h.
|
protected |
Sternheimer parameters.
Definition at line 350 of file DetectorPropertiesProtoDUNEsp.h.
|
protected |
kelvin
Definition at line 334 of file DetectorPropertiesProtoDUNEsp.h.
|
protected |
time offset to convert spacepoint coordinates to hit times on view U
Definition at line 339 of file DetectorPropertiesProtoDUNEsp.h.
|
protected |
time offset to convert spacepoint coordinates to hit times on view V
Definition at line 340 of file DetectorPropertiesProtoDUNEsp.h.
|
protected |
time offset to convert spacepoint coordinates to hit times on view X
Definition at line 343 of file DetectorPropertiesProtoDUNEsp.h.
|
protected |
time offset to convert spacepoint coordinates to hit times on view Y
Definition at line 342 of file DetectorPropertiesProtoDUNEsp.h.
|
protected |
time offset to convert spacepoint coordinates to hit times on view Z
Definition at line 341 of file DetectorPropertiesProtoDUNEsp.h.
|
protected |
Definition at line 330 of file DetectorPropertiesProtoDUNEsp.h.