77 std::vector<reco::Candidate>::const_iterator cand;
87 std::vector<int> mapping(genOrigs->size(), -1);
96 PVpos = PV->position();
101 for(
unsigned int ic=0, nc = genOrigs->size(); ic < nc; ++ic)
108 std::auto_ptr< std::vector<pat::PackedGenParticle> > outPtrP(
new std::vector<pat::PackedGenParticle> );
110 unsigned int packed=0;
111 for(
unsigned int ic=0, nc = cands->size(); ic < nc; ++ic) {
118 mapping[originalRef.
key()]=packed;
134 std::auto_ptr<edm::Association< std::vector<pat::PackedGenParticle> > > gp2pgp(
new edm::Association< std::vector<pat::PackedGenParticle> > (oh ));
136 gp2pgpFiller.insert(genOrigs, mapping.begin(), mapping.end());
bool getByToken(EDGetToken token, Handle< PROD > &result) const
edm::EDGetTokenT< reco::VertexCollection > PVs_
virtual int status() const
status word
virtual double y() const
rapidity
key_type key() const
Accessor for product key.
edm::EDGetTokenT< reco::GenParticleCollection > GenOrigs_
edm::EDGetTokenT< reco::GenParticleCollection > Cands_
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
virtual size_t numberOfMothers() const
number of mothers
Abs< T >::type abs(const T &t)
edm::Ref< VertexCollection > VertexRef
persistent reference to a Vertex
daughters::value_type motherRef(size_type i=0) const
reference to mother at given position
edm::EDGetTokenT< edm::Association< reco::GenParticleCollection > > Asso_
XYZPointD XYZPoint
point in space with cartesian internal representation
edm::EDGetTokenT< edm::Association< reco::GenParticleCollection > > AssoOriginal_