26 <<
"[VpspScanHistograms::" << __func__ <<
"]" 27 <<
" Constructing object...";
34 <<
"[VpspScanHistograms::" << __func__ <<
"]" 35 <<
" Denstructing object...";
42 <<
"[VpspScanHistograms::" << __func__ <<
"]";
46 HistosMap::const_iterator iter;
47 Analyses::iterator ianal;
48 std::map<std::string,uint16_t>
errors;
51 for ( ianal =
data().
begin(); ianal !=
data().end(); ianal++ ) {
52 if ( ianal->second ) {
delete ianal->second; }
58 iter !=
histos().end(); iter++ ) {
61 if ( iter->second.empty() ) {
63 <<
"[VpspScanHistograms::" << __func__ <<
"]" 64 <<
" Zero histograms found!" << endl;
69 std::vector<TH1*> profs;
70 Histos::const_iterator ihis = iter->second.begin();
71 for ( ; ihis != iter->second.end(); ihis++ ) {
73 if ( prof ) { profs.push_back(prof); }
80 data()[iter->first] = anal;
81 if ( anal->
isValid() ) { valid++; }
90 <<
"[VpspScanHistograms::" << __func__ <<
"]" 91 <<
" Analyzed histograms for " <<
histos().size()
92 <<
" FED channels, of which " << valid
93 <<
" (" << 100 * valid /
histos().size()
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 <<
"[VpspScanHistograms::" << __func__ <<
"]" 106 <<
" Found " << count <<
" errors (" 107 << 100 * count /
histos().size() <<
"%): " 112 <<
"[VpspScanHistograms::" << __func__ <<
"]" 113 <<
" No histograms to analyze!";
121 Analyses::iterator ianal =
data().begin();
122 Analyses::iterator janal =
data().end();
123 for ( ; ianal != janal; ++ianal ) {
124 if ( ianal->second ) {
125 std::stringstream ss;
126 ianal->second->print( ss, 1 );
127 ianal->second->print( ss, 2 );
void analysis(const std::vector< TH1 * > &)
const edm::ParameterSet & pset() const
void histoAnalysis(bool debug)
static const char mlDqmClient_[]
Histogram-based analysis for VPSP scan.
int extract(std::vector< int > *output, const std::string &dati)
Histogram-based analysis for VPSP scan.
std::auto_ptr< Factory > factory_
virtual ~VpspScanHistograms()
VpspScanHistograms(const edm::ParameterSet &pset, DQMStore *)
const VString & getErrorCodes() const
const HistosMap & histos() const