CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_5_3_14/src/DataFormats/TrackReco/interface/DeDxData.h

Go to the documentation of this file.
00001 #ifndef TrackReco_DeDxData_h
00002 #define TrackReco_DeDxData_h
00003 
00004 #include "DataFormats/Common/interface/ValueMap.h"
00005 
00006 namespace reco {
00007 
00008   class DeDxData{
00009     public:
00010       DeDxData();
00011       DeDxData(float val, float er, unsigned int num );
00012       virtual ~DeDxData();
00013 
00014       float dEdx() const;
00015       float dEdxError() const;
00016       int   numberOfSaturatedMeasurements() const;
00017       unsigned int numberOfMeasurements() const;
00018 
00019     private:
00020       float value_;
00021       float error_;
00022       unsigned int numberOfMeasurements_;
00023   };
00024 
00025 
00026 
00027 // //Association Track -> float estimator
00028 typedef  std::vector<reco::DeDxData>    DeDxDataCollection;
00029 typedef  edm::ValueMap<reco::DeDxData>  DeDxDataValueMap;
00030 
00031 
00032 // //Association Track -> float estimator
00033 //typedef  edm::AssociationVector<reco::TrackRefProd,std::vector<DeDxData> >  DeDxDataCollection;
00034 //typedef  DeDxDataCollection::value_type DeDxData;
00035 //typedef  edm::Ref<DeDxDataCollection> DeDxDataRef;
00036 //typedef  edm::RefProd<DeDxDataCollection> DeDxDataRefProd;
00037 //typedef  edm::RefVector<DeDxDataCollection> DeDxDataRefVector;
00038 
00039 }
00040 #endif
00041