#include <Digitizer.h>
Public Member Functions | |
Digitizer (const std::string &anode_tn="AnodePlane", int resolution=12, double gain=-1.0, std::vector< double > fullscale={0.0, 2.0 *units::volt}, std::vector< double > baselines={900 *units::mV, 900 *units::mV, 200 *units::mV}) | |
virtual | ~Digitizer () |
virtual void | configure (const WireCell::Configuration &config) |
Accept a configuration. More... | |
virtual WireCell::Configuration | default_configuration () const |
Optional, override to return a hard-coded default configuration. More... | |
virtual bool | operator() (const input_pointer &inframe, output_pointer &outframe) |
The calling signature: More... | |
double | digitize (double voltage) |
Public Member Functions inherited from WireCell::IFrameFilter | |
virtual | ~IFrameFilter () |
virtual std::string | signature () |
Set the signature for all subclasses. More... | |
Public Member Functions inherited from WireCell::IFunctionNode< IFrame, IFrame > | |
virtual | ~IFunctionNode () |
virtual bool | operator() (const boost::any &anyin, boost::any &anyout) |
The calling signature: More... | |
virtual std::vector< std::string > | input_types () |
virtual std::vector< std::string > | output_types () |
Public Member Functions inherited from WireCell::IFunctionNodeBase | |
virtual | ~IFunctionNodeBase () |
virtual NodeCategory | category () |
Return the behavior category type. More... | |
virtual int | concurrency () |
By default assume all subclasses are stateless. More... | |
Public Member Functions inherited from WireCell::INode | |
virtual | ~INode () |
virtual void | reset () |
Public Member Functions inherited from WireCell::IComponent< INode > | |
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 Attributes | |
IAnodePlane::pointer | m_anode |
std::string | m_anode_tn |
int | m_resolution |
double | m_gain |
std::vector< double > | m_fullscale |
std::vector< double > | m_baselines |
std::string | m_frame_tag |
Log::logptr_t | log |
Additional Inherited Members | |
Public Types inherited from WireCell::IFrameFilter | |
typedef std::shared_ptr< IFrameFilter > | pointer |
Public Types inherited from WireCell::IFunctionNode< IFrame, IFrame > | |
typedef IFrame | input_type |
typedef IFrame | output_type |
typedef std::shared_ptr< const IFrame > | input_pointer |
typedef std::shared_ptr< const IFrame > | output_pointer |
typedef IFunctionNode< IFrame, IFrame > | signature_type |
Public Types inherited from WireCell::IFunctionNodeBase | |
typedef std::shared_ptr< IFunctionNodeBase > | pointer |
Public Types inherited from WireCell::INode | |
enum | NodeCategory { unknown, sourceNode, sinkNode, functionNode, queuedoutNode, joinNode, splitNode, faninNode, fanoutNode, multioutNode, hydraNode } |
Public Types inherited from WireCell::IComponent< INode > | |
typedef std::shared_ptr< INode > | 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 22 of file Digitizer.h.
Gen::Digitizer::Digitizer | ( | const std::string & | anode_tn = "AnodePlane" , |
int | resolution = 12 , |
||
double | gain = -1.0 , |
||
std::vector< double > | fullscale = {0.0, 2.0*units::volt} , |
||
std::vector< double > | baselines = {900*units::mV,900*units::mV,200*units::mV} |
||
) |
Definition at line 19 of file Digitizer.cxx.
|
virtual |
Definition at line 32 of file Digitizer.cxx.
|
virtual |
Accept a configuration.
Implements WireCell::IConfigurable.
Definition at line 59 of file Digitizer.cxx.
|
virtual |
Optional, override to return a hard-coded default configuration.
Reimplemented from WireCell::IConfigurable.
Definition at line 36 of file Digitizer.cxx.
double Gen::Digitizer::digitize | ( | double | voltage | ) |
Definition at line 83 of file Digitizer.cxx.
|
virtual |
The calling signature:
Implements WireCell::IFunctionNode< IFrame, IFrame >.
Definition at line 97 of file Digitizer.cxx.
|
private |
Definition at line 50 of file Digitizer.h.
|
private |
Definition at line 44 of file Digitizer.h.
|
private |
Definition at line 45 of file Digitizer.h.
|
private |
Definition at line 48 of file Digitizer.h.
|
private |
Definition at line 49 of file Digitizer.h.
|
private |
Definition at line 48 of file Digitizer.h.
|
private |
Definition at line 47 of file Digitizer.h.
|
private |
Definition at line 46 of file Digitizer.h.