#include <CoherentNoiseFactorProvider.h>
Noise::CoherentNoiseFactorProvider::CoherentNoiseFactorProvider |
( |
const fhicl::ParameterSet & |
pset | ) |
|
Definition at line 31 of file CoherentNoiseFactorProvider.cxx.
33 mf::LogInfo(
"CoherentNoiseFactorProvider") <<
"Recover the channel map" ;
38 const auto& channelMap = art::ServiceHandle<icarusDB::IICARUSChannelMap const>{}.get();
42 for(
const auto& boardPair : readoutBoardToChannelMap)
48 mf::LogInfo(
"CoherentNoiseFactorProvider") <<
"==> FragmentID map size: " <<
fCorrFactorsMap.size() << std::endl;
std::map< unsigned int, SlotChannelVecPair > TPCReadoutBoardToChannelMap
CorrFactorsMap fCorrFactorsMap
float Noise::CoherentNoiseFactorProvider::getCoherentNoiseFactor |
( |
unsigned int |
board, |
|
|
unsigned int |
index |
|
) |
| const |
|
overridevirtual |
Implements Noise::ICoherentNoiseFactor.
Definition at line 73 of file CoherentNoiseFactorProvider.cxx.
75 CorrFactorsMap::const_iterator cohFactorsItr =
fCorrFactorsMap.find(board);
78 throw cet::exception(
"CoherentNoiseFactorService")
79 <<
"Readout board " << board <<
", with index " << index <<
"'\n"
80 <<
"This is considered a fatal issue!\n";
82 float cf = cohFactorsItr->second[index];
CorrFactorsMap fCorrFactorsMap
void Noise::CoherentNoiseFactorProvider::resetCoherentNoiseFactors |
( |
const TH1D * |
noiseHist | ) |
|
|
overridevirtual |
Implements Noise::ICoherentNoiseFactor.
Definition at line 55 of file CoherentNoiseFactorProvider.cxx.
57 for(
size_t index = 0; index < 4; index++)
59 float meanVal = noiseHist->GetMean();
63 float corVal = noiseHist->GetRandom() / meanVal;
65 correction.second[index] = corVal;
CorrFactorsMap fCorrFactorsMap
bool Noise::CoherentNoiseFactorProvider::fDiagnosticOutput |
|
private |
The documentation for this class was generated from the following files: