18 <<
" Constructing object...";
22 <<
" Skipping db update of gain parameters.";
28 <<
" Enabling selective upload of gain parameters";
35 <<
" Destructing object...";
45 <<
" NULL pointer to SiStripConfigDb interface!" 46 <<
" Aborting upload...";
55 <<
" Uploading LLD settings to DB...";
58 <<
" Upload of LLD settings to DB finished!";
61 <<
" TEST only! No LLD settings will be uploaded to DB...";
70 SiStripConfigDb::DeviceDescriptionsV::const_iterator idevice;
71 for (idevice = devices.begin(); idevice != devices.end(); idevice++) {
72 if ((*idevice)->getDeviceType() != LASERDRIVER) {
77 laserdriverDescription* desc =
dynamic_cast<laserdriverDescription*
>(*idevice);
96 <<
" NULL pointer to analysis object!";
101 std::stringstream
ss;
102 ss <<
"[OptoScanHistosUsingDb::" << __func__ <<
"]" 103 <<
" Updating LLD gain/bias settings for crate/crate/FEC/ring/CCU/module/LLD " << fec_key.
fecCrate() <<
"/" 105 <<
"/" << fec_key.
channel() <<
" from " <<
static_cast<uint16_t
>(desc->getGain(ichan)) <<
"/" 106 << static_cast<uint16_t>(desc->getBias(ichan));
108 desc->setGain(ichan, gain);
109 desc->setBias(ichan, anal->
bias()[
gain]);
111 ss <<
" to " <<
static_cast<uint16_t
>(desc->getGain(ichan)) <<
"/" 112 << static_cast<uint16_t>(desc->getBias(ichan));
118 <<
" Unable to find FEC key with params crate/FEC/ring/CCU/module/LLD " 128 <<
" Updated LLD bias/gain settings for " << updated <<
" modules";
142 for (uint16_t iapv = 0; iapv < 2; ++iapv) {
144 OptoScanAnalysisDescription*
tmp;
145 tmp =
new OptoScanAnalysisDescription(anal->
baseSlope()[0],
194 typedef std::vector<std::string>
Strings;
196 Strings::const_iterator istr = errors.begin();
197 Strings::const_iterator jstr = errors.end();
198 for (; istr != jstr; ++istr) {
199 tmp->addComments(*istr);
Histogram-based analysis for opto bias/gain scan.
const uint16_t & gain() const
T getParameter(std::string const &) const
void uploadConfigurations() override
bool existsAs(std::string const ¶meterName, bool trackiness=true) const
checks if a parameter exists as a given type
const uint32_t & fedKey() const
Analyses::iterator Analysis
Analyses & data(bool getMaskedData=false)
const uint16_t & fecRing() const
const VFloat & baseSlope() const
A container class for generic run and event-related info, information required by the commissioning a...
const edm::ParameterSet & pset() const
bool deviceIsPresent(const SiStripFecKey &)
OptoScanHistosUsingDb(const edm::ParameterSet &pset, DQMStore *, SiStripConfigDb *const)
const VFloat & liftOff() const
void create(SiStripConfigDb::AnalysisDescriptionsV &, Analysis) override
static const char mlDqmClient_[]
const uint16_t & fecSlot() const
const VFloat & linkNoise() const
bool allowSelectiveUpload_
const uint16_t & i2cAddr() const
const VFloat & measGain() const
const uint32_t & key() const
const VFloat & tickHeight() 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 VFloat & zeroLight() const
void update(SiStripConfigDb::DeviceDescriptionsRange)
DeviceDescriptions::range DeviceDescriptionsRange
static const uint16_t CHANS_PER_LLD
An interface class to the DeviceFactory.
bool doUploadConf() const
const uint32_t & fecKey() const
DeviceAddress deviceAddress(const deviceDescription &)
const uint16_t & fecCrate() const
const VInt & bias() const
~OptoScanHistosUsingDb() override
const SiStripDbParams & dbParams() const
const uint16_t & channel() const
const VFloat & threshold() const
const uint16_t & ccuAddr() const
std::vector< AnalysisDescription * > AnalysisDescriptionsV
const uint16_t & ccuChan() const
SiStripConfigDb *const db() const
DeviceDescriptionsRange getDeviceDescriptions(std::string partition="")
void uploadDeviceDescriptions(std::string partition="")
const VString & getErrorCodes() const
bool isValid() const override