25 <<
"[OptoScanHistosUsingDb::" << __func__ <<
"]" 26 <<
" Constructing object...";
30 <<
"[OptoScanHistosUsingDb::" << __func__ <<
"]" 31 <<
" Skipping db update of gain parameters.";
36 <<
"[OptoScanHistosUsingDb::" << __func__ <<
"]" 37 <<
" Enabling selective upload of gain parameters";
45 <<
"[OptoScanHistosUsingDb::" << __func__ <<
"]" 46 <<
" Destructing object...";
53 <<
"[OptoScanHistosUsingDb::" << __func__ <<
"]";
57 <<
"[OptoScanHistosUsingDb::" << __func__ <<
"]" 58 <<
" NULL pointer to SiStripConfigDb interface!" 59 <<
" Aborting upload...";
68 <<
"[OptoScanHistosUsingDb::" << __func__ <<
"]" 69 <<
" Uploading LLD settings to DB...";
72 <<
"[OptoScanHistosUsingDb::" << __func__ <<
"]" 73 <<
" Upload of LLD settings to DB finished!";
76 <<
"[OptoScanHistosUsingDb::" << __func__ <<
"]" 77 <<
" TEST only! No LLD settings will be uploaded to DB...";
88 SiStripConfigDb::DeviceDescriptionsV::const_iterator idevice;
89 for ( idevice = devices.begin(); idevice != devices.end(); idevice++ ) {
91 if ( (*idevice)->getDeviceType() != LASERDRIVER ) {
continue; }
94 laserdriverDescription* desc =
dynamic_cast<laserdriverDescription*
>( *idevice );
95 if ( !desc ) {
continue; }
118 <<
"[OptoScanHistosUsingDb::" << __func__ <<
"]" 119 <<
" NULL pointer to analysis object!";
124 std::stringstream ss;
125 ss <<
"[OptoScanHistosUsingDb::" << __func__ <<
"]" 126 <<
" Updating LLD gain/bias settings for crate/crate/FEC/ring/CCU/module/LLD " 134 <<
static_cast<uint16_t
>( desc->getGain(ichan) ) <<
"/" 135 << static_cast<uint16_t>( desc->getBias(ichan) );
137 desc->setBias( ichan, anal->
bias()[
gain] );
140 <<
static_cast<uint16_t
>(desc->getGain(ichan)) <<
"/" 141 << static_cast<uint16_t>(desc->getBias(ichan));
147 <<
"[OptoScanHistosUsingDb::" << __func__ <<
"]" 148 <<
" Unable to find FEC key with params crate/FEC/ring/CCU/module/LLD " 161 <<
"[OptoScanHistosUsingDb::" << __func__ <<
"]" 162 <<
" Updated LLD bias/gain settings for " 163 << updated <<
" modules";
174 if ( !anal ) {
return; }
179 for ( uint16_t iapv = 0; iapv < 2; ++iapv ) {
182 OptoScanAnalysisDescription*
tmp;
183 tmp =
new OptoScanAnalysisDescription( anal->
baseSlope()[0],
232 typedef std::vector<std::string>
Strings;
234 Strings::const_iterator istr = errors.begin();
235 Strings::const_iterator jstr = errors.end();
236 for ( ; istr != jstr; ++istr ) { tmp->addComments( *istr ); }
239 desc.push_back( tmp );
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 &)
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
OptoScanHistosUsingDb(const edm::ParameterSet &pset, DQMStore *, SiStripConfigDb *const )
const uint16_t & channel() const
const VFloat & threshold() const
const uint16_t & ccuAddr() const
std::vector< std::vector< double > > tmp
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