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

#include <Microboone.h>

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

Public Member Functions

 ConfigFilterBase (const std::string &anode="AnodePlane", const std::string &noisedb="OmniChannelNoiseDB")
 
virtual ~ConfigFilterBase ()
 
virtual void configure (const WireCell::Configuration &config)
 IConfigurable configuration interface. 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 37 of file Microboone.h.

Constructor & Destructor Documentation

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

Definition at line 849 of file Microboone.cxx.

Microboone::ConfigFilterBase::~ConfigFilterBase ( )
virtual

Definition at line 852 of file Microboone.cxx.

852 {}

Member Function Documentation

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

IConfigurable configuration interface.

Implements WireCell::IConfigurable.

Definition at line 853 of file Microboone.cxx.

854 {
855  m_anode_tn = get(cfg, "anode", m_anode_tn);
856  m_anode = Factory::find_tn<IAnodePlane>(m_anode_tn);
857  m_noisedb_tn = get(cfg, "noisedb", m_noisedb_tn);
858  m_noisedb = Factory::find_tn<IChannelNoiseDatabase>(m_noisedb_tn);
859  //std::cerr << "ConfigFilterBase: \n" << cfg << "\n";
860 }
cfg
Definition: dbjson.py:29
IChannelNoiseDatabase::pointer m_noisedb
Definition: Microboone.h:55
WireCell::Configuration Microboone::ConfigFilterBase::default_configuration ( ) const
virtual

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

Reimplemented from WireCell::IConfigurable.

Definition at line 861 of file Microboone.cxx.

862 {
864  cfg["anode"] = m_anode_tn;
865  cfg["noisedb"] = m_noisedb_tn;
866  return cfg;
867 }
cfg
Definition: dbjson.py:29
Json::Value Configuration
Definition: Configuration.h:50
void WireCell::SigProc::Microboone::ConfigFilterBase::set_channel_noisedb ( WireCell::IChannelNoiseDatabase::pointer  ndb)
inline

Definition at line 49 of file Microboone.h.

49  {
50  m_noisedb = ndb;
51  }
IChannelNoiseDatabase::pointer m_noisedb
Definition: Microboone.h:55

Member Data Documentation

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

Definition at line 54 of file Microboone.h.

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

Definition at line 53 of file Microboone.h.

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

Definition at line 55 of file Microboone.h.

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

Definition at line 53 of file Microboone.h.


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