16 using namespace sistrip;
22 factory_ = std::make_unique<PedestalsSummaryFactory>();
24 <<
" Constructing object...";
31 <<
" Destructing 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!";
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);
79 data()[iter->first] = anal;
90 <<
" Analyzed histograms for " <<
histos().size() <<
" FED channels, of which "
91 << valid <<
" (" << 100 * valid /
histos().size() <<
"%) are valid.";
92 if (!errors.empty()) {
96 std::map<std::string, uint16_t>::const_iterator
ii;
97 for (ii = errors.begin(); ii != errors.end(); ++
ii) {
98 ss <<
" " << ii->first <<
": " << ii->second << std::endl;
102 <<
" Found " << count <<
" errors (" << 100 * count /
histos().size()
103 <<
"%): " << ss.str();
107 <<
" No histograms to analyze!";
114 Analyses::iterator ianal =
data().begin();
115 Analyses::iterator janal =
data().end();
116 for (; ianal != janal; ++ianal) {
118 std::stringstream
ss;
119 ianal->second->print(ss, 1);
120 ianal->second->print(ss, 2);
121 if (ianal->second->isValid()) {
void analysis(const std::vector< TH1 * > &)
void printAnalyses() override
Log< level::Info, true > LogVerbatim
PedestalsHistograms(const edm::ParameterSet &pset, DQMStore *)
Analyses & data(bool getMaskedData=false)
const edm::ParameterSet & pset() const
void histoAnalysis(bool debug) override
static const char mlDqmClient_[]
Histogram-based analysis for pedestal run.
~PedestalsHistograms() override
bool isValid() const override
int extract(std::vector< int > *output, const std::string &dati)
std::unique_ptr< Factory > factory_
Histogram-based analysis for pedestal run.
Log< level::Warning, false > LogWarning
const VString & getErrorCodes() const
const HistosMap & histos() const