71 Mtag_(iConfig.getParameter<edm::
InputTag>(
"vtxTag")),
72 fallbackMtag_(iConfig.getParameter<edm::
InputTag>(
"vtxFallbackTag"))
74 edm::LogInfo (
"PixelDigitizer ") <<
"Enter the Pixel Digitizer";
114 const HepMC::GenEvent *myGenEvent = MCevt->GetEvent();
116 double pthat = myGenEvent->event_scale();
117 float pt_hat = float(pthat);
121 HepMC::GenEvent::vertex_const_iterator viter;
122 HepMC::GenEvent::vertex_const_iterator
vbegin = myGenEvent->vertices_begin();
123 HepMC::GenEvent::vertex_const_iterator
vend = myGenEvent->vertices_end();
130 HepMC::GenVertex*
v = *viter;
131 float zpos = v->position().z()*0.1;
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
PileupVertexAccumulator(const edm::ParameterSet &conf, edm::stream::EDProducerBase &mixMod, edm::ConsumesCollector &iC)
EDGetTokenT< ProductType > mayConsume(edm::InputTag const &tag)
virtual ~PileupVertexAccumulator()
virtual void finalizeEvent(edm::Event &e, edm::EventSetup const &c) override
virtual void accumulate(edm::Event const &e, edm::EventSetup const &c) override
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
std::vector< float > pT_Hats_
bool getByLabel(edm::InputTag const &tag, edm::Handle< T > &result) const
virtual void initializeEvent(edm::Event const &e, edm::EventSetup const &c) override
std::shared_ptr< cms::Exception > whyFailed() const
edm::InputTag fallbackMtag_
std::vector< float > z_posns_