WireCellToolkit
Wire Cell Simulation, Signal Process and Reconstruction Toolki for Liquid Argon Detectors
WireCell::Gen::EmpiricalNoiseModel Class Reference

#include <EmpiricalNoiseModel.h>

Inheritance diagram for WireCell::Gen::EmpiricalNoiseModel:
Collaboration diagram for WireCell::Gen::EmpiricalNoiseModel:

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_toperator() (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 ()
 

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< IChannelSpectrumpointer
 Access subclass facet by pointer. More...
 
typedef std::vector< pointervector
 Vector of shared pointers. More...
 
- Public Types inherited from WireCell::Interface
typedef std::shared_ptr< Interfacepointer
 
- Public Types inherited from WireCell::IComponent< IConfigurable >
typedef std::shared_ptr< IConfigurablepointer
 Access subclass facet by pointer. More...
 
typedef std::vector< pointervector
 Vector of shared pointers. More...
 

Detailed Description

Definition at line 31 of file EmpiricalNoiseModel.h.

Constructor & Destructor Documentation

◆ EmpiricalNoiseModel()

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.

Here is the call graph for this function:

◆ ~EmpiricalNoiseModel()

Gen::EmpiricalNoiseModel::~EmpiricalNoiseModel ( )
virtual

Definition at line 48 of file EmpiricalNoiseModel.cxx.

Member Function Documentation

◆ configure()

void Gen::EmpiricalNoiseModel::configure ( const WireCell::Configuration config)
virtual

IConfigurable.

Implements WireCell::IConfigurable.

Definition at line 150 of file EmpiricalNoiseModel.cxx.

Here is the call graph for this function:

◆ default_configuration()

WireCell::Configuration Gen::EmpiricalNoiseModel::default_configuration ( ) const
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.

◆ freq()

const std::vector< float > & Gen::EmpiricalNoiseModel::freq ( ) const
virtual

Definition at line 266 of file EmpiricalNoiseModel.cxx.

◆ gain()

const double Gen::EmpiricalNoiseModel::gain ( int  chid) const
virtual

Definition at line 284 of file EmpiricalNoiseModel.cxx.

Here is the caller graph for this function:

◆ gen_elec_resp_default()

void Gen::EmpiricalNoiseModel::gen_elec_resp_default ( )

Definition at line 52 of file EmpiricalNoiseModel.cxx.

Here is the caller graph for this function:

◆ get_nsamples()

int WireCell::Gen::EmpiricalNoiseModel::get_nsamples ( )
inline

Definition at line 87 of file EmpiricalNoiseModel.h.

◆ interpolate()

IChannelSpectrum::amplitude_t Gen::EmpiricalNoiseModel::interpolate ( int  plane,
double  wire_length 
) const

Definition at line 216 of file EmpiricalNoiseModel.cxx.

Here is the caller graph for this function:

◆ operator()()

const IChannelSpectrum::amplitude_t & Gen::EmpiricalNoiseModel::operator() ( int  chid) const
virtual

IChannelSpectrum.

Implements WireCell::IChannelSpectrum.

Definition at line 295 of file EmpiricalNoiseModel.cxx.

Here is the call graph for this function:

◆ resample()

void Gen::EmpiricalNoiseModel::resample ( NoiseSpectrum spectrum) const

Definition at line 97 of file EmpiricalNoiseModel.cxx.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ shaping_time()

const double Gen::EmpiricalNoiseModel::shaping_time ( int  chid) const
virtual

Definition at line 275 of file EmpiricalNoiseModel.cxx.

Here is the caller graph for this function:

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