70 Mtag_(iConfig.getParameter<
edm::InputTag>(
"vtxTag")),
71 fallbackMtag_(iConfig.getParameter<
edm::InputTag>(
"vtxFallbackTag")),
72 saveVtxTimes_(iConfig.getParameter<
bool>(
"saveVtxTimes"))
74 edm::LogInfo (
"PixelDigitizer ") <<
"Enter the Pixel Digitizer";
115 const HepMC::GenEvent *myGenEvent = MCevt->
GetEvent();
117 double pthat = myGenEvent->event_scale();
118 float pt_hat =
float(pthat);
122 HepMC::GenEvent::vertex_const_iterator viter;
123 HepMC::GenEvent::vertex_const_iterator
vbegin = myGenEvent->vertices_begin();
124 HepMC::GenEvent::vertex_const_iterator
vend = myGenEvent->vertices_end();
131 HepMC::GenVertex*
v = *viter;
132 float zpos = v->position().z()*0.1;
137 float tpos = v->position().t()/299792458
e-6;
BranchAliasSetterT< ProductType > produces()
declare what type of product will make and with which optional label
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
EDGetTokenT< ProductType > mayConsume(edm::InputTag const &tag)
void finalizeEvent(edm::Event &e, edm::EventSetup const &c) override
void accumulate(edm::Event const &e, edm::EventSetup const &c) override
PileupVertexAccumulator(const edm::ParameterSet &conf, edm::ProducerBase &mixMod, edm::ConsumesCollector &iC)
std::vector< float > pT_Hats_
Namespace of DDCMS conversion namespace.
const HepMC::GenEvent * GetEvent() const
~PileupVertexAccumulator() override
std::vector< float > t_posns_
bool getByLabel(edm::InputTag const &tag, edm::Handle< T > &result) const
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_