9 using namespace sistrip;
21 <<
" Constructing object...";
25 <<
" Skipping db update of gain parameters.";
31 <<
" Enabling selective upload of gain parameters";
38 <<
" Destructing object...";
48 <<
" NULL pointer to SiStripConfigDb interface!"
49 <<
" Aborting upload...";
58 <<
" Uploading LLD settings to DB...";
61 <<
" Upload of LLD settings to DB finished!";
64 <<
" TEST only! No LLD settings will be uploaded to DB...";
73 SiStripConfigDb::DeviceDescriptionsV::const_iterator idevice;
74 for (idevice = devices.begin(); idevice != devices.end(); idevice++) {
75 if ((*idevice)->getDeviceType() != LASERDRIVER) {
80 laserdriverDescription*
desc =
dynamic_cast<laserdriverDescription*
>(*idevice);
99 <<
" NULL pointer to analysis object!";
103 uint16_t gain = anal->
gain();
104 std::stringstream
ss;
105 ss <<
"[OptoScanHistosUsingDb::" << __func__ <<
"]"
106 <<
" Updating LLD gain/bias settings for crate/crate/FEC/ring/CCU/module/LLD " << fec_key.
fecCrate() <<
"/"
108 <<
"/" << fec_key.
channel() <<
" from " <<
static_cast<uint16_t
>(desc->getGain(ichan)) <<
"/"
109 << static_cast<uint16_t>(desc->getBias(ichan));
111 desc->setGain(ichan, gain);
112 desc->setBias(ichan, anal->
bias()[gain]);
114 ss <<
" to " <<
static_cast<uint16_t
>(desc->getGain(ichan)) <<
"/"
115 << static_cast<uint16_t>(desc->getBias(ichan));
121 <<
" Unable to find FEC key with params crate/FEC/ring/CCU/module/LLD "
131 <<
" Updated LLD bias/gain settings for " << updated <<
" modules";
145 for (uint16_t iapv = 0; iapv < 2; ++iapv) {
147 OptoScanAnalysisDescription*
tmp;
148 tmp =
new OptoScanAnalysisDescription(anal->
baseSlope()[0],
197 typedef std::vector<std::string>
Strings;
199 Strings::const_iterator istr = errors.begin();
200 Strings::const_iterator jstr = errors.end();
201 for (; istr != jstr; ++istr) {
202 tmp->addComments(*istr);
Histogram-based analysis for opto bias/gain scan.
const uint16_t & gain() const
Log< level::Info, true > LogVerbatim
void uploadConfigurations() override
OptoScanHistosUsingDb(const edm::ParameterSet &pset, DQMStore *, SiStripConfigDb *const, edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > tTopoToken)
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 &)
const VFloat & liftOff() const
void create(SiStripConfigDb::AnalysisDescriptionsV &, Analysis) override
static const char mlDqmClient_[]
const uint16_t & fecSlot() const
const VFloat & linkNoise() const
Log< level::Error, false > LogError
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
T getParameter(std::string const &) const
const uint16_t & ccuAddr() const
std::vector< AnalysisDescription * > AnalysisDescriptionsV
const uint16_t & ccuChan() const
SiStripConfigDb *const db() const
DeviceDescriptionsRange getDeviceDescriptions(std::string partition="")
Log< level::Warning, false > LogWarning
void uploadDeviceDescriptions(std::string partition="")
const VString & getErrorCodes() const
bool isValid() const override