Public Member Functions | Private Attributes | List of all members
WireCell::SigProc::FieldResponse Class Reference

#include <FieldResponse.h>

Inheritance diagram for WireCell::SigProc::FieldResponse:
WireCell::IFieldResponse WireCell::IConfigurable WireCell::IComponent< IFieldResponse > WireCell::IComponent< IConfigurable > WireCell::Interface WireCell::Interface

Public Member Functions

 FieldResponse (const char *frfilename="")
 
virtual ~FieldResponse ()
 
virtual const Response::Schema::FieldResponsefield_response () const
 Return the field response data. More...
 
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...
 
- Public Member Functions inherited from WireCell::IFieldResponse
virtual ~IFieldResponse ()
 
- Public Member Functions inherited from WireCell::IComponent< IFieldResponse >
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

std::string m_fname
 
Response::Schema::FieldResponse m_fr
 

Additional Inherited Members

- Public Types inherited from WireCell::IComponent< IFieldResponse >
typedef std::shared_ptr< IFieldResponsepointer
 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 13 of file FieldResponse.h.

Constructor & Destructor Documentation

SigProc::FieldResponse::FieldResponse ( const char *  frfilename = "")

Definition at line 14 of file FieldResponse.cxx.

15  : m_fname(frfilename)
16 {
17 }
SigProc::FieldResponse::~FieldResponse ( )
virtual

Definition at line 19 of file FieldResponse.cxx.

20 {
21 }

Member Function Documentation

void SigProc::FieldResponse::configure ( const WireCell::Configuration config)
virtual

Accept a configuration.

Implements WireCell::IConfigurable.

Definition at line 31 of file FieldResponse.cxx.

32 {
33  m_fname = get(cfg, "filename", m_fname);
34  if (m_fname.empty()) {
35  THROW(ValueError() << errmsg{"must give field response filename"});
36  }
38 }
boost::error_info< struct tag_errmsg, std::string > errmsg
Definition: Exceptions.h:54
cfg
Definition: dbjson.py:29
Response::Schema::FieldResponse m_fr
Definition: FieldResponse.h:30
#define THROW(e)
Definition: Exceptions.h:25
FieldResponse load(const char *filename)
Definition: Response.cxx:39
WireCell::Configuration SigProc::FieldResponse::default_configuration ( ) const
virtual

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

Reimplemented from WireCell::IConfigurable.

Definition at line 24 of file FieldResponse.cxx.

25 {
27  cfg["filename"] = m_fname;
28  return cfg;
29 }
cfg
Definition: dbjson.py:29
Json::Value Configuration
Definition: Configuration.h:50
const Response::Schema::FieldResponse & SigProc::FieldResponse::field_response ( ) const
virtual

Return the field response data.

Implements WireCell::IFieldResponse.

Definition at line 42 of file FieldResponse.cxx.

43 {
44  return m_fr;
45 }
Response::Schema::FieldResponse m_fr
Definition: FieldResponse.h:30

Member Data Documentation

std::string WireCell::SigProc::FieldResponse::m_fname
private

Definition at line 29 of file FieldResponse.h.

Response::Schema::FieldResponse WireCell::SigProc::FieldResponse::m_fr
private

Definition at line 30 of file FieldResponse.h.


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