|
|
Go to the documentation of this file.
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!";
92 for (uint16_t istr = 0; istr <
anal->peds()[iapv].size(); istr++) {
93 constexpr
float high_threshold = 5.;
94 constexpr
float low_threshold = 2.;
95 constexpr
bool disable_strip =
false;
96 Fed9U::Fed9UStripDescription
data(static_cast<uint32_t>(
anal->peds()[iapv][istr]),
99 anal->noise()[iapv][istr],
101 Fed9U::Fed9UAddress
addr(ichan, iapv, istr);
102 (*ifed)->getFedStrips().setStrip(
addr,
data);
109 <<
" Unable to find pedestals/noise for FedKey/Id/Ch: " << hex << setw(8)
110 << setfill(
'0') << fed_key.
key() <<
dec <<
"/" << (*ifed)->getFedId() <<
"/"
111 << ichan <<
" and device with FEC/slot/ring/CCU/LLD " << fec_key.fecCrate() <<
"/"
112 << fec_key.fecSlot() <<
"/" << fec_key.fecRing() <<
"/" << fec_key.ccuAddr()
113 <<
"/" << fec_key.ccuChan() <<
"/" << fec_key.channel();
119 <<
" Updated FED pedestals/noise for " << updated <<
" channels";
133 for (uint16_t iapv = 0; iapv < 2; ++iapv) {
135 PedestalsAnalysisDescription*
tmp;
136 tmp =
new PedestalsAnalysisDescription(
anal->dead()[iapv],
138 anal->pedsMean()[iapv],
139 anal->pedsSpread()[iapv],
140 anal->noiseMean()[iapv],
141 anal->noiseSpread()[iapv],
142 anal->rawMean()[iapv],
143 anal->rawSpread()[iapv],
144 anal->pedsMax()[iapv],
145 anal->pedsMin()[iapv],
146 anal->noiseMax()[iapv],
147 anal->noiseMin()[iapv],
148 anal->rawMax()[iapv],
149 anal->rawMin()[iapv],
166 typedef std::vector<std::string>
Strings;
168 Strings::const_iterator istr =
errors.begin();
169 Strings::const_iterator jstr =
errors.end();
170 for (; istr != jstr; ++istr) {
171 tmp->addComments(*istr);
void uploadConfigurations() override
const SiStripDbParams & dbParams() const
const uint32_t & key() const
FedDescriptionsRange getFedDescriptions(std::string partition="")
void uploadFedDescriptions(std::string partition="")
SiStripFedCabling *const cabling() const
FedChannelConnection fedConnection(uint16_t fed_id, uint16_t fed_ch) const
A container class for generic run and event-related info, information required by the commissioning a...
Analyses & data(bool getMaskedData=false)
Log< level::Warning, false > LogWarning
static const char mlDqmClient_[]
void update(SiStripConfigDb::FedDescriptionsRange)
FedDescriptions::range FedDescriptionsRange
An interface class to the DeviceFactory.
Utility class that identifies a position within the strip tracker control structure,...
Class containning control, module, detector and connection information, at the level of a FED channel...
const_iterator_range partitions() const
const uint16_t & feUnit() const
NoiseHistosUsingDb(const edm::ParameterSet &pset, DQMStore *, SiStripConfigDb *const)
bool doUploadConf() const
static const uint16_t invalid_
Log< level::Error, false > LogError
const uint16_t & i2cAddr() const
static const uint16_t APVS_PER_FEDCH
Log< level::Info, true > LogVerbatim
std::vector< AnalysisDescription * > AnalysisDescriptionsV
static const uint16_t FEDCH_PER_FED
SiStripConfigDb *const db() const
void create(SiStripConfigDb::AnalysisDescriptionsV &, Analysis) override
~NoiseHistosUsingDb() override
Histogram-based analysis for pedestal run.
Analyses::iterator Analysis
const uint16_t & feChan() const