All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Attributes | List of all members
icarus_tool::RandomNoise Class Reference
Inheritance diagram for icarus_tool::RandomNoise:
icarus_tool::IGenNoise

Public Member Functions

 RandomNoise (const fhicl::ParameterSet &pset)
 
 ~RandomNoise ()
 
void configure (const fhicl::ParameterSet &pset) override
 
void nextEvent () override
 
void generateNoise (CLHEP::HepRandomEngine &engine, CLHEP::HepRandomEngine &, icarusutil::TimeVec &, detinfo::DetectorPropertiesData const &, double, const geo::PlaneID &, unsigned int) override
 

Private Attributes

std::string fInputNoiseHistFileName
 
std::string fHistogramName
 
std::vector< double > fNoiseHistVec
 

Additional Inherited Members

- Private Member Functions inherited from icarus_tool::IGenNoise
virtual ~IGenNoise () noexcept=default
 

Detailed Description

Definition at line 24 of file RandomNoise_tool.cc.

Constructor & Destructor Documentation

icarus_tool::RandomNoise::RandomNoise ( const fhicl::ParameterSet &  pset)
explicit

Definition at line 55 of file RandomNoise_tool.cc.

56 {
57  configure(pset);
58 }
void configure(const fhicl::ParameterSet &pset) override
icarus_tool::RandomNoise::~RandomNoise ( )

Definition at line 60 of file RandomNoise_tool.cc.

61 {
62 }

Member Function Documentation

void icarus_tool::RandomNoise::configure ( const fhicl::ParameterSet &  pset)
overridevirtual

Implements icarus_tool::IGenNoise.

Definition at line 64 of file RandomNoise_tool.cc.

65 {
66 
67  return;
68 }
void icarus_tool::RandomNoise::generateNoise ( CLHEP::HepRandomEngine &  engine,
CLHEP::HepRandomEngine &  ,
icarusutil::TimeVec noise,
detinfo::DetectorPropertiesData const &  ,
double  noise_factor,
const geo::PlaneID ,
unsigned int   
)
overridevirtual

Implements icarus_tool::IGenNoise.

Definition at line 70 of file RandomNoise_tool.cc.

77 {
78  CLHEP::RandGaussQ rGauss(engine, 0.0, noise_factor);
79 
80  //In this case noise_factor is a value in ADC counts
81  //It is going to be the Noise RMS
82  //loop over all bins in "noise" vector
83  //and insert random noise value
84  for (unsigned int i=0; i<noise.size(); i++)
85  noise.at(i) = rGauss.fire();
86 
87  return;
88 }
void icarus_tool::RandomNoise::nextEvent ( )
inlineoverridevirtual

Implements icarus_tool::IGenNoise.

Definition at line 33 of file RandomNoise_tool.cc.

33 {return;};

Member Data Documentation

std::string icarus_tool::RandomNoise::fHistogramName
private

Definition at line 46 of file RandomNoise_tool.cc.

std::string icarus_tool::RandomNoise::fInputNoiseHistFileName
private

Definition at line 45 of file RandomNoise_tool.cc.

std::vector<double> icarus_tool::RandomNoise::fNoiseHistVec
private

Definition at line 50 of file RandomNoise_tool.cc.


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