CMS 3D CMS Logo

HistogramProbabilityEstimator.h

Go to the documentation of this file.
00001 #ifndef HistogramProbabilityEstimator_H
00002 #define HistogramProbabilityEstimator_H
00003 
00004 #include "DataFormats/TrackReco/interface/Track.h"
00005 #include "DataFormats/JetReco/interface/Jet.h"
00006 #include "DataFormats/VertexReco/interface/Vertex.h"
00007 
00008 #include "CondFormats/BTauObjects/interface/CalibratedHistogram.h"
00009 #include "CondFormats/BTauObjects/interface/TrackProbabilityCalibration.h"
00010 
00011 // #include "RecoBTag/XMLCalibration/interface/AlgorithmCalibration.h"
00012 
00016 #include <utility>
00017 
00018 class HistogramProbabilityEstimator {
00019 
00020  public:
00021 
00022 
00023   HistogramProbabilityEstimator( const  TrackProbabilityCalibration  * calib3D,
00024                                 const TrackProbabilityCalibration * calib2D) 
00025    :   m_calibration3D(calib3D),m_calibration2D(calib2D)
00026     {}
00027 
00028 /*   HistogramProbabilityEstimator( AlgorithmCalibration<TrackClassFilterCategory,CalibratedHistogramXML>  * calib3D,
00029                                  AlgorithmCalibration<TrackClassFilterCategory,CalibratedHistogramXML> * calib2D)
00030     :   m_calibration3D(calib3D),m_calibrationTransverse(calib2D)
00031 
00032   {
00033   }
00034 */
00035 
00036  ~HistogramProbabilityEstimator()
00037  {
00038 
00039 //  if(m_calibration3D!=0) delete m_calibration3D;
00040 //  if(m_calibration2D!=0) delete m_calibration2D;
00041  }
00042   std::pair<bool,double> probability(bool quality, int ipType, float significance, const reco::Track&, const reco::Jet &, const reco::Vertex &) const;
00043 
00044  private:
00045   const TrackProbabilityCalibration * m_calibration3D;
00046  const TrackProbabilityCalibration * m_calibration2D;
00047    
00048 };
00049 
00050 #endif
00051 
00052 
00053 
00054 
00055 
00056 
00057 

Generated on Tue Jun 9 17:43:06 2009 for CMSSW by  doxygen 1.5.4