34 srcLegacy_(mayConsume<std::vector<
reco::Vertex> >(iConfig.getParameter<edm::
InputTag>(
"src"))),
38 produces< reco::VertexCompositePtrCandidateCollection >();
56 outPtr->reserve(candVertices->size());
57 for (
unsigned int i = 0,
n = candVertices->size();
i <
n; ++
i) {
64 for(std::vector<reco::CandidatePtr>::const_iterator it = daughters.begin(); it != daughters.end(); ++it) {
66 if((*pf2pc)[*it].isNonnull() && (*pf2pc)[*it]->numberOfHits() > 0)
70 outPtr->push_back( v );
82 outPtr->reserve(vertices->size());
83 for (
unsigned int i = 0,
n = vertices->size();
i <
n; ++
i) {
89 if((*pf2pc)[*it].isNonnull() && (*pf2pc)[*it]->numberOfHits() > 0) {
93 if((*pf2pc2)[*it].isNonnull()) {
96 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
edm::EDGetTokenT< std::vector< reco::Vertex > > srcLegacy_
#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_
double chi2() const
chi-squares
edm::EDGetTokenT< reco::VertexCompositePtrCandidateCollection > src_
~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
void clearDaughters()
clear daughter references
const daughters & daughterPtrVector() const
references to daughtes
std::vector< TrackBaseRef >::const_iterator trackRef_iterator
The iteratator for the vector<TrackRef>
edm::EDGetTokenT< edm::Association< pat::PackedCandidateCollection > > map2_
void addDaughter(const CandidatePtr &)
add a daughter via a reference
trackRef_iterator tracks_begin() const
first iterator over tracks