CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DeDxData.cc
Go to the documentation of this file.
2 
3 using namespace reco;
4 
5 DeDxData::DeDxData() : value_(0.), error_(0.), numberOfMeasurements_(0) { ; }
6 
7 DeDxData::DeDxData(float val, float er, unsigned int num) : value_(val), error_(er), numberOfMeasurements_(num) { ; }
8 
10 
11 float DeDxData::dEdx() const { return value_; }
12 
13 float DeDxData::dEdxError() const {
14  return -1;
15  /*error_;*/
16 }
17 
18 unsigned int DeDxData::numberOfMeasurements() const { return numberOfMeasurements_; }
19 
20 int DeDxData::numberOfSaturatedMeasurements() const { return error_ >= 0 ? (int)error_ : 0; }
float dEdxError() const
Definition: DeDxData.cc:13
float dEdx() const
Definition: DeDxData.cc:11
unsigned int numberOfMeasurements() const
Definition: DeDxData.cc:18
virtual ~DeDxData()
Definition: DeDxData.cc:9
float value_
Definition: DeDxData.h:19
float error_
Definition: DeDxData.h:20
unsigned int numberOfMeasurements_
Definition: DeDxData.h:21
int numberOfSaturatedMeasurements() const
Definition: DeDxData.cc:20