27 <<
"[PedsFullNoiseHistograms::" << __func__ <<
"]" 28 <<
" Constructing object...";
35 <<
"[PedsFullNoiseHistograms::" << __func__ <<
"]" 36 <<
" Destructing object...";
44 <<
"[PedsFullNoiseHistograms::" << __func__ <<
"]";
48 HistosMap::const_iterator iter;
49 Analyses::iterator ianal;
50 std::map<std::string,uint16_t>
errors;
53 for ( ianal =
data().
begin(); ianal !=
data().end(); ianal++ ) {
54 if ( ianal->second ) {
delete ianal->second; }
59 long int ichannel = 0;
60 long int nchannel =
histos().size();
62 iter !=
histos().end(); iter++ ) {
65 if ( iter->second.empty() ) {
67 <<
"[PedsFullNoiseHistograms::" << __func__ <<
"]" 68 <<
" Zero histograms found!";
73 std::vector<TH1*>
hists;
74 Histos::const_iterator ihis = iter->second.begin();
76 for ( ; ihis != iter->second.end(); ihis++ ) {
79 if ( prof ) { hists.push_back(prof);
84 hists.push_back(his2D); }
87 if(ichannel % 100 == 0)
89 <<
"[PedsFullNoiseHistograms::" << __func__ <<
"]" 90 <<
" Analyzing channel " << ichannel <<
" out of "<<nchannel;
98 data()[iter->first] = anal;
99 if (anal->
isValid() ) { valid++; }
108 <<
"[PedsFullNoiseHistograms::" << __func__ <<
"]" 109 <<
" Analyzed histograms for " <<
histos().size()
110 <<
" FED channels, of which " << valid
111 <<
" (" << 100 * valid /
histos().size()
113 if ( !errors.empty() ) {
115 std::stringstream ss;
117 std::map<std::string,uint16_t>::const_iterator
ii;
118 for ( ii = errors.begin(); ii != errors.end(); ++
ii ) {
119 ss <<
" " << ii->first <<
": " << ii->second << std::endl;
123 <<
"[PedsFullNoiseHistograms::" << __func__ <<
"]" 124 <<
" Found " << count <<
" errors (" 125 << 100 * count /
histos().size() <<
"%): " 130 <<
"[PedsFullNoiseHistograms::" << __func__ <<
"]" 131 <<
" No histograms to analyze!";
139 Analyses::iterator ianal =
data().begin();
140 Analyses::iterator janal =
data().end();
141 for ( ; ianal != janal; ++ianal ) {
142 if ( ianal->second ) {
143 std::stringstream ss;
144 ianal->second->print( ss, 1 );
145 ianal->second->print( ss, 2 );
void analysis(const std::vector< TH1 * > &)
Analyses & data(bool getMaskedData=false)
const edm::ParameterSet & pset() const
void printAnalyses() override
static const char mlDqmClient_[]
Histogram-based analysis for pedestal run.
Histogram-based analysis for pedestal run.
PedsFullNoiseHistograms(const edm::ParameterSet &pset, DQMStore *)
~PedsFullNoiseHistograms() 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
void histoAnalysis(bool debug) override