71 MsgStream msglog(
msgSvc(), name() );
72 msglog << MSG::INFO <<
">>> TruthDemo from execute" << endmsg;
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++ )
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;