1 #ifndef RecoTracker_FinalTrackSelectors_TrackMVAClassifierBase_h 2 #define RecoTracker_FinalTrackSelectors_TrackMVAClassifierBase_h 64 template<
typename EventCache>
66 template <
typename MVA>
76 for (
auto const & trk : tracks) {
77 mvas[current++] =
mva(trk,beamSpot,vertices,cache);
84 template <
typename MVA>
92 for (
auto const & trk : tracks) {
94 std::pair<float,bool>
output (
mva(trk,beamSpot,vertices),
true);
101 template<
typename MVA,
typename EventCache=
void>
141 #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