CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
FastFedCablingTask.cc
Go to the documentation of this file.
6 #include <algorithm>
7 #include <sstream>
8 #include <iomanip>
9 
10 using namespace sistrip;
11 
12 // -----------------------------------------------------------------------------
13 //
15  const FedChannelConnection& conn ) :
16  CommissioningTask( dqm, conn, "FastFedCablingTask" ),
17  histo_()
18 {}
19 
20 // -----------------------------------------------------------------------------
21 //
23 }
24 
25 // -----------------------------------------------------------------------------
26 //
28 
32  fedKey(),
34  connection().lldChannel() ).title();
35 
36  uint16_t nbins = 34;
37  histo_.histo( dqm()->bookProfile( title, title,
38  nbins, -0.5, nbins*1.-0.5,
39  1025, 0., 1025. ) );
40 
41  histo_.vNumOfEntries_.resize(nbins,0);
42  histo_.vSumOfContents_.resize(nbins,0);
43  histo_.vSumOfSquares_.resize(nbins,0);
44 
45 }
46 
47 // -----------------------------------------------------------------------------
48 //
50  const edm::DetSet<SiStripRawDigi>& digis ) {
51 
52  if ( digis.data.empty() ) {
54  << "[FastFedCablingTask::" << __func__ << "]"
55  << " No digis found!";
56  return;
57  }
58 
59  uint32_t bin = summary.binNumber();
60  for ( uint16_t ibin = 0; ibin < digis.data.size(); ibin++ ) {
61  updateHistoSet( histo_, bin, digis.data[ibin].adc() );
62  }
63 
64 }
65 
66 // -----------------------------------------------------------------------------
67 //
70 }
std::vector< float > vNumOfEntries_
Utility class that holds histogram title.
const std::string & title() const
static const char mlDqmSource_[]
std::vector< float > vSumOfContents_
const uint32_t & binNumber() const
virtual void fill(const SiStripEventSummary &, const edm::DetSet< SiStripRawDigi > &)
void updateHistoSet(HistoSet &, const uint32_t &bin, const float &value)
Class containning control, module, detector and connection information, at the level of a FED channel...
DQMStore *const dqm() const
FastFedCablingTask(DQMStore *, const FedChannelConnection &)
collection_type data
Definition: DetSet.h:79
void histo(MonitorElement *)
const uint32_t & fedKey() const
std::vector< double > vSumOfSquares_
const FedChannelConnection & connection() const
tuple conn
Definition: results_mgr.py:53