You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently we are reading the vertex collection once per jet.
While CMSSW is smart about caching such access, it is a bad code example.
These two lines should move into the produce method
Currently we are reading the vertex collection once per jet.
While CMSSW is smart about caching such access, it is a bad code example.
These two lines should move into the
produce
methodedm::Handle < std::vector<reco::Vertex> > primaryVertices; iEvent.getByToken(vtxInputTag_, primaryVertices);
and the current
fillVertexVariables
method should take the vertex handle (const reference) instead ofiEvent
as paramter.The text was updated successfully, but these errors were encountered: