SilentNoise.h
Go to the documentation of this file.
1 #ifndef WIRECELLGEN_SILENTNOISE
2 #define WIRECELLGEN_SILENTNOISE
3 
6 
7 namespace WireCell {
8  namespace Gen {
9 
10  /// A source of "noise" which has no noise. It's used just as
11  /// an trivial example which real noise models may copy.
12  /// Although it inherits from IConfigurable, it's not really.
13  /// Again, just giving an example.
14  class SilentNoise : public IFrameSource, public IConfigurable {
15  public:
16  SilentNoise();
17  virtual ~SilentNoise();
18 
19 
20  // configurable
21  virtual void configure(const WireCell::Configuration& config);
23 
24  // frame source
25  virtual bool operator()(output_pointer& out);
26 
27  private:
28  int m_count;
31  };
32  }
33 }
34 
35 #endif
std::string string
Definition: nybbler.cc:12
std::shared_ptr< const IFrame > output_pointer
Definition: ISourceNode.h:38
virtual WireCell::Configuration default_configuration() const
Optional, override to return a hard-coded default configuration.
Definition: SilentNoise.cxx:32
static Config * config
Definition: config.cpp:1054
Definition: Main.h:22
virtual void configure(const WireCell::Configuration &config)
Accept a configuration.
Definition: SilentNoise.cxx:25
Json::Value Configuration
Definition: Configuration.h:50
virtual bool operator()(output_pointer &out)
The calling signature:
Definition: SilentNoise.cxx:42