#include <DPhaseCoherentNoiseService.h>
Public Types | |
typedef std::map< int, std::vector< float > > | Map |
typedef std::map< Channel, AdcSignalVector > | Mask |
Public Types inherited from ChannelNoiseService | |
typedef unsigned int | Channel |
Public Member Functions | |
DPhaseCoherentNoiseService (fhicl::ParameterSet const &pset) | |
DPhaseCoherentNoiseService (fhicl::ParameterSet const &pset, art::ActivityRegistry &) | |
~DPhaseCoherentNoiseService () | |
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 |
Public Member Functions inherited from ChannelNoiseService | |
virtual | ~ChannelNoiseService ()=default |
virtual void | newEvent () |
Public Attributes | |
Map | fChFrequencyMap |
Map storing the frequency vector for each channel. More... | |
Map | fChAmplitudeMap |
Map holding the amplitude of the frequency for each channel. More... | |
Private Member Functions | |
void | getAmplitudeArray (Channel chan, std::vector< float > &array) const |
void | getFrequencyArray (Channel chan, std::vector< float > &array) const |
void | makePhaseMap (Map &phaseMap, int size, float minShift, float maxShift) |
int | getNumber (Channel chan) const |
void | getNoiseArray (detinfo::DetectorClocksData const &clockData, std::vector< float > &noiseArray, std::vector< float > ampArray, std::vector< float > freqArray, std::vector< float > phaseArray, float randAmp) const |
void | getPhases () |
void | importNoiseModel (std::string noiseModel, Map &chFrequencyMap, Map &chAmplitudeMap, double cut, int &normalization) const |
Private Attributes | |
std::string | fNoiseModel |
< noise model root file More... | |
double | fAmplitudeCut |
< only frequencies with amplitude above this cut will be considered More... | |
int | fNormalization |
< Normalization factor ( similar to the one for the InFFT ) More... | |
std::vector< float > | fRandomize |
< randomization of the amplitude More... | |
std::vector< float > | fPhaseShift |
< Phase shift for each group of 30 channels More... | |
std::vector< int > | fChannelGroup |
< Channels in the same group get the same phase More... | |
std::vector< float > | fInchoerentNoise |
< Mean and std of the incoherent noise More... | |
int | fNumberOfPhases |
< Number of pregenerated phase shift maps 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... | |
int | fMaxFrequencySize |
std::vector< Map > | fPhaseMap |
Pregenerated phase shift maps. More... | |
int | fNum =0 |
Hold the correct event number. More... | |
CLHEP::HepRandomEngine * | m_pran |
Definition at line 25 of file DPhaseCoherentNoiseService.h.
typedef std::map<int, std::vector< float > > DPhaseCoherentNoiseService::Map |
Definition at line 30 of file DPhaseCoherentNoiseService.h.
typedef std::map<Channel, AdcSignalVector> DPhaseCoherentNoiseService::Mask |
Definition at line 31 of file DPhaseCoherentNoiseService.h.
DPhaseCoherentNoiseService::DPhaseCoherentNoiseService | ( | fhicl::ParameterSet const & | pset | ) |
Definition at line 51 of file DPhaseCoherentNoiseService_service.cc.
DPhaseCoherentNoiseService::DPhaseCoherentNoiseService | ( | fhicl::ParameterSet const & | pset, |
art::ActivityRegistry & | |||
) |
Definition at line 127 of file DPhaseCoherentNoiseService_service.cc.
DPhaseCoherentNoiseService::~DPhaseCoherentNoiseService | ( | ) |
Definition at line 132 of file DPhaseCoherentNoiseService_service.cc.
|
virtual |
Implements ChannelNoiseService.
Definition at line 142 of file DPhaseCoherentNoiseService_service.cc.
|
private |
Definition at line 277 of file DPhaseCoherentNoiseService_service.cc.
|
private |
Definition at line 290 of file DPhaseCoherentNoiseService_service.cc.
|
private |
Definition at line 409 of file DPhaseCoherentNoiseService_service.cc.
|
private |
Definition at line 254 of file DPhaseCoherentNoiseService_service.cc.
|
private |
Definition at line 453 of file DPhaseCoherentNoiseService_service.cc.
|
private |
Definition at line 303 of file DPhaseCoherentNoiseService_service.cc.
|
private |
Definition at line 362 of file DPhaseCoherentNoiseService_service.cc.
|
virtual |
Implements ChannelNoiseService.
Definition at line 241 of file DPhaseCoherentNoiseService_service.cc.
|
private |
< only frequencies with amplitude above this cut will be considered
Definition at line 82 of file DPhaseCoherentNoiseService.h.
Map DPhaseCoherentNoiseService::fChAmplitudeMap |
Map holding the amplitude of the frequency for each channel.
Definition at line 35 of file DPhaseCoherentNoiseService.h.
|
private |
< Channels in the same group get the same phase
Definition at line 86 of file DPhaseCoherentNoiseService.h.
Map DPhaseCoherentNoiseService::fChFrequencyMap |
Map storing the frequency vector for each channel.
Definition at line 34 of file DPhaseCoherentNoiseService.h.
|
private |
< Mean and std of the incoherent noise
Definition at line 87 of file DPhaseCoherentNoiseService.h.
|
private |
< Log message level: 0=quiet, 1=init only, 2+=every event
Definition at line 90 of file DPhaseCoherentNoiseService.h.
|
private |
Definition at line 93 of file DPhaseCoherentNoiseService.h.
|
private |
< noise model root file
Definition at line 81 of file DPhaseCoherentNoiseService.h.
|
private |
< Normalization factor ( similar to the one for the InFFT )
Definition at line 83 of file DPhaseCoherentNoiseService.h.
|
mutableprivate |
Hold the correct event number.
Definition at line 95 of file DPhaseCoherentNoiseService.h.
|
private |
< Number of pregenerated phase shift maps
Definition at line 88 of file DPhaseCoherentNoiseService.h.
|
private |
Pregenerated phase shift maps.
Definition at line 94 of file DPhaseCoherentNoiseService.h.
|
private |
< Phase shift for each group of 30 channels
Definition at line 85 of file DPhaseCoherentNoiseService.h.
|
private |
< randomization of the amplitude
Definition at line 84 of file DPhaseCoherentNoiseService.h.
|
private |
< Seed for random number service. If absent or zero, use SeedSvc.
Definition at line 89 of file DPhaseCoherentNoiseService.h.
|
private |
Definition at line 98 of file DPhaseCoherentNoiseService.h.