CMS 3D CMS Logo

CommissioningSummaryFactory.cc
Go to the documentation of this file.
3 
4 // -----------------------------------------------------------------------------
5 //
7  const sistrip::Presentation& pres,
8  const sistrip::View& view,
9  const std::string& level,
10  const sistrip::Granularity& gran,
11  const std::map<uint32_t,CommissioningAnalysis*>& data ) {
12 
13  // initialisation
14  SummaryPlotFactoryBase::init( mon, pres, view, level, gran );
15 
16  // check if generator object exists
17  if ( !SummaryPlotFactoryBase::generator_ ) { return 0; }
18 
19  // extract monitorables and populate map
20  std::map<uint32_t,CommissioningAnalysis*>::const_iterator iter = data.begin();
21  for ( ; iter != data.end(); iter++ ) { extract( iter ); }
22 
24 
25 }
26 
27 // -----------------------------------------------------------------------------
28 //
30 
31  // fill histogram
32  SummaryPlotFactoryBase::fill( summary_histo );
33 
34  // check if generator object exists
35  if ( !SummaryPlotFactoryBase::generator_ ) { return; }
36 
37  // format histo
38  format();
39 
40 }
void init(const sistrip::Monitorable &, const sistrip::Presentation &, const sistrip::View &, const std::string &top_level_dir, const sistrip::Granularity &)
uint32_t init(const sistrip::Monitorable &, const sistrip::Presentation &, const sistrip::View &, const std::string &top_level_dir, const sistrip::Granularity &, const std::map< uint32_t, T > &data)
uint32_t nBins() const
void fill(TH1 &summary_histo)
format
Some error handling for the usage.
int extract(std::vector< int > *output, const std::string &dati)
SummaryGenerator * generator_
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82
void fill(TH1 &summary_histo)