18 <<
" Constructing object...";
30 <<
" Destructing object...";
40 <<
" NULL pointer to SiStripConfigDb interface!" 41 <<
" Aborting upload...";
50 <<
" Uploading VPSP settings to DB...";
53 <<
" Uploaded VPSP settings to DB!";
56 <<
" TEST only! No VPSP settings will be uploaded to DB...";
59 <<
" Upload of VPSP settings to DB finished!";
66 SiStripConfigDb::DeviceDescriptionsV::const_iterator idevice;
67 for (idevice = devices.begin(); idevice != devices.end(); idevice++) {
69 if ((*idevice)->getDeviceType() != APV25) {
74 apvDescription* desc =
dynamic_cast<apvDescription*
>(*idevice);
83 uint16_t ichan = (desc->getAddress() - 0x20) / 2;
84 uint16_t iapv = (desc->getAddress() - 0x20) % 2;
95 <<
" NULL pointer to analysis object!";
100 ss <<
"[VpspScanHistosUsingDb::" << __func__ <<
"]" 101 <<
" Updating VPSP setting for crate/FEC/slot/ring/CCU/LLD/APV " << fec_key.
fecCrate() <<
"/" 103 << fec_key.
channel() << iapv <<
" from " <<
static_cast<uint16_t
>(desc->getVpsp());
105 desc->setVpsp(anal->
vpsp()[0]);
108 desc->setVpsp(anal->
vpsp()[1]);
110 ss <<
" to " <<
static_cast<uint16_t
>(desc->getVpsp());
116 <<
" Unable to find FEC key with params FEC/slot/ring/CCU/LLDchan/APV: " 119 << fec_key.
channel() <<
"/" << iapv + 1;
136 for (uint16_t iapv = 0; iapv < 2; ++iapv) {
138 VpspScanAnalysisDescription*
tmp;
139 tmp =
new VpspScanAnalysisDescription(anal->
vpsp()[iapv],
162 typedef std::vector<std::string>
Strings;
164 Strings::const_iterator istr = errors.begin();
165 Strings::const_iterator jstr = errors.end();
166 for (; istr != jstr; ++istr) {
167 tmp->addComments(*istr);
T getParameter(std::string const &) const
bool isValid() const 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
const VInt & bottomEdge() const
Analyses & data(bool getMaskedData=false)
const uint16_t & fecRing() 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 &)
static const char mlDqmClient_[]
const uint16_t & fecSlot() const
void update(SiStripConfigDb::DeviceDescriptionsRange)
const uint16_t & i2cAddr() 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
VpspScanHistosUsingDb(const edm::ParameterSet &pset, DQMStore *, SiStripConfigDb *const)
const VInt & topLevel() const
const VInt & fraction() const
DeviceDescriptions::range DeviceDescriptionsRange
An interface class to the DeviceFactory.
bool doUploadConf() const
const uint32_t & fecKey() const
bool allowSelectiveUpload_
~VpspScanHistosUsingDb() override
DeviceAddress deviceAddress(const deviceDescription &)
void uploadConfigurations() override
const VInt & vpsp() const
const uint16_t & fecCrate() const
Histogram-based analysis for VPSP scan.
const VInt & adcLevel() const
const SiStripDbParams & dbParams() const
const uint16_t & channel() 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
const VInt & topEdge() const
const VInt & bottomLevel() const
void create(SiStripConfigDb::AnalysisDescriptionsV &, Analysis) override