Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-10-25 09:40:07

0001 #ifndef TrackReco_DeDxData_h
0002 #define TrackReco_DeDxData_h
0003 
0004 #include "DataFormats/Common/interface/ValueMap.h"
0005 
0006 namespace reco {
0007 
0008   class DeDxData {
0009   public:
0010     DeDxData();
0011     DeDxData(float val, float er, unsigned int num);
0012     virtual ~DeDxData();
0013     float dEdx() const;
0014     float dEdxError() const;
0015     int numberOfSaturatedMeasurements() const;
0016     unsigned int numberOfMeasurements() const;
0017 
0018   private:
0019     float value_;
0020     float error_;
0021     unsigned int numberOfMeasurements_;
0022   };
0023 
0024   //Association Track -> float estimator
0025   typedef std::vector<reco::DeDxData> DeDxDataCollection;
0026   typedef edm::ValueMap<reco::DeDxData> DeDxDataValueMap;
0027 
0028   // //Association Track -> float estimator
0029   //typedef  edm::AssociationVector<reco::TrackRefProd,std::vector<DeDxData> >  DeDxDataCollection;
0030   //typedef  DeDxDataCollection::value_type DeDxData;
0031   //typedef  edm::Ref<DeDxDataCollection> DeDxDataRef;
0032   //typedef  edm::RefProd<DeDxDataCollection> DeDxDataRefProd;
0033   //typedef  edm::RefVector<DeDxDataCollection> DeDxDataRefVector;
0034 
0035 }  // namespace reco
0036 #endif