1 #ifndef RecoTracker_FinalTrackSelectors_TrackMVAClassifierBase_h 2 #define RecoTracker_FinalTrackSelectors_TrackMVAClassifierBase_h 59 template <
typename EventCache>
61 template <
typename MVA>
70 for (
auto const& trk : tracks) {
71 mvas[current++] =
mva(trk, beamSpot, vertices, cache);
78 template <
typename MVA>
85 for (
auto const& trk : tracks) {
87 std::pair<float, bool>
output(
mva(trk, beamSpot, vertices),
true);
94 template <
typename MVA,
typename EventCache =
void>
125 #endif // RecoTracker_FinalTrackSelectors_TrackMVAClassifierBase_h static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
void computeMVA(reco::TrackCollection const &tracks, reco::BeamSpot const &beamSpot, reco::VertexCollection const &vertices, MVAPairCollection &mvas) const final
std::vector< std::pair< float, bool >> MVAPairCollection
TrackMVAClassifierBase(const edm::ParameterSet &cfg)
virtual void initEvent(const edm::EventSetup &es)=0
edm::EDGetTokenT< reco::TrackCollection > src_
source collection label
std::vector< Track > TrackCollection
collection of Tracks
static void fill(edm::ParameterSetDescription &desc)
std::vector< Vertex > VertexCollection
collection of Vertex objects
std::vector< float > MVACollection
~TrackMVAClassifierBase() override
void operator()(MVA const &mva, reco::TrackCollection const &tracks, reco::BeamSpot const &beamSpot, reco::VertexCollection const &vertices, TrackMVAClassifierBase::MVAPairCollection &mvas)
edm::EDGetTokenT< reco::BeamSpot > beamspot_
void produce(edm::Event &evt, const edm::EventSetup &es) final
void beginStream(edm::StreamID) final
edm::EDGetTokenT< reco::VertexCollection > vertices_
ParameterDescriptionBase * add(U const &iLabel, T const &value)
TrackMVAClassifier(const edm::ParameterSet &cfg)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
void operator()(MVA const &mva, reco::TrackCollection const &tracks, reco::BeamSpot const &beamSpot, reco::VertexCollection const &vertices, TrackMVAClassifierBase::MVAPairCollection &mvas)
void initEvent(const edm::EventSetup &es) final
void add(std::string const &label, ParameterSetDescription const &psetDescription)
virtual void computeMVA(reco::TrackCollection const &tracks, reco::BeamSpot const &beamSpot, reco::VertexCollection const &vertices, MVAPairCollection &mvas) const =0
std::vector< unsigned char > QualityMaskCollection