10 using namespace sistrip;
26 <<
"[PedsOnlyHistosUsingDb::" << __func__ <<
"]"
27 <<
" Constructing object...";
34 <<
"[PedsOnlyHistosUsingDb::" << __func__ <<
"]"
35 <<
" Destructing object...";
42 <<
"[PedsOnlyHistosUsingDb::" << __func__ <<
"]";
46 <<
"[PedsOnlyHistosUsingDb::" << __func__ <<
"]"
47 <<
" NULL pointer to SiStripConfigDb interface!"
48 <<
" Aborting upload...";
57 <<
"[PedsOnlyHistosUsingDb::" << __func__ <<
"]"
58 <<
" Uploading pedestals/noise to DB...";
61 <<
"[PedsOnlyHistosUsingDb::" << __func__ <<
"]"
62 <<
" Completed database upload of " << feds.size()
63 <<
" FED descriptions!";
66 <<
"[PedsOnlyHistosUsingDb::" << __func__ <<
"]"
67 <<
" TEST only! No pedestals/noise values will be uploaded to DB...";
78 SiStripConfigDb::FedDescriptionsV::const_iterator ifed;
79 for ( ifed = feds.begin(); ifed != feds.end(); ifed++ ) {
102 Analyses::const_iterator
iter =
data().find( fec_key.key() );
103 if ( iter !=
data().end() ) {
106 if ( !iter->second->isValid() ) {
continue; }
111 <<
"[PedsOnlyHistosUsingDb::" << __func__ <<
"]"
112 <<
" NULL pointer to analysis object!";
117 uint32_t pedshift = 127;
119 uint32_t pedmin = (uint32_t) anal->
pedsMin()[iapv];
120 pedshift = pedmin < pedshift ? pedmin : pedshift;
125 for ( uint16_t istr = 0; istr < anal->
peds()[iapv].size(); istr++ ) {
130 Fed9U::Fed9UStripDescription
data( static_cast<uint32_t>( anal->
peds()[iapv][istr]-pedshift ),
133 anal->
raw()[iapv][istr],
135 Fed9U::Fed9UAddress addr( ichan, iapv, istr );
136 (*ifed)->getFedStrips().setStrip( addr,
data );
144 <<
"[PedsOnlyHistosUsingDb::" << __func__ <<
"]"
145 <<
" Unable to find pedestals/noise for FedKey/Id/Ch: "
146 << hex << setw(8) << setfill(
'0') << fed_key.
key() << dec <<
"/"
147 << (*ifed)->getFedId() <<
"/"
149 <<
" and device with FEC/slot/ring/CCU/LLD "
150 << fec_key.fecCrate() <<
"/"
151 << fec_key.fecSlot() <<
"/"
152 << fec_key.fecRing() <<
"/"
153 << fec_key.ccuAddr() <<
"/"
154 << fec_key.ccuChan() <<
"/"
155 << fec_key.channel();
161 <<
"[PedsOnlyHistosUsingDb::" << __func__ <<
"]"
162 <<
" Updated FED pedestals/noise for "
163 << updated <<
" channels";
173 if ( !anal ) {
return; }
178 for ( uint16_t iapv = 0; iapv < 2; ++iapv ) {
181 PedestalsAnalysisDescription*
tmp;
182 tmp =
new PedestalsAnalysisDescription( std::vector<uint16_t>(0,0),
183 std::vector<uint16_t>(0,0),
212 typedef std::vector<std::string>
Strings;
214 Strings::const_iterator istr = errors.begin();
215 Strings::const_iterator jstr = errors.end();
216 for ( ; istr != jstr; ++istr ) { tmp->addComments( *istr ); }
219 desc.push_back( tmp );
const uint16_t & fecSlot() const
const uint16_t & fecCrate() const
Histogram-based analysis for pedestal run.
const uint32_t & fedKey() const
Analyses::iterator Analysis
FedChannelConnection fedConnection(uint16_t fed_id, uint16_t fed_ch) const
A container class for generic run and event-related info, information required by the commissioning a...
const uint16_t & fedCh() const
FedDescriptionsRange getFedDescriptions(std::string partition="")
FedDescriptions::range FedDescriptionsRange
static const char mlDqmClient_[]
PedsOnlyHistosUsingDb(const edm::ParameterSet &pset, DQMStore *, SiStripConfigDb *const )
uint16_t lldChannel() const
virtual ~PedsOnlyHistosUsingDb()
const uint16_t & i2cAddr() const
const uint16_t & fedId() const
const uint32_t & key() const
const VFloat & rawSpread() 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 VVFloat & raw() const
const uint16_t & fecRing() const
void update(SiStripConfigDb::FedDescriptionsRange)
virtual void uploadConfigurations()
Class containning control, module, detector and connection information, at the level of a FED channel...
const VFloat & rawMin() const
const VFloat & pedsMin() const
An interface class to the DeviceFactory.
const uint16_t & ccuChan() const
bool doUploadConf() const
const VFloat & pedsMax() const
const uint32_t & fecKey() const
const uint16_t & ccuAddr() const
const VFloat & rawMax() 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
static const uint16_t FEDCH_PER_FED
std::vector< AnalysisDescription * > AnalysisDescriptionsV
const uint16_t & feChan() const
const VFloat & pedsSpread() const
const VFloat & pedsMean() const
SiStripConfigDb *const db() const
SiStripFedCabling *const cabling() const
const VString & getErrorCodes() const
static const uint16_t APVS_PER_FEDCH
void create(SiStripConfigDb::AnalysisDescriptionsV &, Analysis)
const VFloat & rawMean() const