10 using namespace sistrip;
26 <<
"[VpspScanHistosUsingDb::" << __func__ <<
"]"
27 <<
" Constructing object...";
34 <<
"[VpspScanHistosUsingDb::" << __func__ <<
"]"
35 <<
" Destructing object...";
42 <<
"[VpspScanHistosUsingDb::" << __func__ <<
"]";
46 <<
"[VpspScanHistosUsingDb::" << __func__ <<
"]"
47 <<
" NULL pointer to SiStripConfigDb interface!"
48 <<
" Aborting upload...";
57 <<
"[VpspScanHistosUsingDb::" << __func__ <<
"]"
58 <<
" Uploading VPSP settings to DB...";
61 <<
"[VpspScanHistosUsingDb::" << __func__ <<
"]"
62 <<
" Uploaded VPSP settings to DB!";
65 <<
"[VpspScanHistosUsingDb::" << __func__ <<
"]"
66 <<
" TEST only! No VPSP settings will be uploaded to DB...";
69 <<
"[VpspScanHistosUsingDb::" << __func__ <<
"]"
70 <<
" Upload of VPSP settings to DB finished!";
79 SiStripConfigDb::DeviceDescriptionsV::const_iterator idevice;
80 for ( idevice = devices.begin(); idevice != devices.end(); idevice++ ) {
83 if ( (*idevice)->getDeviceType() != APV25 ) {
continue; }
86 apvDescription* desc =
dynamic_cast<apvDescription*
>( *idevice );
87 if ( !desc ) {
continue; }
93 uint16_t ichan = ( desc->getAddress() - 0x20 ) / 2;
94 uint16_t iapv = ( desc->getAddress() - 0x20 ) % 2;
105 Analyses::const_iterator iter =
data().find( fec_key.
key() );
106 if ( iter !=
data().end() ) {
111 <<
"[VpspScanHistosUsingDb::" << __func__ <<
"]"
112 <<
" NULL pointer to analysis object!";
116 std::stringstream ss;
117 ss <<
"[VpspScanHistosUsingDb::" << __func__ <<
"]"
118 <<
" Updating VPSP setting for crate/FEC/slot/ring/CCU/LLD/APV "
127 <<
static_cast<uint16_t
>(desc->getVpsp());
128 if ( iapv == 0 ) { desc->setVpsp( anal->
vpsp()[0] ); }
129 if ( iapv == 1 ) { desc->setVpsp( anal->
vpsp()[1] ); }
130 ss <<
" to " <<
static_cast<uint16_t
>(desc->getVpsp());
136 <<
"[VpspScanHistosUsingDb::" << __func__ <<
"]"
137 <<
" Unable to find FEC key with params FEC/slot/ring/CCU/LLDchan/APV: "
157 if ( !anal ) {
return; }
162 for ( uint16_t iapv = 0; iapv < 2; ++iapv ) {
165 VpspScanAnalysisDescription*
tmp;
166 tmp =
new VpspScanAnalysisDescription( anal->
vpsp()[iapv],
189 typedef std::vector<std::string>
Strings;
191 Strings::const_iterator istr = errors.begin();
192 Strings::const_iterator jstr = errors.end();
193 for ( ; istr != jstr; ++istr ) { tmp->addComments( *istr ); }
196 desc.push_back( tmp );
virtual void uploadConfigurations()
const uint32_t & fedKey() const
Analyses::iterator Analysis
const VInt & bottomEdge() const
const uint16_t & fecRing() const
A container class for generic run and event-related info, information required by the commissioning a...
virtual ~VpspScanHistosUsingDb()
bool deviceIsPresent(const SiStripFecKey &)
static const char mlDqmClient_[]
void create(SiStripConfigDb::AnalysisDescriptionsV &, Analysis)
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
DeviceAddress deviceAddress(const deviceDescription &)
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