#include <MuonMvaIDEstimator.h>
Definition at line 21 of file MuonMvaIDEstimator.h.
◆ MuonMvaIDEstimator()
MuonMvaIDEstimator::MuonMvaIDEstimator |
( |
const edm::FileInPath & |
weightsfile | ) |
|
◆ ~MuonMvaIDEstimator()
pat::MuonMvaIDEstimator::~MuonMvaIDEstimator |
( |
| ) |
|
|
default |
◆ computeMVAID()
std::vector< float > MuonMvaIDEstimator::computeMVAID |
( |
const pat::Muon & |
imuon | ) |
const |
Definition at line 32 of file MuonMvaIDEstimator.cc.
References arbitrationType, cms::cuda::assert(), PVValHelper::eta, MuonTCMETValueMapProducer_cff::global_muon, LogDebug, PatBasicFWLiteJetAnalyzer_Selector_cfg::outputs, and DiDispStaMuonMonitor_cfi::pt.
33 const float local_chi2 =
muon.combinedQuality().chi2LocalPosition;
34 const float kink =
muon.combinedQuality().trkKink;
36 const float n_MatchedStations =
muon.numberOfMatchedStations();
37 const float pt =
muon.pt();
43 if (
muon.innerTrack().isNonnull()) {
44 Valid_pixel =
muon.innerTrack()->hitPattern().numberOfValidPixelHits();
45 tracker_layers =
muon.innerTrack()->hitPattern().trackerLayersWithMeasurement();
46 validFraction =
muon.innerTrack()->validFraction();
49 tracker_layers = -99.0;
50 validFraction = -99.0;
54 if (
muon.globalTrack().isNonnull()) {
55 norm_chi2 =
muon.globalTrack()->normalizedChi2();
56 n_Valid_hits =
muon.globalTrack()->hitPattern().numberOfValidMuonHits();
57 }
else if (
muon.innerTrack().isNonnull()) {
58 norm_chi2 =
muon.innerTrack()->normalizedChi2();
59 n_Valid_hits =
muon.innerTrack()->hitPattern().numberOfValidMuonHits();
64 const std::vector<std::string>
input_names_{
"float_input"};
77 const std::vector<std::string>
flav_names_{
"probBAD",
"probGOOD"};
79 input_values_.emplace_back(
vars);
std::vector< std::string > input_names_
std::vector< std::string > flav_names_
std::unique_ptr< const cms::Ort::ONNXRuntime > randomForest_
std::vector< std::vector< float > > FloatArrays
const reco::Muon::ArbitrationType arbitrationType
◆ fillDescriptions()
◆ globalEndJob()
◆ flav_names_
std::vector<std::string> pat::MuonMvaIDEstimator::flav_names_ |
|
private |
◆ input_names_
std::vector<std::string> pat::MuonMvaIDEstimator::input_names_ |
|
private |
◆ randomForest_