#include <TrackMVAClassifier.h>
Definition at line 23 of file TrackMVAClassifier.h.
◆ MVACollection
◆ MVAPairCollection
◆ QualityMaskCollection
◆ TrackMVAClassifierBase()
Definition at line 22 of file TrackMVAClassifierBase.cc.
References cms::cuda::assert(), looper::cfg, filterCSVwithJSON::copy, and qualityCuts.
27 auto const& qv =
cfg.getParameter<std::vector<double>>(
"qualityCuts");
31 produces<MVACollection>(
"MVAValues");
32 produces<QualityMaskCollection>(
"QualityMasks");
edm::EDGetTokenT< reco::TrackCollection > src_
source collection label
edm::EDGetTokenT< reco::BeamSpot > beamspot_
edm::EDGetTokenT< reco::VertexCollection > vertices_
◆ ~TrackMVAClassifierBase()
TrackMVAClassifierBase::~TrackMVAClassifierBase |
( |
| ) |
|
|
override |
◆ computeMVA()
◆ fill()
◆ initEvent()
virtual void TrackMVAClassifierBase::initEvent |
( |
const edm::EventSetup & |
es | ) |
|
|
protectedpure virtual |
◆ produce()
Definition at line 35 of file TrackMVAClassifierBase.cc.
References cms::cuda::assert(), beamspot_, computeMVA(), f, edm::Event::getByToken(), reco::TrackBase::highPurity, ignoreVertices_, initEvent(), edm::HandleBase::isValid(), isotrackApplyRegressor::k, reco::TrackBase::loose, WZElectronSkims53X_cff::max, eostools::move(), beam_dqm_sourceclient-live_cfg::mva, edm::Event::put(), qualityCuts, src_, reco::TrackBase::tight, DiMuonV_cfg::tracks, AlignmentTracksFromVertexSelector_cfi::vertices, and vertices_.
39 auto const&
tracks(*hSrcTrack);
52 auto mvaPairs = std::make_unique<MVAPairCollection>(
tracks.size(), std::make_pair(-99.
f,
true));
53 auto mvas = std::make_unique<MVACollection>(
tracks.size(), -99.f);
54 auto quals = std::make_unique<QualityMaskCollection>(
tracks.size(), 0);
61 <<
"ignoreVertices is set to False in the configuration, but the vertex collection is not valid";
68 for (
auto const&
output : *mvaPairs) {
75 float mva = (*mvas)[
k];
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
virtual void initEvent(const edm::EventSetup &es)=0
edm::EDGetTokenT< reco::TrackCollection > src_
source collection label
virtual void computeMVA(reco::TrackCollection const &tracks, reco::BeamSpot const &beamSpot, reco::VertexCollection const &vertices, MVAPairCollection &mvas) const =0
bool getByToken(EDGetToken token, Handle< PROD > &result) const
edm::EDGetTokenT< reco::BeamSpot > beamspot_
edm::EDGetTokenT< reco::VertexCollection > vertices_
Log< level::Warning, false > LogWarning
◆ beamspot_
◆ ignoreVertices_
bool TrackMVAClassifierBase::ignoreVertices_ |
|
private |
◆ qualityCuts
float TrackMVAClassifierBase::qualityCuts[3] |
|
private |
◆ src_
◆ vertices_