11 using namespace sistrip;
27 <<
"[PedsOnlyHistosUsingDb::" << __func__ <<
"]"
28 <<
" Constructing object...";
35 <<
"[PedsOnlyHistosUsingDb::" << __func__ <<
"]"
36 <<
" Destructing object...";
43 <<
"[PedsOnlyHistosUsingDb::" << __func__ <<
"]";
47 <<
"[PedsOnlyHistosUsingDb::" << __func__ <<
"]"
48 <<
" NULL pointer to SiStripConfigDb interface!"
49 <<
" Aborting upload...";
58 <<
"[PedsOnlyHistosUsingDb::" << __func__ <<
"]"
59 <<
" Uploading pedestals/noise to DB...";
62 <<
"[PedsOnlyHistosUsingDb::" << __func__ <<
"]"
63 <<
" Completed database upload of " << feds.size()
64 <<
" FED descriptions!";
67 <<
"[PedsOnlyHistosUsingDb::" << __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 <<
"[PedsOnlyHistosUsingDb::" << __func__ <<
"]"
113 <<
" NULL pointer to analysis object!";
118 uint32_t pedshift = 127;
120 uint32_t pedmin = (uint32_t) anal->
pedsMin()[iapv];
121 pedshift = pedmin < pedshift ? pedmin : pedshift;
126 for ( uint16_t istr = 0; istr < anal->
peds()[iapv].size(); istr++ ) {
128 static float high_threshold = 5.;
129 static float low_threshold = 2.;
130 static bool disable_strip =
false;
131 Fed9U::Fed9UStripDescription
data( static_cast<uint32_t>( anal->
peds()[iapv][istr]-pedshift ),
134 anal->
raw()[iapv][istr],
136 Fed9U::Fed9UAddress addr( ichan, iapv, istr );
137 (*ifed)->getFedStrips().setStrip( addr,
data );
145 <<
"[PedsOnlyHistosUsingDb::" << __func__ <<
"]"
146 <<
" Unable to find pedestals/noise for FedKey/Id/Ch: "
147 << hex << setw(8) << setfill(
'0') << fed_key.
key() << dec <<
"/"
148 << (*ifed)->getFedId() <<
"/"
150 <<
" and device with FEC/slot/ring/CCU/LLD "
151 << fec_key.fecCrate() <<
"/"
152 << fec_key.fecSlot() <<
"/"
153 << fec_key.fecRing() <<
"/"
154 << fec_key.ccuAddr() <<
"/"
155 << fec_key.ccuChan() <<
"/"
156 << fec_key.channel();
162 <<
"[PedsOnlyHistosUsingDb::" << __func__ <<
"]"
163 <<
" Updated FED pedestals/noise for "
164 << updated <<
" channels";
174 if ( !anal ) {
return; }
179 for ( uint16_t iapv = 0; iapv < 2; ++iapv ) {
182 PedestalsAnalysisDescription*
tmp;
183 tmp =
new PedestalsAnalysisDescription( std::vector<uint16_t>(0,0),
184 std::vector<uint16_t>(0,0),
213 typedef std::vector<std::string>
Strings;
215 Strings::const_iterator istr = errors.begin();
216 Strings::const_iterator jstr = errors.end();
217 for ( ; istr != jstr; ++istr ) { tmp->addComments( *istr ); }
220 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
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_[]
const FedChannelConnection & connection(uint16_t fed_id, uint16_t fed_ch) const
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