test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DeDxData.cc
Go to the documentation of this file.
2 
3 using namespace reco;
4 
6  value_(0.),
7  error_(0.),
8  numberOfMeasurements_(0)
9 {
10  ;
11 }
12 
13 DeDxData::DeDxData (float val, float er, unsigned int num) :
14  value_(val),
15  error_(er),
16  numberOfMeasurements_(num)
17 {
18  ;
19 }
20 
22 {
23  ;
24 }
25 
26 float DeDxData::dEdx() const
27 {
28  return value_;
29 }
30 
31 float DeDxData::dEdxError() const
32 {
33  return -1;
34  /*error_;*/
35 }
36 
37 unsigned int DeDxData::numberOfMeasurements() const
38 {
39  return numberOfMeasurements_;
40 }
41 
43 {
44  return error_ >= 0 ? (int)error_ : 0;
45 }
46 
float dEdxError() const
Definition: DeDxData.cc:31
float dEdx() const
Definition: DeDxData.cc:26
unsigned int numberOfMeasurements() const
Definition: DeDxData.cc:37
virtual ~DeDxData()
Definition: DeDxData.cc:21
float value_
Definition: DeDxData.h:22
float error_
Definition: DeDxData.h:23
unsigned int numberOfMeasurements_
Definition: DeDxData.h:24
int numberOfSaturatedMeasurements() const
Definition: DeDxData.cc:42