|
|
Go to the documentation of this file.
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());
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],
140 anal->adcLevel()[iapv],
141 anal->fraction()[iapv],
142 anal->topEdge()[iapv],
143 anal->bottomEdge()[iapv],
144 anal->topLevel()[iapv],
145 anal->bottomLevel()[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);
DeviceDescriptionsRange getDeviceDescriptions(std::string partition="")
void uploadConfigurations() override
void update(SiStripConfigDb::DeviceDescriptionsRange)
DeviceDescriptions::range DeviceDescriptionsRange
const edm::ParameterSet & pset() const
const SiStripDbParams & dbParams() const
const uint32_t & key() const
DeviceAddress deviceAddress(const deviceDescription &)
VpspScanHistosUsingDb(const edm::ParameterSet &pset, DQMStore *, SiStripConfigDb *const)
const uint16_t & fecCrate() const
bool existsAs(std::string const ¶meterName, bool trackiness=true) const
checks if a parameter exists as a given type
A container class for generic run and event-related info, information required by the commissioning a...
Analyses & data(bool getMaskedData=false)
bool allowSelectiveUpload_
Log< level::Warning, false > LogWarning
static const char mlDqmClient_[]
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
const_iterator_range partitions() const
bool doUploadConf() const
Log< level::Error, false > LogError
const uint16_t & i2cAddr() const
Log< level::Info, true > LogVerbatim
const uint16_t & ccuAddr() const
void create(SiStripConfigDb::AnalysisDescriptionsV &, Analysis) override
std::vector< AnalysisDescription * > AnalysisDescriptionsV
Histogram-based analysis for VPSP scan.
T getParameter(std::string const &) const
SiStripConfigDb *const db() const
bool deviceIsPresent(const SiStripFecKey &)
const uint16_t & fecSlot() const
Analyses::iterator Analysis
~VpspScanHistosUsingDb() override