32 src_(consumes<std::vector<
reco::Vertex> >(iConfig.getParameter<edm::InputTag>(
"src"))),
33 map_(consumes<edm::Association<pat::
PackedCandidateCollection> >(iConfig.getParameter<edm::InputTag>(
"packedPFCandidates"))),
34 map2_(consumes<edm::Association<pat::
PackedCandidateCollection> >(iConfig.getParameter<edm::InputTag>(
"lostTracksCandidates")))
36 produces< reco::VertexCompositePtrCandidateCollection >();
52 outPtr->reserve(vertices->size());
53 for (
unsigned int i = 0,
n = vertices->size();
i <
n; ++
i) {
59 if((*pf2pc)[*it].isNonnull() && (*pf2pc)[*it]->numberOfHits() > 0) {
63 if((*pf2pc2)[*it].isNonnull()) {
66 else {
std::cout <<
"HELPME" << std::endl;}
virtual void produce(edm::Event &, const edm::EventSetup &)
Ptr< typename C::value_type > refToPtr(Ref< C, typename C::value_type, refhelper::FindUsingAdvance< C, typename C::value_type > > const &ref)
trackRef_iterator tracks_end() const
last iterator over tracks
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
std::vector< pat::PackedCandidate > PackedCandidateCollection
PATSecondaryVertexSlimmer(const edm::ParameterSet &)
const Point & position() const
position
std::vector< VertexCompositePtrCandidate > VertexCompositePtrCandidateCollection
collection of Candidate objects
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
float trackWeight(const TrackBaseRef &r) const
returns the weight with which a Track has contributed to the vertex-fit.
edm::EDGetTokenT< edm::Association< pat::PackedCandidateCollection > > map_
edm::EDGetTokenT< std::vector< reco::Vertex > > src_
double chi2() const
chi-squares
~PATSecondaryVertexSlimmer()
math::XYZTLorentzVectorD p4(float mass=0.13957018, float minWeight=0.5) const
Returns the four momentum of the sum of the tracks, assuming the given mass for the decay products...
Error error() const
return SMatrix
std::vector< TrackBaseRef >::const_iterator trackRef_iterator
The iteratator for the vector<TrackRef>
edm::EDGetTokenT< edm::Association< pat::PackedCandidateCollection > > map2_
trackRef_iterator tracks_begin() const
first iterator over tracks