9 using namespace sistrip;
25 <<
"[OptoScanHistosUsingDb::" << __func__ <<
"]"
26 <<
" Constructing object...";
30 <<
"[OptoScanHistosUsingDb::" << __func__ <<
"]"
31 <<
" Skipping db update of gain parameters.";
38 <<
"[OptoScanHistosUsingDb::" << __func__ <<
"]"
39 <<
" Destructing object...";
46 <<
"[OptoScanHistosUsingDb::" << __func__ <<
"]";
50 <<
"[OptoScanHistosUsingDb::" << __func__ <<
"]"
51 <<
" NULL pointer to SiStripConfigDb interface!"
52 <<
" Aborting upload...";
61 <<
"[OptoScanHistosUsingDb::" << __func__ <<
"]"
62 <<
" Uploading LLD settings to DB...";
65 <<
"[OptoScanHistosUsingDb::" << __func__ <<
"]"
66 <<
" Upload of LLD settings to DB finished!";
69 <<
"[OptoScanHistosUsingDb::" << __func__ <<
"]"
70 <<
" TEST only! No LLD settings will be uploaded to DB...";
81 SiStripConfigDb::DeviceDescriptionsV::const_iterator idevice;
82 for ( idevice = devices.begin(); idevice != devices.end(); idevice++ ) {
84 if ( (*idevice)->getDeviceType() != LASERDRIVER ) {
continue; }
87 laserdriverDescription* desc =
dynamic_cast<laserdriverDescription*
>( *idevice );
88 if ( !desc ) {
continue; }
105 Analyses::const_iterator iter =
data().find( fec_key.
key() );
106 if ( iter !=
data().end() ) {
111 <<
"[OptoScanHistosUsingDb::" << __func__ <<
"]"
112 <<
" NULL pointer to analysis object!";
116 uint16_t gain = anal->
gain();
117 std::stringstream ss;
118 ss <<
"[OptoScanHistosUsingDb::" << __func__ <<
"]"
119 <<
" Updating LLD gain/bias settings for crate/crate/FEC/ring/CCU/module/LLD "
127 <<
static_cast<uint16_t
>( desc->getGain(ichan) ) <<
"/"
128 << static_cast<uint16_t>( desc->getBias(ichan) );
130 desc->setBias( ichan, anal->
bias()[gain] );
133 <<
static_cast<uint16_t
>(desc->getGain(ichan)) <<
"/"
134 << static_cast<uint16_t>(desc->getBias(ichan));
140 <<
"[OptoScanHistosUsingDb::" << __func__ <<
"]"
141 <<
" Unable to find FEC key with params crate/FEC/ring/CCU/module/LLD "
154 <<
"[OptoScanHistosUsingDb::" << __func__ <<
"]"
155 <<
" Updated LLD bias/gain settings for "
156 << updated <<
" modules";
167 if ( !anal ) {
return; }
172 for ( uint16_t iapv = 0; iapv < 2; ++iapv ) {
175 OptoScanAnalysisDescription*
tmp;
176 tmp =
new OptoScanAnalysisDescription( anal->
baseSlope()[0],
225 typedef std::vector<std::string>
Strings;
227 Strings::const_iterator istr = errors.begin();
228 Strings::const_iterator jstr = errors.end();
229 for ( ; istr != jstr; ++istr ) { tmp->addComments( *istr ); }
232 desc.push_back( tmp );
Histogram-based analysis for opto bias/gain scan.
const uint16_t & gain() const
T getParameter(std::string const &) const
const uint32_t & fedKey() const
Analyses::iterator Analysis
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
static const char mlDqmClient_[]
const uint16_t & fecSlot() const
const VFloat & linkNoise() const
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 &)
virtual ~OptoScanHistosUsingDb()
const uint16_t & fecCrate() const
const VInt & bias() const
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
void create(SiStripConfigDb::AnalysisDescriptionsV &, Analysis)
virtual void uploadConfigurations()