14 using namespace sistrip;
26 <<
"[PedsFullNoiseHistograms::" << __func__ <<
"]"
27 <<
" Constructing object...";
34 <<
"[PedsFullNoiseHistograms::" << __func__ <<
"]"
35 <<
" Destructing object...";
42 <<
"[PedsFullNoiseHistograms::" << __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 <<
"[PedsFullNoiseHistograms::" << __func__ <<
"]"
64 <<
" Zero histograms found!";
69 std::vector<TH1*> hists;
70 Histos::const_iterator ihis = iter->second.begin();
71 for ( ; ihis != iter->second.end(); ihis++ ) {
74 if ( prof ) { hists.push_back(prof); }
80 if ( his2D ) { hists.push_back(his2D); }
87 data()[iter->first] = anal;
88 if ( anal->
isValid() ) { valid++; }
97 <<
"[PedsFullNoiseHistograms::" << __func__ <<
"]"
98 <<
" Analyzed histograms for " <<
histos().size()
99 <<
" FED channels, of which " << valid
100 <<
" (" << 100 * valid /
histos().size()
102 if ( !errors.empty() ) {
104 std::stringstream ss;
106 std::map<std::string,uint16_t>::const_iterator
ii;
107 for ( ii = errors.begin(); ii != errors.end(); ++
ii ) {
108 ss <<
" " << ii->first <<
": " << ii->second << std::endl;
112 <<
"[PedsFullNoiseHistograms::" << __func__ <<
"]"
113 <<
" Found " << count <<
" errors ("
114 << 100 * count /
histos().size() <<
"%): "
119 <<
"[PedsFullNoiseHistograms::" << __func__ <<
"]"
120 <<
" No histograms to analyze!";
128 Analyses::iterator ianal =
data().begin();
129 Analyses::iterator janal =
data().end();
130 for ( ; ianal != janal; ++ianal ) {
131 if ( ianal->second ) {
132 std::stringstream ss;
133 ianal->second->print( ss, 1 );
134 ianal->second->print( ss, 2 );
void analysis(const std::vector< TH1 * > &)
const edm::ParameterSet & pset() const
static const char mlDqmClient_[]
Histogram-based analysis for pedestal run.
Histogram-based analysis for pedestal run.
PedsFullNoiseHistograms(const edm::ParameterSet &pset, DQMStore *)
int extract(std::vector< int > *output, const std::string &dati)
std::auto_ptr< Factory > factory_
const VString & getErrorCodes() const
virtual ~PedsFullNoiseHistograms()
void histoAnalysis(bool debug)
const HistosMap & histos() const