CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
reco::DeDxData Class Reference

#include <DeDxData.h>

Public Member Functions

float dEdx () const
 
 DeDxData ()
 
 DeDxData (float val, float er, unsigned int num)
 
float dEdxError () const
 
unsigned int numberOfMeasurements () const
 
int numberOfSaturatedMeasurements () const
 
virtual ~DeDxData ()
 

Private Attributes

float error_
 
unsigned int numberOfMeasurements_
 
float value_
 

Detailed Description

Definition at line 8 of file DeDxData.h.

Constructor & Destructor Documentation

◆ DeDxData() [1/2]

DeDxData::DeDxData ( )

Definition at line 5 of file DeDxData.cc.

5 : value_(0.), error_(0.), numberOfMeasurements_(0) { ; }

◆ DeDxData() [2/2]

DeDxData::DeDxData ( float  val,
float  er,
unsigned int  num 
)

Definition at line 7 of file DeDxData.cc.

◆ ~DeDxData()

DeDxData::~DeDxData ( )
virtual

Definition at line 9 of file DeDxData.cc.

9 { ; }

Member Function Documentation

◆ dEdx()

float DeDxData::dEdx ( ) const

Definition at line 11 of file DeDxData.cc.

11 { return value_; }

References value_.

Referenced by MTVHistoProducerAlgoForTracker::fill_dedx_recoTrack_histos().

◆ dEdxError()

float DeDxData::dEdxError ( ) const

Definition at line 13 of file DeDxData.cc.

13  {
14  return -1;
15  /*error_;*/
16 }

◆ numberOfMeasurements()

unsigned int DeDxData::numberOfMeasurements ( ) const

Definition at line 18 of file DeDxData.cc.

18 { return numberOfMeasurements_; }

References numberOfMeasurements_.

Referenced by MTVHistoProducerAlgoForTracker::fill_dedx_recoTrack_histos().

◆ numberOfSaturatedMeasurements()

int DeDxData::numberOfSaturatedMeasurements ( ) const

Definition at line 20 of file DeDxData.cc.

20 { return error_ >= 0 ? (int)error_ : 0; }

References error_, and createfilelist::int.

Referenced by MTVHistoProducerAlgoForTracker::fill_dedx_recoTrack_histos().

Member Data Documentation

◆ error_

float reco::DeDxData::error_
private

Definition at line 20 of file DeDxData.h.

Referenced by numberOfSaturatedMeasurements().

◆ numberOfMeasurements_

unsigned int reco::DeDxData::numberOfMeasurements_
private

Definition at line 21 of file DeDxData.h.

Referenced by numberOfMeasurements().

◆ value_

float reco::DeDxData::value_
private

Definition at line 19 of file DeDxData.h.

Referenced by dEdx().

reco::DeDxData::value_
float value_
Definition: DeDxData.h:19
reco::DeDxData::error_
float error_
Definition: DeDxData.h:20
reco::DeDxData::numberOfMeasurements_
unsigned int numberOfMeasurements_
Definition: DeDxData.h:21
createfilelist.int
int
Definition: createfilelist.py:10
EgammaValidation_cff.num
num
Definition: EgammaValidation_cff.py:34
heppy_batch.val
val
Definition: heppy_batch.py:351