10 using namespace sistrip;
22 <<
" Constructing object...";
29 <<
" Destructing object...";
39 <<
" NULL pointer to SiStripConfigDb interface!"
40 <<
" Aborting upload...";
49 <<
" Uploading pedestals/noise to DB...";
52 <<
" Completed database upload of " << feds.size() <<
" FED descriptions!";
55 <<
" TEST only! No pedestals/noise values will be uploaded to DB...";
64 SiStripConfigDb::FedDescriptionsV::const_iterator ifed;
65 for (ifed = feds.begin(); ifed != feds.end(); ifed++) {
79 Analyses::const_iterator iter =
data().find(fec_key.key());
80 if (iter !=
data().end()) {
82 if (!iter->second->isValid()) {
89 <<
" NULL pointer to analysis object!";
95 for (uint16_t istr = 0; istr < anal->
peds()[iapv].size(); istr++) {
96 constexpr
float high_threshold = 5.;
97 constexpr
float low_threshold = 2.;
98 constexpr
bool disable_strip =
false;
99 Fed9U::Fed9UStripDescription
data(static_cast<uint32_t>(anal->
peds()[iapv][istr]),
102 anal->
noise()[iapv][istr],
104 Fed9U::Fed9UAddress
addr(ichan, iapv, istr);
105 (*ifed)->getFedStrips().setStrip(addr,
data);
112 <<
" Unable to find pedestals/noise for FedKey/Id/Ch: " << hex << setw(8)
113 << setfill(
'0') << fed_key.
key() <<
dec <<
"/" << (*ifed)->getFedId() <<
"/"
114 << ichan <<
" and device with FEC/slot/ring/CCU/LLD " << fec_key.fecCrate() <<
"/"
115 << fec_key.fecSlot() <<
"/" << fec_key.fecRing() <<
"/" << fec_key.ccuAddr()
116 <<
"/" << fec_key.ccuChan() <<
"/" << fec_key.channel();
122 <<
" Updated FED pedestals/noise for " << updated <<
" channels";
136 for (uint16_t iapv = 0; iapv < 2; ++iapv) {
138 PedestalsAnalysisDescription*
tmp;
139 tmp =
new PedestalsAnalysisDescription(anal->
dead()[iapv],
169 typedef std::vector<std::string>
Strings;
171 Strings::const_iterator istr = errors.begin();
172 Strings::const_iterator jstr = errors.end();
173 for (; istr != jstr; ++istr) {
174 tmp->addComments(*istr);
const uint16_t & fecSlot() const
Log< level::Info, true > LogVerbatim
~NoiseHistosUsingDb() override
const uint16_t & fecCrate() const
const VVInt & dead() const
const VFloat & noiseMean() const
const uint32_t & fedKey() const
Analyses::iterator Analysis
const VFloat & noiseSpread() const
Analyses & data(bool getMaskedData=false)
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...
const uint16_t & fedCh() const
const VFloat & pedsMax() const
FedDescriptionsRange getFedDescriptions(std::string partition="")
FedDescriptions::range FedDescriptionsRange
static const char mlDqmClient_[]
const VFloat & rawMin() const
uint16_t lldChannel() const
const VFloat & rawMax() const
Log< level::Error, false > LogError
const VFloat & pedsMean() const
const uint16_t & i2cAddr() const
const uint16_t & fedId() const
const uint32_t & key() const
Utility class that identifies a position within the strip tracker control structure, down to the level of an APV25.
const_iterator_range partitions() const
const uint16_t & fecRing() const
Class containning control, module, detector and connection information, at the level of a FED channel...
const VVFloat & noise() const
An interface class to the DeviceFactory.
const uint16_t & ccuChan() const
bool doUploadConf() const
const VVInt & noisy() const
NoiseHistosUsingDb(const edm::ParameterSet &pset, DQMStore *, SiStripConfigDb *const, edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > tTopoToken)
const uint32_t & fecKey() const
const uint16_t & ccuAddr() const
const VFloat & pedsSpread() const
const VFloat & noiseMin() const
const VFloat & noiseMax() const
const VFloat & rawSpread() const
const VFloat & rawMean() const
const uint16_t & feUnit() const
const SiStripDbParams & dbParams() const
void uploadFedDescriptions(std::string partition="")
static const uint16_t invalid_
const VVFloat & peds() const
void create(SiStripConfigDb::AnalysisDescriptionsV &, Analysis) override
void update(SiStripConfigDb::FedDescriptionsRange)
static const uint16_t FEDCH_PER_FED
std::vector< AnalysisDescription * > AnalysisDescriptionsV
const uint16_t & feChan() const
Histogram-based analysis for pedestal run.
SiStripConfigDb *const db() const
void uploadConfigurations() override
Log< level::Warning, false > LogWarning
SiStripFedCabling *const cabling() const
const VString & getErrorCodes() const
static const uint16_t APVS_PER_FEDCH
bool isValid() const override
const VFloat & pedsMin() const