22 <<
" Constructing object...";
29 <<
" Denstructing object...";
39 HistosMap::const_iterator iter;
40 Analyses::iterator ianal;
41 std::map<std::string, uint16_t>
errors;
44 for (ianal =
data().
begin(); ianal !=
data().end(); ianal++) {
54 if (iter->second.empty()) {
56 <<
" Zero histograms found!";
61 std::vector<TH1*> profs;
62 Histos::const_iterator ihis = iter->second.begin();
63 for (; ihis != iter->second.end(); ihis++) {
66 profs.push_back(prof);
85 <<
" Analyzed histograms for " <<
histos().size() <<
" FED channels, of which " 86 << valid <<
" (" << 100 * valid /
histos().size() <<
"%) are valid.";
89 <<
" No histograms to analyze!";
94 <<
" Analyzed histograms for " <<
histos().size() <<
" FED channels, of which " 95 << valid <<
" (" << 100 * valid /
histos().size() <<
"%) are valid.";
96 if (!errors.empty()) {
100 std::map<std::string, uint16_t>::const_iterator
ii;
101 for (ii = errors.begin(); ii != errors.end(); ++
ii) {
102 ss <<
" " << ii->first <<
": " << ii->second << std::endl;
106 <<
" Found " << count <<
" errors (" << 100 * count /
histos().size()
107 <<
"%): " << ss.str();
111 <<
" No histograms to analyze!";
118 Analyses::iterator ianal =
data().begin();
119 Analyses::iterator janal =
data().end();
120 for (; ianal != janal; ++ianal) {
122 std::stringstream
ss;
123 if (ianal->second->isValid()) {
124 ianal->second->print(ss);
127 ianal->second->print(ss, 0);
128 ianal->second->print(ss, 1);
129 ianal->second->print(ss, 2);
130 ianal->second->print(ss, 3);
Histogram-based analysis for opto bias/gain scan.
void analysis(const std::vector< TH1 * > &)
Analyses & data(bool getMaskedData=false)
void histoAnalysis(bool debug) override
~OptoScanHistograms() override
const edm::ParameterSet & pset() const
OptoScanHistograms(const edm::ParameterSet &pset, DQMStore *)
static const char mlDqmClient_[]
void printAnalyses() override
int extract(std::vector< int > *output, const std::string &dati)
std::unique_ptr< Factory > factory_
const VString & getErrorCodes() const
bool isValid() const override
const HistosMap & histos() const