66 : Mtag_(iConfig.getParameter<
edm::
InputTag>(
"vtxTag")),
67 fallbackMtag_(iConfig.getParameter<
edm::
InputTag>(
"vtxFallbackTag")),
68 saveVtxTimes_(iConfig.getParameter<
bool>(
"saveVtxTimes")) {
69 edm::LogInfo(
"PixelDigitizer ") <<
"Enter the Pixel Digitizer";
108 double pthat = myGenEvent->event_scale();
109 float pt_hat =
float(pthat);
113 HepMC::GenEvent::vertex_const_iterator viter;
114 HepMC::GenEvent::vertex_const_iterator vbegin = myGenEvent->vertices_begin();
115 HepMC::GenEvent::vertex_const_iterator vend = myGenEvent->vertices_end();
122 HepMC::GenVertex*
v = *viter;
123 float zpos =
v->position().z() * 0.1;
128 float tpos =
v->position().t() / 299792458
e-6;
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
EDGetTokenT< ProductType > mayConsume(edm::InputTag const &tag)
ProductRegistryHelper::BranchAliasSetterT< ProductType > produces()
PileupVertexAccumulator(const edm::ParameterSet &conf, edm::ProducesCollector, edm::ConsumesCollector &iC)
void finalizeEvent(edm::Event &e, edm::EventSetup const &c) override
void accumulate(edm::Event const &e, edm::EventSetup const &c) override
std::shared_ptr< cms::Exception > whyFailed() const
std::vector< float > pT_Hats_
const HepMC::GenEvent * GetEvent() const
Namespace of DDCMS conversion namespace.
Log< level::Info, false > LogInfo
~PileupVertexAccumulator() override
std::vector< float > t_posns_
void initializeEvent(edm::Event const &e, edm::EventSetup const &c) override
edm::InputTag fallbackMtag_
std::vector< float > z_posns_