14 using namespace sistrip;
26 <<
"[NoiseHistograms::" << __func__ <<
"]"
27 <<
" Constructing object...";
34 <<
"[NoiseHistograms::" << __func__ <<
"]"
35 <<
" Destructing object...";
42 <<
"[NoiseHistograms::" << __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 <<
"[NoiseHistograms::" << __func__ <<
"]"
64 <<
" Zero histograms found!";
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); }
83 data()[iter->first] = anal;
84 if ( anal->
isValid() ) { valid++; }
93 <<
"[NoiseHistograms::" << __func__ <<
"]"
94 <<
" Analyzed histograms for " <<
histos().size()
95 <<
" FED channels, of which " << valid
96 <<
" (" << 100 * valid /
histos().size()
98 if ( !errors.empty() ) {
100 std::stringstream
ss;
102 std::map<std::string,uint16_t>::const_iterator
ii;
103 for ( ii = errors.begin(); ii != errors.end(); ++
ii ) {
104 ss <<
" " << ii->first <<
": " << ii->second << std::endl;
108 <<
"[NoiseHistograms::" << __func__ <<
"]"
109 <<
" Found " << count <<
" errors ("
110 << 100 * count /
histos().size() <<
"%): "
115 <<
"[NoiseHistograms::" << __func__ <<
"]"
116 <<
" No histograms to analyze!";
124 Analyses::iterator ianal =
data().begin();
125 Analyses::iterator janal =
data().end();
126 for ( ; ianal != janal; ++ianal ) {
127 if ( ianal->second ) {
128 std::stringstream
ss;
129 ianal->second->print( ss, 1 );
130 ianal->second->print( ss, 2 );
void analysis(const std::vector< TH1 * > &)
Histogram-based analysis for pedestal run.
const edm::ParameterSet & pset() const
static const char mlDqmClient_[]
NoiseHistograms(const edm::ParameterSet &pset, DQMStore *)
virtual ~NoiseHistograms()
int extract(std::vector< int > *output, const std::string &dati)
std::auto_ptr< Factory > factory_
Histogram-based analysis for pedestal run.
const VString & getErrorCodes() const
const HistosMap & histos() const
void histoAnalysis(bool debug)