25 <<
"[VpspScanHistosUsingDb::" << __func__ <<
"]" 26 <<
" Constructing object...";
30 <<
"[PedestalsHistosUsingDb::" << __func__ <<
"]" 39 <<
"[VpspScanHistosUsingDb::" << __func__ <<
"]" 40 <<
" Destructing object...";
47 <<
"[VpspScanHistosUsingDb::" << __func__ <<
"]";
51 <<
"[VpspScanHistosUsingDb::" << __func__ <<
"]" 52 <<
" NULL pointer to SiStripConfigDb interface!" 53 <<
" Aborting upload...";
62 <<
"[VpspScanHistosUsingDb::" << __func__ <<
"]" 63 <<
" Uploading VPSP settings to DB...";
66 <<
"[VpspScanHistosUsingDb::" << __func__ <<
"]" 67 <<
" Uploaded VPSP settings to DB!";
70 <<
"[VpspScanHistosUsingDb::" << __func__ <<
"]" 71 <<
" TEST only! No VPSP settings will be uploaded to DB...";
74 <<
"[VpspScanHistosUsingDb::" << __func__ <<
"]" 75 <<
" Upload of VPSP settings to DB finished!";
84 SiStripConfigDb::DeviceDescriptionsV::const_iterator idevice;
85 for ( idevice = devices.begin(); idevice != devices.end(); idevice++ ) {
88 if ( (*idevice)->getDeviceType() != APV25 ) {
continue; }
91 apvDescription* desc =
dynamic_cast<apvDescription*
>( *idevice );
92 if ( !desc ) {
continue; }
98 uint16_t ichan = ( desc->getAddress() - 0x20 ) / 2;
99 uint16_t iapv = ( desc->getAddress() - 0x20 ) % 2;
116 <<
"[VpspScanHistosUsingDb::" << __func__ <<
"]" 117 <<
" NULL pointer to analysis object!";
121 std::stringstream ss;
122 ss <<
"[VpspScanHistosUsingDb::" << __func__ <<
"]" 123 <<
" Updating VPSP setting for crate/FEC/slot/ring/CCU/LLD/APV " 132 <<
static_cast<uint16_t
>(desc->getVpsp());
133 if ( iapv == 0 ) { desc->setVpsp( anal->
vpsp()[0] ); }
134 if ( iapv == 1 ) { desc->setVpsp( anal->
vpsp()[1] ); }
135 ss <<
" to " <<
static_cast<uint16_t
>(desc->getVpsp());
141 <<
"[VpspScanHistosUsingDb::" << __func__ <<
"]" 142 <<
" Unable to find FEC key with params FEC/slot/ring/CCU/LLDchan/APV: " 162 if ( !anal ) {
return; }
167 for ( uint16_t iapv = 0; iapv < 2; ++iapv ) {
170 VpspScanAnalysisDescription*
tmp;
171 tmp =
new VpspScanAnalysisDescription( anal->
vpsp()[iapv],
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 ) { tmp->addComments( *istr ); }
201 desc.push_back( tmp );
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
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.
VpspScanHistosUsingDb(const edm::ParameterSet &pset, DQMStore *, SiStripConfigDb *const )
const VInt & adcLevel() const
const SiStripDbParams & dbParams() const
const uint16_t & channel() 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
const VInt & topEdge() const
const VInt & bottomLevel() const
void create(SiStripConfigDb::AnalysisDescriptionsV &, Analysis) override