#include <DPhaseRealisticNoiseService.h>
Public Member Functions | |
DPhaseRealisticNoiseService (fhicl::ParameterSet const &pset) | |
DPhaseRealisticNoiseService (fhicl::ParameterSet const &pset, art::ActivityRegistry &) | |
~DPhaseRealisticNoiseService () | |
int | addNoise (detinfo::DetectorClocksData const &clockData, detinfo::DetectorPropertiesData const &detProp, Channel chan, AdcSignalVector &sigs) const |
std::ostream & | print (std::ostream &out=std::cout, std::string prefix="") const |
void | generateNoise (detinfo::DetectorPropertiesData const &detProp, std::vector< double > frequencyVector, AdcSignalVector &noise, TH1 *aNoiseHist, double customRandom) |
Public Member Functions inherited from ChannelNoiseService | |
virtual | ~ChannelNoiseService ()=default |
virtual void | newEvent () |
Private Member Functions | |
unsigned int | GetModelSize () const |
void | SetModelSize (unsigned int size) |
double | GetShift (AdcSignalVector time_vector, int window_length) const |
void | Chan2Phase (std::map< Channel, double > &PhaseChannelMap) const |
void | generateNoise (detinfo::DetectorPropertiesData const &detProp) |
void | mirrorWaveform (AdcSignalVector &noise, int TimeSamples) const |
void | importNoiseModel (std::string noiseModel, std::vector< double > &frequencyArrayX, std::vector< double > &frequencyArrayY) const |
Private Attributes | |
std::string | fNoiseModel |
noise model root file More... | |
unsigned int | fNoiseArrayPoints |
number of points in randomly generated noise array More... | |
double | fRandomizeX |
randomization of the average frequency spectrum (on kX or kZ) More... | |
double | fRandomizeY |
< randomization of the average frequency spectrum (on kY) More... | |
double | fSmooth |
bool | fSetFirst0 |
< set the first bin of the frequency array to 0 More... | |
bool | fSetBaseline |
< Sum baseline model to the data More... | |
bool | fOldNoiseIndex |
Use old selection of noise array index. More... | |
int | fRandomSeed |
Seed for random number service. If absent or zero, use SeedSvc. More... | |
int | fLogLevel |
Log message level: 0=quiet, 1=init only, 2+=every event. More... | |
std::vector< double > | fNoiseModelFrequenciesX |
Array storing the frequencies imported from the model in kHz for plane kX (kZ) More... | |
std::vector< double > | fNoiseModelFrequenciesY |
Array storing the frequencies imported from the model in kHz for plane kY (kZ) More... | |
AdcSignalVectorVector | fNoiseX |
noise on each channel for each time for X plane More... | |
AdcSignalVectorVector | fNoiseY |
noise on each channel for each time for Y plane More... | |
TH1 * | fNoiseHistX |
distribution of noise counts for X More... | |
TH1 * | fNoiseHistY |
distribution of noise counts for Y More... | |
TH1 * | fNoiseChanHist |
distribution of accessed noise samples More... | |
unsigned int | fModelsize |
CLHEP::HepRandomEngine * | m_pran |
Additional Inherited Members | |
Public Types inherited from ChannelNoiseService | |
typedef unsigned int | Channel |
Definition at line 28 of file DPhaseRealisticNoiseService.h.
DPhaseRealisticNoiseService::DPhaseRealisticNoiseService | ( | fhicl::ParameterSet const & | pset | ) |
Definition at line 44 of file DPhaseRealisticNoiseService_service.cc.
DPhaseRealisticNoiseService::DPhaseRealisticNoiseService | ( | fhicl::ParameterSet const & | pset, |
art::ActivityRegistry & | |||
) |
Definition at line 98 of file DPhaseRealisticNoiseService_service.cc.
DPhaseRealisticNoiseService::~DPhaseRealisticNoiseService | ( | ) |
Definition at line 103 of file DPhaseRealisticNoiseService_service.cc.
|
virtual |
Implements ChannelNoiseService.
Definition at line 113 of file DPhaseRealisticNoiseService_service.cc.
|
private |
Definition at line 272 of file DPhaseRealisticNoiseService_service.cc.
void DPhaseRealisticNoiseService::generateNoise | ( | detinfo::DetectorPropertiesData const & | detProp, |
std::vector< double > | frequencyVector, | ||
AdcSignalVector & | noise, | ||
TH1 * | aNoiseHist, | ||
double | customRandom | ||
) |
Definition at line 375 of file DPhaseRealisticNoiseService_service.cc.
|
private |
Definition at line 450 of file DPhaseRealisticNoiseService_service.cc.
|
private |
Definition at line 262 of file DPhaseRealisticNoiseService_service.cc.
|
private |
Definition at line 298 of file DPhaseRealisticNoiseService_service.cc.
|
private |
Definition at line 193 of file DPhaseRealisticNoiseService_service.cc.
|
private |
Definition at line 312 of file DPhaseRealisticNoiseService_service.cc.
|
virtual |
Implements ChannelNoiseService.
Definition at line 175 of file DPhaseRealisticNoiseService_service.cc.
|
private |
Definition at line 266 of file DPhaseRealisticNoiseService_service.cc.
|
private |
Log message level: 0=quiet, 1=init only, 2+=every event.
Definition at line 91 of file DPhaseRealisticNoiseService.h.
|
private |
Definition at line 109 of file DPhaseRealisticNoiseService.h.
|
private |
number of points in randomly generated noise array
Definition at line 83 of file DPhaseRealisticNoiseService.h.
|
private |
distribution of accessed noise samples
Definition at line 105 of file DPhaseRealisticNoiseService.h.
|
private |
distribution of noise counts for X
Definition at line 103 of file DPhaseRealisticNoiseService.h.
|
private |
distribution of noise counts for Y
Definition at line 104 of file DPhaseRealisticNoiseService.h.
|
private |
noise model root file
Definition at line 82 of file DPhaseRealisticNoiseService.h.
|
private |
Array storing the frequencies imported from the model in kHz for plane kX (kZ)
Definition at line 94 of file DPhaseRealisticNoiseService.h.
|
private |
Array storing the frequencies imported from the model in kHz for plane kY (kZ)
Definition at line 95 of file DPhaseRealisticNoiseService.h.
|
private |
noise on each channel for each time for X plane
Definition at line 98 of file DPhaseRealisticNoiseService.h.
|
private |
noise on each channel for each time for Y plane
Definition at line 99 of file DPhaseRealisticNoiseService.h.
|
private |
Use old selection of noise array index.
Definition at line 89 of file DPhaseRealisticNoiseService.h.
|
private |
randomization of the average frequency spectrum (on kX or kZ)
Definition at line 84 of file DPhaseRealisticNoiseService.h.
|
private |
< randomization of the average frequency spectrum (on kY)
Definition at line 85 of file DPhaseRealisticNoiseService.h.
|
private |
Seed for random number service. If absent or zero, use SeedSvc.
Definition at line 90 of file DPhaseRealisticNoiseService.h.
|
private |
< Sum baseline model to the data
Definition at line 88 of file DPhaseRealisticNoiseService.h.
|
private |
< set the first bin of the frequency array to 0
Definition at line 87 of file DPhaseRealisticNoiseService.h.
|
private |
Definition at line 86 of file DPhaseRealisticNoiseService.h.
|
private |
Definition at line 111 of file DPhaseRealisticNoiseService.h.