|
|
Go to the documentation of this file.
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));
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],
146 anal->baseSlope()[1],
147 anal->baseSlope()[2],
148 anal->baseSlope()[3],
158 anal->zeroLight()[0],
159 anal->zeroLight()[1],
160 anal->zeroLight()[2],
161 anal->zeroLight()[3],
162 anal->linkNoise()[0],
163 anal->linkNoise()[1],
164 anal->linkNoise()[2],
165 anal->linkNoise()[3],
170 anal->threshold()[0],
171 anal->threshold()[1],
172 anal->threshold()[2],
173 anal->threshold()[3],
174 anal->tickHeight()[0],
175 anal->tickHeight()[1],
176 anal->tickHeight()[2],
177 anal->tickHeight()[3],
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);
DeviceDescriptionsRange getDeviceDescriptions(std::string partition="")
DeviceDescriptions::range DeviceDescriptionsRange
const edm::ParameterSet & pset() const
const SiStripDbParams & dbParams() const
const uint32_t & key() const
DeviceAddress deviceAddress(const deviceDescription &)
const uint16_t & fecCrate() const
bool existsAs(std::string const ¶meterName, bool trackiness=true) const
checks if a parameter exists as a given type
void create(SiStripConfigDb::AnalysisDescriptionsV &, Analysis) override
OptoScanHistosUsingDb(const edm::ParameterSet &pset, DQMStore *, SiStripConfigDb *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 uploadConfigurations() override
const uint16_t & channel() const
const uint16_t & fecRing() const
An interface class to the DeviceFactory.
Utility class that identifies a position within the strip tracker control structure,...
void uploadDeviceDescriptions(std::string partition="")
const uint16_t & ccuChan() const
~OptoScanHistosUsingDb() override
static const uint16_t CHANS_PER_LLD
void update(SiStripConfigDb::DeviceDescriptionsRange)
const_iterator_range partitions() const
bool doUploadConf() const
Log< level::Error, false > LogError
const uint16_t & i2cAddr() const
bool allowSelectiveUpload_
Log< level::Info, true > LogVerbatim
const uint16_t & ccuAddr() const
Histogram-based analysis for opto bias/gain scan.
std::vector< AnalysisDescription * > AnalysisDescriptionsV
T getParameter(std::string const &) const
SiStripConfigDb *const db() const
bool deviceIsPresent(const SiStripFecKey &)
const uint16_t & fecSlot() const
Analyses::iterator Analysis