66 float maxFoundSignificance=0;
67 const auto &
pv = (*pvs_)[0];
74 for(
const auto &sv: *
svs_){
75 GlobalVector flightDir(sv.vertex().x() -
pv.x(), sv.vertex().y() -
pv.y(),sv.vertex().z() -
pv.z());
82 this->
setValue(
"Jet_vtxMass",sv.p4().M());
85 this->
setValue(
"Jet_vtxNtrk",sv.numberOfSourceCandidatePtrs());
94 desc.
add<
edm::InputTag>(
"pvsrc")->setComment(
"primary vertices input collection");
95 desc.
add<
edm::InputTag>(
"svsrc")->setComment(
"secondary vertices input collection");
96 descriptions.
add(
"BJetEnergyRegressionMVA",desc);
static edm::ParameterSetDescription getDescription()
reco::Vertex::Point convertPos(const GlobalPoint &p)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
double px() const final
x coordinate of momentum vector
bool empty() const
Is the RefVector empty.
reco::Vertex::Error convertError(const GlobalError &ge)
void setValue(const std::string var, float val)
const reco::CandidatePtrVector & overlaps(const std::string &label) const
Measurement1D distance(const GlobalPoint &vtx1Position, const GlobalError &vtx1PositionError, const GlobalPoint &vtx2Position, const GlobalError &vtx2PositionError) const override
double pz() const final
z coordinate of momentum vector
const edm::EDGetTokenT< edm::View< reco::VertexCompositePtrCandidate > > svsrc_
ParameterDescriptionBase * add(U const &iLabel, T const &value)
edm::Handle< std::vector< reco::Vertex > > pvs_
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
edm::Handle< edm::View< reco::VertexCompositePtrCandidate > > svs_
double significance() const
const edm::EDGetTokenT< std::vector< reco::Vertex > > pvsrc_
Analysis-level electron class.
double py() const final
y coordinate of momentum vector
Analysis-level calorimeter jet class.
void add(std::string const &label, ParameterSetDescription const &psetDescription)
T1 deltaR2(T1 eta1, T2 phi1, T3 eta2, T4 phi2)
BJetEnergyRegressionMVA(const edm::ParameterSet &iConfig)
void readAdditionalCollections(edm::Event &iEvent, const edm::EventSetup &) override
to be implemented in derived classes, filling values for additional variables
const daughters & daughterPtrVector() const
references to daughtes
Analysis-level muon class.
void fillAdditionalVariables(const pat::Jet &j) override