33 #include "CLHEP/Vector/ThreeVector.h"
34 #include "CLHEP/Vector/LorentzVector.h"
35 #include "CLHEP/Matrix/Vector.h"
59 maxEta_(iConfig.getParameter<double>(
"maxEta"))
61 produces< std::vector<pat::PackedGenParticle> > ();
71 std::vector<reco::Candidate>::const_iterator cand;
83 PVpos = PV->position();
86 std::auto_ptr< std::vector<pat::PackedGenParticle> > outPtrP(
new std::vector<pat::PackedGenParticle> );
89 for(
unsigned int ic=0, nc = cands->size(); ic < nc; ++ic) {
105 iEvent.
put( outPtrP );
std::vector< GenParticle > GenParticleCollection
collection of GenParticles
bool getByToken(EDGetToken token, Handle< PROD > &result) const
edm::EDGetTokenT< reco::VertexCollection > PVs_
#define DEFINE_FWK_MODULE(type)
PATPackedGenParticleProducer(const edm::ParameterSet &)
std::vector< Vertex > VertexCollection
collection of Vertex objects
virtual void produce(edm::Event &, const edm::EventSetup &)
virtual int status() const GCC11_FINAL
status word
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
virtual float eta() const GCC11_FINAL
momentum pseudorapidity
edm::EDGetTokenT< edm::Association< reco::GenParticleCollection > > Asso_
~PATPackedGenParticleProducer()
XYZPointD XYZPoint
point in space with cartesian internal representation