16 using namespace sistrip;
22 factory_ = std::make_unique<VpspScanSummaryFactory>();
24 <<
" Constructing object...";
31 <<
" Denstructing object...";
41 HistosMap::const_iterator iter;
42 Analyses::iterator ianal;
43 std::map<std::string, uint16_t> errors;
46 for (ianal =
data().
begin(); ianal !=
data().end(); ianal++) {
56 if (iter->second.empty()) {
58 <<
" Zero histograms found!" << endl;
63 std::vector<TH1*> profs;
64 Histos::const_iterator ihis = iter->second.begin();
65 for (; ihis != iter->second.end(); ihis++) {
68 profs.push_back(prof);
76 data()[iter->first] = anal;
87 <<
" Analyzed histograms for " <<
histos().size() <<
" FED channels, of which "
88 << valid <<
" (" << 100 * valid /
histos().size() <<
"%) are valid.";
89 if (!errors.empty()) {
93 std::map<std::string, uint16_t>::const_iterator
ii;
94 for (ii = errors.begin(); ii != errors.end(); ++
ii) {
95 ss <<
" " << ii->first <<
": " << ii->second << std::endl;
99 <<
" Found " << count <<
" errors (" << 100 * count /
histos().size()
100 <<
"%): " << ss.str();
104 <<
" No histograms to analyze!";
111 Analyses::iterator ianal =
data().begin();
112 Analyses::iterator janal =
data().end();
113 for (; ianal != janal; ++ianal) {
115 std::stringstream
ss;
116 ianal->second->print(ss, 1);
117 ianal->second->print(ss, 2);
118 if (ianal->second->isValid()) {
void analysis(const std::vector< TH1 * > &)
Log< level::Info, true > LogVerbatim
bool isValid() const override
Analyses & data(bool getMaskedData=false)
const edm::ParameterSet & pset() const
void histoAnalysis(bool debug) override
static const char mlDqmClient_[]
Histogram-based analysis for VPSP scan.
int extract(std::vector< int > *output, const std::string &dati)
~VpspScanHistograms() override
std::unique_ptr< Factory > factory_
Histogram-based analysis for VPSP scan.
void printAnalyses() override
Log< level::Warning, false > LogWarning
VpspScanHistograms(const edm::ParameterSet &pset, DQMStore *)
const VString & getErrorCodes() const
const HistosMap & histos() const