00001 #include "DataFormats/TrackReco/interface/DeDxData.h" 00002 00003 using namespace reco; 00004 00005 DeDxData::DeDxData() : value_(0.), error_(0.), numberOfMeasurements_(0){} 00006 DeDxData::DeDxData (float val, float er, unsigned int num) : value_(val), error_(er), numberOfMeasurements_(num) {} 00007 DeDxData::~DeDxData(){} 00008 float DeDxData::dEdx() const {return value_;} 00009 float DeDxData::dEdxError() const {return -1;/*error_;*/} 00010 unsigned int DeDxData::numberOfMeasurements() const {return numberOfMeasurements_;} 00011 int DeDxData::numberOfSaturatedMeasurements() const {return error_>=0 ? (int)error_ : 0;} 00012