19 <<
" Constructing object...";
26 <<
" Destructing object...";
36 <<
" NULL pointer to SiStripConfigDb interface!"
37 <<
" Aborting upload...";
46 <<
" Uploading pedestals/noise to DB...";
49 <<
" Completed database upload of " <<
feds.size() <<
" FED descriptions!";
52 <<
" TEST only! No pedestals/noise values will be uploaded to DB...";
61 SiStripConfigDb::FedDescriptionsV::const_iterator ifed;
62 for (ifed =
feds.begin(); ifed !=
feds.end(); ifed++) {
76 Analyses::const_iterator iter =
data().find(fec_key.key());
77 if (iter !=
data().end()) {
79 if (!iter->second->isValid()) {
86 <<
" NULL pointer to analysis object!";
91 uint32_t pedshift = 127;
93 uint32_t pedmin = (uint32_t)
anal->pedsMin()[iapv];
94 pedshift = pedmin < pedshift ? pedmin : pedshift;
99 for (uint16_t istr = 0; istr <
anal->peds()[iapv].size(); istr++) {
100 constexpr
float high_threshold = 5.;
101 constexpr
float low_threshold = 2.;
102 constexpr
bool disable_strip =
false;
103 Fed9U::Fed9UStripDescription
data(static_cast<uint32_t>(
anal->peds()[iapv][istr] - pedshift),
106 anal->raw()[iapv][istr],
108 Fed9U::Fed9UAddress
addr(ichan, iapv, istr);
109 (*ifed)->getFedStrips().setStrip(
addr,
data);
116 <<
" Unable to find pedestals/noise for FedKey/Id/Ch: " << hex << setw(8)
117 << setfill(
'0') << fed_key.
key() <<
dec <<
"/" << (*ifed)->getFedId() <<
"/"
118 << ichan <<
" and device with FEC/slot/ring/CCU/LLD " << fec_key.fecCrate() <<
"/"
119 << fec_key.fecSlot() <<
"/" << fec_key.fecRing() <<
"/" << fec_key.ccuAddr()
120 <<
"/" << fec_key.ccuChan() <<
"/" << fec_key.channel();
126 <<
" Updated FED pedestals/noise for " << updated <<
" channels";
140 for (uint16_t iapv = 0; iapv < 2; ++iapv) {
142 PedestalsAnalysisDescription*
tmp;
143 tmp =
new PedestalsAnalysisDescription(std::vector<uint16_t>(0, 0),
144 std::vector<uint16_t>(0, 0),
145 anal->pedsMean()[iapv],
146 anal->pedsSpread()[iapv],
149 anal->rawMean()[iapv],
150 anal->rawSpread()[iapv],
151 anal->pedsMax()[iapv],
152 anal->pedsMin()[iapv],
155 anal->rawMax()[iapv],
156 anal->rawMin()[iapv],
173 typedef std::vector<std::string>
Strings;
175 Strings::const_iterator istr =
errors.begin();
176 Strings::const_iterator jstr =
errors.end();
177 for (; istr != jstr; ++istr) {
178 tmp->addComments(*istr);