CMS 3D CMS Logo

DaqScopeModeAnalysis.cc
Go to the documentation of this file.
5 #include <iostream>
6 #include <iomanip>
7 #include <cmath>
8 
9 using namespace sistrip;
10 
11 // ----------------------------------------------------------------------------
12 //
14  : CommissioningAnalysis(key,"DaqScopeModeAnalysis"),
15  entries_(sistrip::invalid_),
16  mean_(sistrip::invalid_),
17  median_(sistrip::invalid_),
18  mode_(sistrip::invalid_),
19  rms_(sistrip::invalid_),
20  min_(sistrip::invalid_),
21  max_(sistrip::invalid_)
22 {;}
23 
24 // ----------------------------------------------------------------------------
25 //
27  : CommissioningAnalysis("DaqScopeModeAnalysis"),
35 {;}
36 
37 // ----------------------------------------------------------------------------
38 //
44  rms_ = 1.*sistrip::invalid_;
45  min_ = 1.*sistrip::invalid_;
46  max_ = 1.*sistrip::invalid_;
47 }
48 
49 // ----------------------------------------------------------------------------
50 //
51 void DaqScopeModeAnalysis::print( std::stringstream& ss, uint32_t not_used ) {
52  header( ss );
53  ss << " Number of entries : " << entries_ << "\n"
54  << " Mean +/- rms [adc] : " << mean_ << " +/- " << rms_ << "\n"
55  << " Median / mode [adc] : " << median_ << " / " << mode_ << "\n"
56  << " Min / max [adc] : " << min_ << " / " << max_ << "\n";
57 }
sistrip classes
void print(std::stringstream &, uint32_t not_used=0)
virtual void header(std::stringstream &) const
static const uint16_t invalid_
Definition: Constants.h:16
Abstract base for derived classes that provide analysis of commissioning histograms.