#include <RecoBTag/TrackProbabilityXMLtoDB/src/TrackProbabilityXMLtoDB.cc>
Public Member Functions | |
virtual void | analyze (const edm::Event &iEvent, const edm::EventSetup &iSetup) |
virtual void | endJob () |
TrackProbabilityXMLtoDB (const edm::ParameterSet &) | |
~TrackProbabilityXMLtoDB () | |
Private Attributes | |
int | count |
edm::InputTag | m_assoc |
double | m_cutMaxChiSquared |
double | m_cutMaxDecayLen |
double | m_cutMaxDistToAxis |
double | m_cutMaxLIP |
double | m_cutMaxTIP |
double | m_cutMinProb |
double | m_cutMinPt |
int | m_cutPixelHits |
int | m_cutTotalHits |
edm::InputTag | m_jets |
edm::InputTag | m_primaryVertexProducer |
int | ntracks |
Description: <one line="" class="" summary>="">
Implementation: <Notes on="" implementation>="">
Definition at line 81 of file TrackProbabilityXMLtoDB.cc.
TrackProbabilityXMLtoDB::TrackProbabilityXMLtoDB | ( | const edm::ParameterSet & | parameters | ) | [explicit] |
Definition at line 150 of file TrackProbabilityXMLtoDB.cc.
{ }
TrackProbabilityXMLtoDB::~TrackProbabilityXMLtoDB | ( | ) | [inline] |
Definition at line 121 of file TrackProbabilityXMLtoDB.cc.
{ }
void TrackProbabilityXMLtoDB::analyze | ( | const edm::Event & | iEvent, |
const edm::EventSetup & | iSetup | ||
) | [virtual] |
virtual void TrackProbabilityXMLtoDB::endJob | ( | void | ) | [inline, virtual] |
Reimplemented from edm::EDAnalyzer.
Definition at line 85 of file TrackProbabilityXMLtoDB.cc.
References CalibrationInterface< T, CO >::categoriesWithData(), TrackProbabilityCalibration::Entry::category, TrackProbabilityCalibration::data, runTheMatrix::data, edm::FileInPath::fullPath(), TrackProbabilityCalibration::Entry::histogram, i, edm::Service< T >::isAvailable(), and CalibrationInterface< T, CO >::size().
{ edm::Service<cond::service::PoolDBOutputService> mydbservice; if( !mydbservice.isAvailable() ) return; edm::FileInPath f2d("RecoBTag/TrackProbability/data/2DHisto.xml"); edm::FileInPath f3d("RecoBTag/TrackProbability/data/3DHisto.xml"); AlgorithmCalibration<TrackClassFilterCategory, CalibratedHistogramXML>* calibrationOld= new AlgorithmCalibration<TrackClassFilterCategory,CalibratedHistogramXML>((f3d.fullPath()).c_str()); AlgorithmCalibration<TrackClassFilterCategory, CalibratedHistogramXML>* calibration2dOld= new AlgorithmCalibration<TrackClassFilterCategory,CalibratedHistogramXML>((f2d.fullPath()).c_str()); vector<pair<TrackClassFilterCategory, CalibratedHistogramXML> > data = calibrationOld->categoriesWithData(); vector<pair<TrackClassFilterCategory, CalibratedHistogramXML> > data2d = calibration2dOld->categoriesWithData(); TrackProbabilityCalibration * calibration= new TrackProbabilityCalibration(); TrackProbabilityCalibration * calibration2d= new TrackProbabilityCalibration(); for(int i = 0 ; i < data.size();i++) { TrackProbabilityCalibration::Entry entry; entry.category=data[i].first.categoryData(); entry.histogram=data[i].second; calibration->data.push_back(entry); } for(int i = 0 ; i < data2d.size();i++) { TrackProbabilityCalibration::Entry entry; entry.category=data2d[i].first.categoryData(); entry.histogram=data2d[i].second; calibration2d->data.push_back(entry); } mydbservice->createNewIOV<TrackProbabilityCalibration>(calibration, mydbservice->endOfTime(),"BTagTrackProbability3DRcd"); mydbservice->createNewIOV<TrackProbabilityCalibration>(calibration2d, mydbservice->endOfTime(),"BTagTrackProbability2DRcd"); }
int TrackProbabilityXMLtoDB::count [private] |
Definition at line 130 of file TrackProbabilityXMLtoDB.cc.
Definition at line 142 of file TrackProbabilityXMLtoDB.cc.
double TrackProbabilityXMLtoDB::m_cutMaxChiSquared [private] |
Definition at line 137 of file TrackProbabilityXMLtoDB.cc.
double TrackProbabilityXMLtoDB::m_cutMaxDecayLen [private] |
Definition at line 136 of file TrackProbabilityXMLtoDB.cc.
double TrackProbabilityXMLtoDB::m_cutMaxDistToAxis [private] |
Definition at line 139 of file TrackProbabilityXMLtoDB.cc.
double TrackProbabilityXMLtoDB::m_cutMaxLIP [private] |
Definition at line 138 of file TrackProbabilityXMLtoDB.cc.
double TrackProbabilityXMLtoDB::m_cutMaxTIP [private] |
Definition at line 134 of file TrackProbabilityXMLtoDB.cc.
double TrackProbabilityXMLtoDB::m_cutMinProb [private] |
Definition at line 140 of file TrackProbabilityXMLtoDB.cc.
double TrackProbabilityXMLtoDB::m_cutMinPt [private] |
Definition at line 135 of file TrackProbabilityXMLtoDB.cc.
int TrackProbabilityXMLtoDB::m_cutPixelHits [private] |
Definition at line 132 of file TrackProbabilityXMLtoDB.cc.
int TrackProbabilityXMLtoDB::m_cutTotalHits [private] |
Definition at line 133 of file TrackProbabilityXMLtoDB.cc.
edm::InputTag TrackProbabilityXMLtoDB::m_jets [private] |
Definition at line 143 of file TrackProbabilityXMLtoDB.cc.
Definition at line 144 of file TrackProbabilityXMLtoDB.cc.
int TrackProbabilityXMLtoDB::ntracks [private] |
Definition at line 131 of file TrackProbabilityXMLtoDB.cc.