72 MsgStream msglog(messageService(), name());
73 msglog << MSG::INFO <<
">>> TruthDemo from execute" << endreq;
82 std::vector<const HepMC::GenParticle*> particles;
83 StatusCode stat = m_tesIO->
getMC(particles, &ifs);
84 for (std::vector<const HepMC::GenParticle*>::iterator pitr = particles.begin();
85 pitr != particles.end(); pitr++) {
86 pxbalance += (*pitr)->momentum().x();
87 pybalance += (*pitr)->momentum().y();
88 totenergy += (*pitr)->momentum().e();
90 m_pxBalance->fill(pxbalance, 1.);
91 m_pyBalance->fill(pybalance, 1.);
92 m_totEnergy->fill(totenergy, 1.);
94 return StatusCode::SUCCESS;