11 #ifndef SBNDThermalNoiseServiceInTime_H
12 #define SBNDThermalNoiseServiceInTime_H
16 #include "fhiclcpp/ParameterSet.h"
17 #include "art/Framework/Services/Registry/ServiceHandle.h"
18 #include "art/Framework/Services/Registry/ServiceDeclarationMacros.h"
19 #include "art_root_io/TFileService.h"
23 #include "nurandom/RandomUtils/NuRandomService.h"
25 namespace detinfo {
class DetectorClocksData; }
27 #include "CLHEP/Random/RandFlat.h"
28 #include "CLHEP/Random/RandGaussQ.h"
29 #include "CLHEP/Random/JamesRandom.h"
30 #include "CLHEP/Random/RandomEngine.h"
43 class HepRandomEngine;
64 std::ostream&
print(std::ostream& out =
std::cout, std::string prefix =
"")
const override;
81 CLHEP::HepRandomEngine& NoiseEngine((art::ServiceHandle<rndm::NuRandomService>{}->createEngine(*EDProdPointer,
"HepJamesRandom",
"noise",pset,
"Seed")));
int fLogLevel
Log message level: 0=quiet, 1=init only, 2+=every event.
std::ostream & print(std::ostream &out=std::cout, std::string prefix="") const override
SBNDThermalNoiseServiceInTime(fhicl::ParameterSet const &pset)
std::map< double, int > fShapingTimeOrder
void InitialiseProducerDeps(art::EDProducer *EDProdPointer, fhicl::ParameterSet const &pset) override
Service to provide microboone-specific signal shaping for simulation (convolution) and reconstruction...
unsigned int fNoiseArrayPoints
number of points in randomly generated noise array
~SBNDThermalNoiseServiceInTime()
CLHEP::HepRandomEngine * m_pran
int addNoise(detinfo::DetectorClocksData const &clockData, Channel chan, AdcSignalVector &sigs) const override
std::vector< AdcSignal > AdcSignalVector
Contains all timing reference information for the detector.
CLHEP::HepRandomEngine * fNoiseEngine
int fRandomSeed
Seed for random number service. If absent or zero, use SeedSvc.
art framework interface to geometry description
BEGIN_PROLOG could also be cout