Go to the documentation of this file.00001 #include "DQM/SiStripCommissioningClients/interface/DaqScopeModeHistograms.h"
00002 #include "CondFormats/SiStripObjects/interface/DaqScopeModeAnalysis.h"
00003 #include "DataFormats/SiStripCommon/interface/SiStripConstants.h"
00004 #include "DataFormats/SiStripCommon/interface/SiStripEnumsAndStrings.h"
00005 #include "DQM/SiStripCommissioningAnalysis/interface/DaqScopeModeAlgorithm.h"
00006 #include "DQM/SiStripCommissioningSummary/interface/SummaryGenerator.h"
00007 #include "FWCore/MessageLogger/interface/MessageLogger.h"
00008 #include <iostream>
00009 #include <sstream>
00010 #include <iomanip>
00011
00012 using namespace std;
00013 using namespace sistrip;
00014
00015
00017 DaqScopeModeHistograms::DaqScopeModeHistograms( const edm::ParameterSet& pset,
00018 DQMStore* bei )
00019 : CommissioningHistograms( pset.getParameter<edm::ParameterSet>("DaqScopeModeParameters"),
00020 bei,
00021 sistrip::DAQ_SCOPE_MODE ),
00022 factory_( new Factory )
00023 {
00024 cout << endl
00025 << "[DaqScopeModeHistograms::" << __func__ << "]"
00026 << " Constructing object...";
00027 }
00028
00029
00031 DaqScopeModeHistograms::~DaqScopeModeHistograms() {
00032 cout << endl
00033 << "[DaqScopeModeHistograms::" << __func__ << "]"
00034 << " Constructing object...";
00035 }
00036
00037
00039 void DaqScopeModeHistograms::histoAnalysis( bool debug ) {
00040
00041
00042 data_.clear();
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057
00058
00059
00060
00061
00062
00063
00064
00065
00066
00067
00068
00069
00070
00071
00072
00073
00074
00075
00076
00077
00078
00079
00080
00081
00082
00083 }
00084
00085
00087 void DaqScopeModeHistograms::createSummaryHisto( const sistrip::Monitorable& histo,
00088 const sistrip::Presentation& type,
00089 const std::string& directory,
00090 const sistrip::Granularity& gran ) {
00091 cout << endl
00092 << "[DaqScopeModeHistograms::" << __func__ << "]";
00093
00094
00095 sistrip::View view = SiStripEnumsAndStrings::view(directory);
00096 if ( view == sistrip::UNKNOWN_VIEW ) { return; }
00097
00098
00099 histoAnalysis( false );
00100
00101
00102 factory_->init( histo, type, view, directory, gran );
00103 uint32_t xbins = factory_->extract( data_ );
00104
00105
00106 TH1* summary = histogram( histo, type, view, directory, xbins );
00107
00108
00109 factory_->fill( *summary );
00110
00111 }