13 using namespace sistrip;
42 <<
"[CommissioningTask::" << __func__ <<
"]"
44 <<
"' object for FecKey/FedKey: "
45 <<
"0x" << std::hex << std::setw(8) << std::setfill(
'0') <<
fecKey_ << std::dec
47 <<
"0x" << std::hex << std::setw(8) << std::setfill(
'0') <<
fedKey_ << std::dec
48 <<
" and Crate/FEC/ring/CCU/module/LLDchan: "
64 <<
"[CommissioningTask::" << __func__ <<
"]"
65 <<
" Destructing object for FED id/ch "
67 <<
"' object for FecKey/FedKey: "
68 <<
"0x" << std::hex << std::setw(8) << std::setfill(
'0') <<
fecKey_ << std::dec
70 <<
"0x" << std::hex << std::setw(8) << std::setfill(
'0') <<
fedKey_ << std::dec
71 <<
" and Crate/FEC/ring/CCU/module/LLDchan: "
100 explicitFill_(
false),
117 if ( histo_ ) {
axis_ = histo->GetXaxis(); }
131 if ( !
axis_ ) {
return 0; }
132 float range =
axis_->GetXmax() -
axis_->GetXmin();
134 int32_t
bin =
static_cast<int32_t
>( ( value -
axis_->GetXmin() ) *
135 (
axis_->GetNbins() / range ) ) + 1;
136 if ( bin < 0 ) {
return 0; }
137 else if ( bin >
axis_->GetNbins() ) {
return static_cast<uint32_t
>(
axis_->GetNbins() + 1 ); }
146 <<
"[CommissioningTask::" << __func__ <<
"]"
147 <<
" No derived implementation exists!";
155 <<
"[CommissioningTask::" << __func__ <<
"]"
156 <<
" No derived implementation exists!";
162 const uint16_t& fed_id,
163 const std::map<uint16_t,float>& fed_ch ) {
165 <<
"[CommissioningTask::" << __func__ <<
"]"
166 <<
" No derived implementation exists!";
173 <<
"[CommissioningTask::" << __func__ <<
"]"
174 <<
" No derived implementation exists!";
190 <<
"[CommissioningTask::" << __func__ <<
"]"
191 <<
" Attempting to fill histos that haven't been booked yet!";
195 fill( summary, digis );
205 const uint16_t& fed_id,
206 const std::map<uint16_t,float>& fed_ch ) {
209 <<
"[CommissioningTask::" << __func__ <<
"]"
210 <<
" Attempting to fill histos that haven't been booked yet!";
214 fill( summary, fed_id, fed_ch );
230 const uint32_t&
bin ) {
238 const uint32_t&
bin ) {
246 const float&
value ) {
255 const float&
value ) {
260 <<
"[CommissioningTask::" << __func__ <<
"]"
261 <<
" Unexpected bin number " << bin
262 <<
" when filling histogram of size " << histo_set.
vNumOfEntries_.size();
270 float origVal = histo_set.
histo()->getBinContent( bin+1 );
271 histo_set.
histo()->setBinContent( bin+1, origVal + value );
283 <<
"[CommissioningTask::" << __func__ <<
"]"
284 <<
" Unexpected bin when filling histogram: " <<
bin;
299 const short&
value ) {
304 <<
"[CommissioningTask::" << __func__ <<
"]"
305 <<
" Unexpected bin number " << bin
306 <<
" when filling histogram of size " << histo_set.
vNumOfEntries_.size();
311 float origVal = histo_set.
histo()->getBinContent( bin+1 );
312 histo_set.
histo()->setBinContent( bin+1, origVal + value );
325 if ( !histo_set.
histo() ) {
327 <<
"[CommissioningTask::" << __func__ <<
"]"
328 <<
" NULL pointer to MonitorElement!";
339 for ( uint32_t ibin = 0; ibin < histo_set.
vNumOfEntries_.size(); ibin++ ) {
340 profile.setBinContents( prof,
349 for ( uint32_t ibin = 0; ibin < histo_set.
vNumOfEntries_.size(); ibin++ ) {
364 if ( !histo_set.
histo() ) {
366 <<
"[CommissioningTask::" << __func__ <<
"]"
367 <<
" NULL pointer to MonitorElement!";
372 for ( uint32_t ibin = 0; ibin < histo_set.
vNumOfEntries_.size(); ibin++ ) {
const uint16_t & fecSlot() const
std::vector< float > vNumOfEntries_
const uint16_t & fecCrate() const
A container class for generic run and event-related info, information required by the commissioning a...
const uint16_t & fedCh() const
static const char mlDqmSource_[]
static const char fedKey_[]
std::vector< float > vSumOfContents_
uint16_t lldChannel() const
const uint16_t & fedId() const
Utility class that identifies a position within the strip tracker control structure, down to the level of an APV25.
void updateHistoSet(HistoSet &, const uint32_t &bin, const float &value)
const uint16_t & fecRing() const
Class containning control, module, detector and connection information, at the level of a FED channel...
const uint16_t & ccuChan() const
const reco::Candidate::LorentzVector & axis_
static const char fecKey_[]
void histo(MonitorElement *)
virtual void fill(const SiStripEventSummary &, const edm::DetSet< SiStripRawDigi > &)
const uint16_t & ccuAddr() const
int extract(std::vector< int > *output, const std::string &dati)
virtual ~CommissioningTask()
const uint16_t & feUnit() const
uint32_t bin(float value)
void histo(MonitorElement *)
const uint16_t & feChan() const
std::vector< double > vSumOfSquares_
std::vector< short > vNumOfEntries_
FedChannelConnection connection_
void fillHistograms(const SiStripEventSummary &, const edm::DetSet< SiStripRawDigi > &)