All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
NoNoise_tool.cc
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////
2 /// \file NoNoise.cc
3 /// \author F. Varanini
4 ////////////////////////////////////////////////////////////////////////
5 
6 #include <cmath>
7 #include "IGenNoise.h"
8 #include "art/Utilities/ToolMacros.h"
9 #include "messagefacility/MessageLogger/MessageLogger.h"
10 #include "cetlib_except/exception.h"
11 
12 namespace icarus_tool
13 {
14 
16 {
17 public:
18  explicit NoNoise(const fhicl::ParameterSet& pset);
19 
20  ~NoNoise();
21 
22  void configure(const fhicl::ParameterSet& pset) override;
23 
24  void nextEvent() override {return;};
25 
26  void generateNoise(CLHEP::HepRandomEngine&,
27  CLHEP::HepRandomEngine&,
30  double,
31  const geo::PlaneID&,
32  unsigned int) override;
33 
34 private:
35 
36 };
37 
38 //----------------------------------------------------------------------
39 // Constructor.
40 NoNoise::NoNoise(const fhicl::ParameterSet& pset)
41 {
42  configure(pset);
43 }
44 
46 {
47 }
48 
49 void NoNoise::configure(const fhicl::ParameterSet& pset)
50 {
51  // Nothing to do here
52  return;
53 }
54 
55 void NoNoise::generateNoise(CLHEP::HepRandomEngine&,
56  CLHEP::HepRandomEngine&,
57  icarusutil::TimeVec& noise,
59  double noise_factor,
60  const geo::PlaneID&,
61  unsigned int)
62 {
63  // Set all values to 0
64  std::fill(noise.begin(), noise.end(), 0.);
65 
66  return;
67 }
68 
69 DEFINE_ART_CLASS_TOOL(NoNoise)
70 }
void configure(const fhicl::ParameterSet &pset) override
Definition: NoNoise_tool.cc:49
NoNoise(const fhicl::ParameterSet &pset)
Definition: NoNoise_tool.cc:40
The data type to uniquely identify a Plane.
Definition: geo_types.h:472
void generateNoise(CLHEP::HepRandomEngine &, CLHEP::HepRandomEngine &, icarusutil::TimeVec &, detinfo::DetectorPropertiesData const &, double, const geo::PlaneID &, unsigned int) override
Definition: NoNoise_tool.cc:55
std::vector< SigProcPrecision > TimeVec
void fill(const art::PtrVector< recob::Hit > &hits, int only_plane)
void nextEvent() override
Definition: NoNoise_tool.cc:24
This is the interface class for a tool to handle a GenNoise for the overall response.