11 using namespace sistrip;
27 <<
"[NoiseHistosUsingDb::" << __func__ <<
"]"
28 <<
" Constructing object...";
35 <<
"[NoiseHistosUsingDb::" << __func__ <<
"]"
36 <<
" Destructing object...";
43 <<
"[NoiseHistosUsingDb::" << __func__ <<
"]";
47 <<
"[NoiseHistosUsingDb::" << __func__ <<
"]"
48 <<
" NULL pointer to SiStripConfigDb interface!"
49 <<
" Aborting upload...";
58 <<
"[NoiseHistosUsingDb::" << __func__ <<
"]"
59 <<
" Uploading pedestals/noise to DB...";
62 <<
"[NoiseHistosUsingDb::" << __func__ <<
"]"
63 <<
" Completed database upload of " << feds.size()
64 <<
" FED descriptions!";
67 <<
"[NoiseHistosUsingDb::" << __func__ <<
"]"
68 <<
" TEST only! No pedestals/noise values will be uploaded to DB...";
79 SiStripConfigDb::FedDescriptionsV::const_iterator ifed;
80 for ( ifed = feds.begin(); ifed != feds.end(); ifed++ ) {
103 Analyses::const_iterator iter =
data().find( fec_key.key() );
104 if ( iter !=
data().end() ) {
107 if ( !iter->second->isValid() ) {
continue; }
112 <<
"[NoiseHistosUsingDb::" << __func__ <<
"]"
113 <<
" NULL pointer to analysis object!";
119 for ( uint16_t istr = 0; istr < anal->
peds()[iapv].size(); istr++ ) {
124 Fed9U::Fed9UStripDescription
data( static_cast<uint32_t>( anal->
peds()[iapv][istr] ),
127 anal->
noise()[iapv][istr],
129 Fed9U::Fed9UAddress addr( ichan, iapv, istr );
130 (*ifed)->getFedStrips().setStrip( addr,
data );
138 <<
"[NoiseHistosUsingDb::" << __func__ <<
"]"
139 <<
" Unable to find pedestals/noise for FedKey/Id/Ch: "
140 << hex << setw(8) << setfill(
'0') << fed_key.
key() << dec <<
"/"
141 << (*ifed)->getFedId() <<
"/"
143 <<
" and device with FEC/slot/ring/CCU/LLD "
144 << fec_key.fecCrate() <<
"/"
145 << fec_key.fecSlot() <<
"/"
146 << fec_key.fecRing() <<
"/"
147 << fec_key.ccuAddr() <<
"/"
148 << fec_key.ccuChan() <<
"/"
149 << fec_key.channel();
155 <<
"[NoiseHistosUsingDb::" << __func__ <<
"]"
156 <<
" Updated FED pedestals/noise for "
157 << updated <<
" channels";
167 if ( !anal ) {
return; }
172 for ( uint16_t iapv = 0; iapv < 2; ++iapv ) {
175 PedestalsAnalysisDescription*
tmp;
176 tmp =
new PedestalsAnalysisDescription( anal->
dead()[iapv],
206 typedef std::vector<std::string>
Strings;
208 Strings::const_iterator istr = errors.begin();
209 Strings::const_iterator jstr = errors.end();
210 for ( ; istr != jstr; ++istr ) { tmp->addComments( *istr ); }
213 desc.push_back( tmp );
const uint16_t & fecSlot() const
const uint16_t & fecCrate() const
const VVInt & dead() const
const VFloat & noiseMean() const
const uint32_t & fedKey() const
Analyses::iterator Analysis
const VFloat & noiseSpread() const
A container class for generic run and event-related info, information required by the commissioning a...
const uint16_t & fedCh() const
void create(SiStripConfigDb::AnalysisDescriptionsV &, Analysis)
const VFloat & pedsMax() const
FedDescriptionsRange getFedDescriptions(std::string partition="")
FedDescriptions::range FedDescriptionsRange
static const char mlDqmClient_[]
const FedChannelConnection & connection(uint16_t fed_id, uint16_t fed_ch) const
const VFloat & rawMin() const
uint16_t lldChannel() const
const VFloat & rawMax() const
const VFloat & pedsMean() const
const uint16_t & i2cAddr() const
const uint16_t & fedId() 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 uint16_t & fecRing() const
virtual void uploadConfigurations()
Class containning control, module, detector and connection information, at the level of a FED channel...
const VVFloat & noise() const
An interface class to the DeviceFactory.
const uint16_t & ccuChan() const
bool doUploadConf() const
const VVInt & noisy() const
const uint32_t & fecKey() const
const uint16_t & ccuAddr() const
const VFloat & pedsSpread() const
const VFloat & noiseMin() const
const VFloat & noiseMax() const
virtual ~NoiseHistosUsingDb()
const VFloat & rawSpread() const
const VFloat & rawMean() const
const uint16_t & feUnit() const
const SiStripDbParams & dbParams() const
void uploadFedDescriptions(std::string partition="")
static const uint16_t invalid_
const VVFloat & peds() const
std::vector< std::vector< double > > tmp
void update(SiStripConfigDb::FedDescriptionsRange)
static const uint16_t FEDCH_PER_FED
std::vector< AnalysisDescription * > AnalysisDescriptionsV
const uint16_t & feChan() const
Histogram-based analysis for pedestal run.
SiStripConfigDb *const db() const
SiStripFedCabling *const cabling() const
const VString & getErrorCodes() const
static const uint16_t APVS_PER_FEDCH
NoiseHistosUsingDb(const edm::ParameterSet &pset, DQMStore *, SiStripConfigDb *const )
const VFloat & pedsMin() const