27 <<
"[DaqScopeModeHistograms::" << __func__ <<
"]" 28 <<
" Constructing object...";
36 <<
"[DaqScopeModeHistograms::" << __func__ <<
"]" 37 <<
" Destructing object...";
45 <<
"[DaqScopeModeHistograms::" << __func__ <<
"]";
49 HistosMap::const_iterator iter;
50 Analyses::iterator ianal;
51 std::map<std::string,uint16_t>
errors;
54 for ( ianal =
data().
begin(); ianal !=
data().end(); ianal++ ) {
55 if ( ianal->second ) {
delete ianal->second; }
61 iter !=
histos().end(); iter++ ) {
64 if ( iter->second.empty() ) {
66 <<
"[DaqScopeModeHistograms::" << __func__ <<
"]" 67 <<
" Zero histograms found!";
72 std::vector<TH1*> profs;
73 Histos::const_iterator ihis = iter->second.begin();
74 for ( ; ihis != iter->second.end(); ihis++ ) {
76 if ( prof ){profs.push_back(prof);}
79 profs.push_back(prof);
87 data()[iter->first] = anal;
89 if ( anal->
isValid() ) { valid++; }
97 <<
"[DaqScopeModeHistograms::" << __func__ <<
"]" 98 <<
" Analyzed histograms for " <<
histos().size()
99 <<
" FED channels, of which " << valid
100 <<
" (" << 100 * valid /
histos().size()
102 if ( !errors.empty() ) {
104 std::stringstream ss;
106 std::map<std::string,uint16_t>::const_iterator
ii;
107 for ( ii = errors.begin(); ii != errors.end(); ++
ii ) {
108 ss <<
" " << ii->first <<
": " << ii->second << std::endl;
112 <<
"[DaqScopeModeHistograms::" << __func__ <<
"]" 113 <<
" Found " << count <<
" errors (" 114 << 100 * count /
histos().size() <<
"%): " 119 <<
"[DaqScopeModeHistograms::" << __func__ <<
"]" 120 <<
" No histograms to analyze!";
126 Analyses::iterator ianal =
data().begin();
127 Analyses::iterator janal =
data().end();
128 for ( ; ianal != janal; ++ianal ) {
129 if ( ianal->second ) {
130 std::stringstream ss;
131 ianal->second->print( ss, 1 );
132 ianal->second->print( ss, 2 );
void analysis(const std::vector< TH1 * > &)
void printAnalyses() override
Analyses & data(bool getMaskedData=false)
const edm::ParameterSet & pset() const
bool isValid() const override
static const char mlDqmClient_[]
void histoAnalysis(bool debug) override
DaqScopeModeHistograms(const edm::ParameterSet &pset, DQMStore *)
int extract(std::vector< int > *output, const std::string &dati)
Algorithm for scope mode data.
std::unique_ptr< Factory > factory_
~DaqScopeModeHistograms() override
const VString & getErrorCodes() const
const HistosMap & histos() const
Analysis for scope mode data.