71 Mtag_(iConfig.getParameter<
edm::InputTag>(
"vtxTag")),
72 fallbackMtag_(iConfig.getParameter<
edm::InputTag>(
"vtxFallbackTag")),
73 saveVtxTimes_(iConfig.getParameter<bool>(
"saveVtxTimes"))
75 edm::LogInfo (
"PixelDigitizer ") <<
"Enter the Pixel Digitizer";
116 const HepMC::GenEvent *myGenEvent = MCevt->
GetEvent();
118 double pthat = myGenEvent->event_scale();
119 float pt_hat =
float(pthat);
123 HepMC::GenEvent::vertex_const_iterator viter;
124 HepMC::GenEvent::vertex_const_iterator
vbegin = myGenEvent->vertices_begin();
125 HepMC::GenEvent::vertex_const_iterator
vend = myGenEvent->vertices_end();
132 HepMC::GenVertex*
v = *viter;
133 float zpos = v->position().z()*0.1;
138 float tpos = v->position().t()/299792458
e-6;
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
PileupVertexAccumulator(const edm::ParameterSet &conf, edm::stream::EDProducerBase &mixMod, edm::ConsumesCollector &iC)
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
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
std::vector< float > pT_Hats_
const HepMC::GenEvent * GetEvent() const
std::vector< float > t_posns_
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_