Public Member Functions | Protected Attributes | List of all members
WireCell::SigProc::Protodune::ConfigFilterBase Class Reference

#include <Protodune.h>

Inheritance diagram for WireCell::SigProc::Protodune::ConfigFilterBase:
WireCell::IConfigurable WireCell::IComponent< IConfigurable > WireCell::Interface WireCell::SigProc::Protodune::OneChannelNoise

Public Member Functions

 ConfigFilterBase (const std::string &anode="AnodePlane", const std::string &noisedb="OmniChannelNoiseDB")
 
virtual ~ConfigFilterBase ()
 
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...
 
void set_channel_noisedb (WireCell::IChannelNoiseDatabase::pointer ndb)
 
- Public Member Functions inherited from WireCell::IConfigurable
virtual ~IConfigurable ()
 
- Public Member Functions inherited from WireCell::IComponent< IConfigurable >
virtual ~IComponent ()
 
- Public Member Functions inherited from WireCell::Interface
virtual ~Interface ()
 

Protected Attributes

std::string m_anode_tn
 
std::string m_noisedb_tn
 
IAnodePlane::pointer m_anode
 
IChannelNoiseDatabase::pointer m_noisedb
 

Additional Inherited Members

- 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...
 
- Public Types inherited from WireCell::Interface
typedef std::shared_ptr< Interfacepointer
 

Detailed Description

Definition at line 28 of file Protodune.h.

Constructor & Destructor Documentation

Protodune::ConfigFilterBase::ConfigFilterBase ( const std::string anode = "AnodePlane",
const std::string noisedb = "OmniChannelNoiseDB" 
)

Definition at line 599 of file Protodune.cxx.

Protodune::ConfigFilterBase::~ConfigFilterBase ( )
virtual

Definition at line 602 of file Protodune.cxx.

602 {}

Member Function Documentation

void Protodune::ConfigFilterBase::configure ( const WireCell::Configuration config)
virtual

Accept a configuration.

Implements WireCell::IConfigurable.

Reimplemented in WireCell::SigProc::Protodune::OneChannelNoise.

Definition at line 603 of file Protodune.cxx.

604 {
605  m_anode_tn = get(cfg, "anode", m_anode_tn);
606  m_anode = Factory::find_tn<IAnodePlane>(m_anode_tn);
607  m_noisedb_tn = get(cfg, "noisedb", m_noisedb_tn);
608  m_noisedb = Factory::find_tn<IChannelNoiseDatabase>(m_noisedb_tn);
609  //std::cerr << "ConfigFilterBase: \n" << cfg << "\n";
610 }
cfg
Definition: dbjson.py:29
IChannelNoiseDatabase::pointer m_noisedb
Definition: Protodune.h:46
WireCell::Configuration Protodune::ConfigFilterBase::default_configuration ( ) const
virtual

Optional, override to return a hard-coded default configuration.

Reimplemented from WireCell::IConfigurable.

Reimplemented in WireCell::SigProc::Protodune::OneChannelNoise.

Definition at line 611 of file Protodune.cxx.

612 {
614  cfg["anode"] = m_anode_tn;
615  cfg["noisedb"] = m_noisedb_tn;
616  return cfg;
617 }
cfg
Definition: dbjson.py:29
Json::Value Configuration
Definition: Configuration.h:50
void WireCell::SigProc::Protodune::ConfigFilterBase::set_channel_noisedb ( WireCell::IChannelNoiseDatabase::pointer  ndb)
inline

Definition at line 40 of file Protodune.h.

40  {
41  m_noisedb = ndb;
42  }
IChannelNoiseDatabase::pointer m_noisedb
Definition: Protodune.h:46

Member Data Documentation

IAnodePlane::pointer WireCell::SigProc::Protodune::ConfigFilterBase::m_anode
protected

Definition at line 45 of file Protodune.h.

std::string WireCell::SigProc::Protodune::ConfigFilterBase::m_anode_tn
protected

Definition at line 44 of file Protodune.h.

IChannelNoiseDatabase::pointer WireCell::SigProc::Protodune::ConfigFilterBase::m_noisedb
protected

Definition at line 46 of file Protodune.h.

std::string WireCell::SigProc::Protodune::ConfigFilterBase::m_noisedb_tn
protected

Definition at line 44 of file Protodune.h.


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