Histogram-based analysis for pedestal run.
- Author
- M. Wingham, R.Bainbridge
Definition at line 15 of file NoiseAnalysis.h.
void NoiseAnalysis::print |
( |
std::stringstream & |
ss, |
|
|
uint32_t |
apv_number = 0 |
|
) |
| |
|
overridevirtual |
Prints analysis results.
Implements CommissioningAnalysis.
Definition at line 173 of file NoiseAnalysis.cc.
References dead_, relativeConstraints::empty, alignBH_cfg::fixed, CommissioningAnalysis::getErrorCodes(), CommissioningAnalysis::header(), cuy::ii, isValid(), sistrip::mlCommissioning_, CommissioningAnalysis::myName(), noise_, noiseMax_, noiseMean_, noiseMin_, noiseSpread_, noisy_, peds_, pedsMax_, pedsMean_, pedsMin_, pedsSpread_, raw_, rawMax_, rawMean_, rawMin_, rawSpread_, findQualityFiles::size, and contentValuesCheck::ss.
174 if (iapv == 1 || iapv == 2) {
182 <<
" Unexpected number of pedestal/noise values: " <<
peds_[iapv].size() <<
", " 183 <<
noise_[iapv].size() <<
", " <<
raw_[iapv].size();
188 ss <<
" Monitorables for APV number : " << iapv;
190 ss <<
" (first of pair)";
191 }
else if (iapv == 1) {
192 ss <<
" (second of pair)";
196 ss <<
" Example peds/noise for strips : " 197 <<
" 0, 31, 63, 127" << std::endl
198 <<
" Peds [ADC] : " << std::setw(6) <<
peds_[iapv][0] <<
", " << std::setw(6)
199 <<
peds_[iapv][31] <<
", " << std::setw(6) <<
peds_[iapv][63] <<
", " << std::setw(6) <<
peds_[iapv][127]
201 <<
" Noise [ADC] : " << std::setw(6) <<
noise_[iapv][0] <<
", " << std::setw(6)
202 <<
noise_[iapv][31] <<
", " << std::setw(6) <<
noise_[iapv][63] <<
", " << std::setw(6) <<
noise_[iapv][127]
204 <<
" Raw noise [ADC] : " << std::setw(6) <<
raw_[iapv][0] <<
", " << std::setw(6) <<
raw_[iapv][31]
205 <<
", " << std::setw(6) <<
raw_[iapv][63] <<
", " << std::setw(6) <<
raw_[iapv][127] << std::endl
206 <<
" Dead strips (<5s) [strip] : (" <<
dead_[iapv].size() <<
" in total) ";
207 for (uint16_t
ii = 0;
ii <
dead_[iapv].size();
ii++) {
212 ss <<
" Noisy strips (>5s) [strip] : (" <<
noisy_[iapv].size() <<
" in total) ";
218 <<
" Min/Max pedestal [ADC] : " <<
pedsMin_[iapv] <<
" <-> " <<
pedsMax_[iapv] << std::endl
220 <<
" Min/Max noise [ADC] : " <<
noiseMin_[iapv] <<
" <-> " <<
noiseMax_[iapv] << std::endl
221 <<
" Mean raw noise +/- spread [ADC] : " <<
rawMean_[iapv] <<
" +/- " <<
rawSpread_[iapv] << std::endl
222 <<
" Min/Max raw noise [ADC] : " <<
rawMin_[iapv] <<
" <-> " <<
rawMax_[iapv] << std::endl
223 <<
" Normalised noise : " 224 <<
"(yet to be implemented...)" << std::endl
225 << std::boolalpha <<
" isValid : " <<
isValid() << std::endl
226 << std::noboolalpha <<
" Error codes (found " << std::setw(2) << std::setfill(
' ') <<
getErrorCodes().size()
233 for (; istr != jstr; ++istr) {
const VString & getErrorCodes() const
const std::string & myName() const
static const char mlCommissioning_[]
virtual void header(std::stringstream &) const
Log< level::Warning, false > LogWarning
bool isValid() const override
void NoiseAnalysis::summary |
( |
std::stringstream & |
ss | ) |
const |
|
overridevirtual |
Overrides base method.
Reimplemented from CommissioningAnalysis.
Definition at line 112 of file NoiseAnalysis.cc.
References sistrip::APV, SiStripFecKey::ccuAddr(), SiStripFecKey::ccuChan(), sistrip::extrainfo::commonMode_, sistrip::controlView_, sistrip::dir_, sistrip::dqmRoot_, sistrip::EXPERT_HISTO, SiStripFecKey::fecCrate(), CommissioningAnalysis::fecKey(), SiStripFecKey::fecRing(), SiStripFecKey::fecSlot(), sistrip::FED_KEY, CommissioningAnalysis::fedKey(), SiStripFecKey::i2cAddr(), isValid(), SiStripKey::key(), legacy_, sistrip::LLD_CHAN, SiStripFecKey::lldChan(), CommissioningAnalysis::myName(), EnsembleCalibrationLA_cfg::path, sistrip::extrainfo::pedestals_, sistrip::extrainfo::pedsAndCmSubNoise_, sistrip::extrainfo::pedsAndRawNoise_, sistrip::extrainfo::rawNoise_, SiStripEnumsAndStrings::runType(), contentValuesCheck::ss, AlCaHLTBitMon_QueryRunRegistry::string, and runGCPTkAlMap::title.
118 std::stringstream extra1, extra2, extra3;
164 << fec_key.fecSlot() <<
"/" << fec_key.fecRing() <<
"/" << fec_key.ccuAddr() <<
"/" << fec_key.ccuChan() <<
":" 166 <<
SiStripFecKey(fec_key.fecCrate(), fec_key.fecSlot(), fec_key.fecRing(), fec_key.ccuAddr(), fec_key.ccuChan())
168 <<
":" << title1 <<
";" << title2 <<
";" << title3 <<
";" << title4 << std::endl;
Utility class that holds histogram title.
A container class for generic run and event-related info, information required by the commissioning a...
Utility class that identifies a position within the strip tracker control structure, down to the level of an APV25.
static std::string runType(const sistrip::RunType &)
const std::string & myName() const
const uint16_t & i2cAddr() const
static const char controlView_[]
static const char dqmRoot_[]
const uint32_t & fecKey() const
const uint32_t & fedKey() const
bool isValid() const override