16 using namespace sistrip;
23 factory_ = std::make_unique<DaqScopeModeSummaryFactory>();
25 <<
" Constructing object...";
32 <<
" Destructing object...";
42 HistosMap::const_iterator iter;
43 Analyses::iterator ianal;
44 std::map<std::string, uint16_t> errors;
47 for (ianal =
data().
begin(); ianal !=
data().end(); ianal++) {
57 if (iter->second.empty()) {
59 <<
" Zero histograms found!";
64 std::vector<TH1*> profs;
65 Histos::const_iterator ihis = iter->second.begin();
66 for (; ihis != iter->second.end(); ihis++) {
69 profs.push_back(prof);
73 profs.push_back(prof);
81 data()[iter->first] = anal;
93 <<
" Analyzed histograms for " <<
histos().size() <<
" FED channels, of which "
94 << valid <<
" (" << 100 * valid /
histos().size() <<
"%) are valid.";
95 if (!errors.empty()) {
99 std::map<std::string, uint16_t>::const_iterator
ii;
100 for (ii = errors.begin(); ii != errors.end(); ++
ii) {
101 ss <<
" " << ii->first <<
": " << ii->second << std::endl;
105 <<
" Found " << count <<
" errors (" << 100 * count /
histos().size()
106 <<
"%): " << ss.str();
110 <<
" No histograms to analyze!";
116 Analyses::iterator ianal =
data().begin();
117 Analyses::iterator janal =
data().end();
118 for (; ianal != janal; ++ianal) {
120 std::stringstream
ss;
121 ianal->second->print(ss, 1);
122 ianal->second->print(ss, 2);
123 if (ianal->second->isValid()) {
void analysis(const std::vector< TH1 * > &)
Log< level::Info, true > LogVerbatim
void printAnalyses() override
Analyses & data(bool getMaskedData=false)
const edm::ParameterSet & pset() const
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)
bool isValid() const override
Algorithm for scope mode data.
std::unique_ptr< Factory > factory_
~DaqScopeModeHistograms() override
Log< level::Warning, false > LogWarning
const VString & getErrorCodes() const
const HistosMap & histos() const
Analysis for scope mode data.