#include <DQM/SiStripCommissioningClients/interface/DaqScopeModeHistograms.h>
Public Types | |
typedef SummaryHistogramFactory < DaqScopeModeAnalysis > | Factory |
Public Member Functions | |
void | createSummaryHisto (const sistrip::Monitorable &, const sistrip::Presentation &, const std::string &top_level_dir, const sistrip::Granularity &) |
DaqScopeModeHistograms (DQMOldReceiver *) | |
void | histoAnalysis (bool debug) |
virtual | ~DaqScopeModeHistograms () |
Protected Attributes | |
std::map< uint32_t, DaqScopeModeAnalysis > | data_ |
std::auto_ptr< Factory > | factory_ |
Definition at line 10 of file DaqScopeModeHistograms.h.
DaqScopeModeHistograms::DaqScopeModeHistograms | ( | DQMOldReceiver * | mui | ) |
Definition at line 17 of file DaqScopeModeHistograms.cc.
References GenMuonPlsPt100GeV_cfg::cout, and lat::endl().
00018 : CommissioningHistograms( mui, sistrip::DAQ_SCOPE_MODE ), 00019 factory_( new Factory ) 00020 { 00021 cout << endl // LogTrace(mlDqmClient_) 00022 << "[DaqScopeModeHistograms::" << __func__ << "]" 00023 << " Constructing object..."; 00024 }
DaqScopeModeHistograms::~DaqScopeModeHistograms | ( | ) | [virtual] |
Definition at line 28 of file DaqScopeModeHistograms.cc.
References GenMuonPlsPt100GeV_cfg::cout, and lat::endl().
00028 { 00029 cout << endl // LogTrace(mlDqmClient_) 00030 << "[DaqScopeModeHistograms::" << __func__ << "]" 00031 << " Constructing object..."; 00032 }
void DaqScopeModeHistograms::createSummaryHisto | ( | const sistrip::Monitorable & | histo, | |
const sistrip::Presentation & | type, | |||
const std::string & | top_level_dir, | |||
const sistrip::Granularity & | gran | |||
) | [virtual] |
Reimplemented from CommissioningHistograms.
Definition at line 84 of file DaqScopeModeHistograms.cc.
References GenMuonPlsPt100GeV_cfg::cout, data_, lat::endl(), factory_, histoAnalysis(), CommissioningHistograms::histogram(), summary, sistrip::UNKNOWN_VIEW, and SiStripEnumsAndStrings::view().
00087 { 00088 cout << endl // LogTrace(mlDqmClient_) 00089 << "[DaqScopeModeHistograms::" << __func__ << "]"; 00090 00091 // Check view 00092 sistrip::View view = SiStripEnumsAndStrings::view(directory); 00093 if ( view == sistrip::UNKNOWN_VIEW ) { return; } 00094 00095 // Analyze histograms 00096 histoAnalysis( false ); 00097 00098 // Extract data to be histogrammed 00099 factory_->init( histo, type, view, directory, gran ); 00100 uint32_t xbins = factory_->extract( data_ ); 00101 00102 // Create summary histogram (if it doesn't already exist) 00103 TH1* summary = histogram( histo, type, view, directory, xbins ); 00104 00105 // Fill histogram with data 00106 factory_->fill( *summary ); 00107 00108 }
Reimplemented from CommissioningHistograms.
Definition at line 36 of file DaqScopeModeHistograms.cc.
References data_.
Referenced by createSummaryHisto().
00036 { 00037 00038 // Clear std::map holding analysis objects 00039 data_.clear(); 00040 00041 // // Iterate through std::map containing std::vectors of profile histograms 00042 // CollationsMap::const_iterator iter = collations().begin(); 00043 // for ( ; iter != collations().end(); iter++ ) { 00044 00045 // // Check std::vector of histos is not empty (should be 1 histo) 00046 // if ( iter->second.empty() ) { 00047 // edm::LogWarning(mlDqmClient_) 00048 // << "[DaqScopeModeHistograms::" << __func__ << "]" 00049 // << " Zero collation histograms found!"; 00050 // continue; 00051 // } 00052 00053 // // Retrieve pointers to profile histos for this FED channel 00054 // std::vector<TH1*> histos; 00055 // Collations::const_iterator ihis = iter->second.begin(); 00056 // for ( ; ihis != iter->second.end(); ihis++ ) { 00057 // TH1F* his = ExtractTObject<TH1F>().extract( ihis->second->getMonitorElement() ); 00058 // if ( his ) { histos.push_back(his); } 00059 // } 00060 00061 // // Perform histo analysis 00062 // DaqScopeModeAnalysis anal( iter->first ); 00063 // DaqScopeModeAlgorithm algo( &anal ); 00064 // algo.analysis( histos ); 00065 // data_[iter->first] = anal; 00066 // if ( debug ) { 00067 // std::stringstream ss; 00068 // anal.print( ss ); 00069 // cout << ss.str() << endl; 00070 // } 00071 00072 // } 00073 00074 // cout << endl // LogTrace(mlDqmClient_) 00075 // << "[DaqScopeModeHistograms::" << __func__ << "]" 00076 // << " Analyzed histograms for " 00077 // << collations().size() 00078 // << " FED channels"; 00079 00080 }
std::map<uint32_t,DaqScopeModeAnalysis> DaqScopeModeHistograms::data_ [protected] |
Reimplemented from CommissioningHistograms.
Definition at line 30 of file DaqScopeModeHistograms.h.
Referenced by createSummaryHisto(), and histoAnalysis().
std::auto_ptr<Factory> DaqScopeModeHistograms::factory_ [protected] |
Reimplemented from CommissioningHistograms.
Definition at line 32 of file DaqScopeModeHistograms.h.
Referenced by createSummaryHisto().