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