CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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"),
28  entries_(sistrip::invalid_),
29  mean_(sistrip::invalid_),
30  median_(sistrip::invalid_),
31  mode_(sistrip::invalid_),
32  rms_(sistrip::invalid_),
33  min_(sistrip::invalid_),
34  max_(sistrip::invalid_)
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 }
void print(std::stringstream &, uint32_t not_used=0)
string key
FastSim: produces sample of signal events, overlayed with premixed minbias events.
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.