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++ ) {
77 profs.push_back(prof);
84 data()[iter->first] = anal;
86 if ( anal->
isValid() ) { valid++; }
94 <<
"[DaqScopeModeHistograms::" << __func__ <<
"]" 95 <<
" Analyzed histograms for " <<
histos().size()
96 <<
" FED channels, of which " << valid
97 <<
" (" << 100 * valid /
histos().size()
99 if ( !errors.empty() ) {
101 std::stringstream ss;
103 std::map<std::string,uint16_t>::const_iterator
ii;
104 for ( ii = errors.begin(); ii != errors.end(); ++
ii ) {
105 ss <<
" " << ii->first <<
": " << ii->second << std::endl;
109 <<
"[DaqScopeModeHistograms::" << __func__ <<
"]" 110 <<
" Found " << count <<
" errors (" 111 << 100 * count /
histos().size() <<
"%): " 116 <<
"[DaqScopeModeHistograms::" << __func__ <<
"]" 117 <<
" No histograms to analyze!";
123 Analyses::iterator ianal =
data().begin();
124 Analyses::iterator janal =
data().end();
125 for ( ; ianal != janal; ++ianal ) {
126 if ( ianal->second ) {
127 std::stringstream ss;
128 ianal->second->print( ss, 1 );
129 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::auto_ptr< Factory > factory_
~DaqScopeModeHistograms() override
const VString & getErrorCodes() const
const HistosMap & histos() const
Analysis for scope mode data.