#include <EmpiricalNoiseModel.h>
Classes | |
struct | NoiseSpectrum |
Public Member Functions | |
EmpiricalNoiseModel (const std::string &spectra_file="", const int nsamples=10000, const double period=0.5 *units::us, const double wire_length_scale=1.0 *units::cm, const std::string anode_tn="AnodePlane", const std::string chanstat_tn="StaticChannelStatus") | |
virtual | ~EmpiricalNoiseModel () |
virtual const amplitude_t & | operator() (int chid) const |
IChannelSpectrum. More... | |
virtual const std::vector< float > & | freq () const |
virtual const double | gain (int chid) const |
virtual const double | shaping_time (int chid) const |
virtual void | configure (const WireCell::Configuration &config) |
IConfigurable. More... | |
virtual WireCell::Configuration | default_configuration () const |
Optional, override to return a hard-coded default configuration. More... | |
void | resample (NoiseSpectrum &spectrum) const |
void | gen_elec_resp_default () |
amplitude_t | interpolate (int plane, double wire_length) const |
int | get_nsamples () |
Public Member Functions inherited from WireCell::IChannelSpectrum | |
virtual | ~IChannelSpectrum () |
Public Member Functions inherited from WireCell::IComponent< IChannelSpectrum > | |
virtual | ~IComponent () |
Public Member Functions inherited from WireCell::Interface | |
virtual | ~Interface () |
Public Member Functions inherited from WireCell::IConfigurable | |
virtual | ~IConfigurable () |
Public Member Functions inherited from WireCell::IComponent< IConfigurable > | |
virtual | ~IComponent () |
Private Types | |
typedef std::unordered_map< int, amplitude_t > | len_amp_cache_t |
Private Attributes | |
IAnodePlane::pointer | m_anode |
IChannelStatus::pointer | m_chanstat |
std::string | m_spectra_file |
int | m_nsamples |
int | m_fft_length |
double | m_period |
double | m_wlres |
std::string | m_anode_tn |
std::string | m_chanstat_tn |
std::map< int, std::vector< NoiseSpectrum * > > | m_spectral_data |
std::unordered_map< int, int > | m_chid_to_intlen |
std::vector< len_amp_cache_t > | m_amp_cache |
Waveform::realseq_t | m_elec_resp_freq |
std::unordered_map< int, Waveform::realseq_t > | m_elec_resp_cache |
amplitude_t | comb_amp |
Log::logptr_t | log |
Additional Inherited Members | |
Public Types inherited from WireCell::IChannelSpectrum | |
typedef std::vector< float > | amplitude_t |
Public Types inherited from WireCell::IComponent< IChannelSpectrum > | |
typedef std::shared_ptr< IChannelSpectrum > | pointer |
Access subclass facet by pointer. More... | |
typedef std::vector< pointer > | vector |
Vector of shared pointers. More... | |
Public Types inherited from WireCell::Interface | |
typedef std::shared_ptr< Interface > | pointer |
Public Types inherited from WireCell::IComponent< IConfigurable > | |
typedef std::shared_ptr< IConfigurable > | pointer |
Access subclass facet by pointer. More... | |
typedef std::vector< pointer > | vector |
Vector of shared pointers. More... | |
Definition at line 31 of file EmpiricalNoiseModel.h.
|
private |
Definition at line 106 of file EmpiricalNoiseModel.h.
Gen::EmpiricalNoiseModel::EmpiricalNoiseModel | ( | const std::string & | spectra_file = "" , |
const int | nsamples = 10000 , |
||
const double | period = 0.5*units::us , |
||
const double | wire_length_scale = 1.0*units::cm , |
||
const std::string | anode_tn = "AnodePlane" , |
||
const std::string | chanstat_tn = "StaticChannelStatus" |
||
) |
Definition at line 21 of file EmpiricalNoiseModel.cxx.
|
virtual |
Definition at line 48 of file EmpiricalNoiseModel.cxx.
|
virtual |
Implements WireCell::IConfigurable.
Definition at line 150 of file EmpiricalNoiseModel.cxx.
|
virtual |
Optional, override to return a hard-coded default configuration.
The file holding the spectral data
Reimplemented from WireCell::IConfigurable.
Definition at line 80 of file EmpiricalNoiseModel.cxx.
|
virtual |
Definition at line 266 of file EmpiricalNoiseModel.cxx.
|
virtual |
Definition at line 284 of file EmpiricalNoiseModel.cxx.
void Gen::EmpiricalNoiseModel::gen_elec_resp_default | ( | ) |
Definition at line 52 of file EmpiricalNoiseModel.cxx.
|
inline |
Definition at line 87 of file EmpiricalNoiseModel.h.
IChannelSpectrum::amplitude_t Gen::EmpiricalNoiseModel::interpolate | ( | int | plane, |
double | wire_length | ||
) | const |
Definition at line 216 of file EmpiricalNoiseModel.cxx.
|
virtual |
Implements WireCell::IChannelSpectrum.
Definition at line 295 of file EmpiricalNoiseModel.cxx.
void Gen::EmpiricalNoiseModel::resample | ( | NoiseSpectrum & | spectrum | ) | const |
Definition at line 97 of file EmpiricalNoiseModel.cxx.
|
virtual |
Definition at line 275 of file EmpiricalNoiseModel.cxx.
|
mutableprivate |
Definition at line 112 of file EmpiricalNoiseModel.h.
|
private |
Definition at line 114 of file EmpiricalNoiseModel.h.
|
mutableprivate |
Definition at line 107 of file EmpiricalNoiseModel.h.
|
private |
Definition at line 87 of file EmpiricalNoiseModel.h.
|
private |
Definition at line 98 of file EmpiricalNoiseModel.h.
|
private |
Definition at line 91 of file EmpiricalNoiseModel.h.
|
private |
Definition at line 98 of file EmpiricalNoiseModel.h.
|
mutableprivate |
Definition at line 104 of file EmpiricalNoiseModel.h.
|
mutableprivate |
Definition at line 111 of file EmpiricalNoiseModel.h.
|
private |
Definition at line 110 of file EmpiricalNoiseModel.h.
|
private |
Definition at line 95 of file EmpiricalNoiseModel.h.
|
private |
Definition at line 94 of file EmpiricalNoiseModel.h.
|
private |
Definition at line 96 of file EmpiricalNoiseModel.h.
|
private |
Definition at line 93 of file EmpiricalNoiseModel.h.
|
private |
Definition at line 101 of file EmpiricalNoiseModel.h.
|
private |
Definition at line 96 of file EmpiricalNoiseModel.h.