8 #include "EVENT/LCIO.h"
20 using namespace lcio ;
23 const static string testname=
"test_fourvector";
32 MCParticleImpl* mcp =
new MCParticleImpl ;
39 mcp->setMomentum( p ) ;
42 LCFourVector<MCParticle> mcp4v( mcp ) ;
44 MYTEST( mcp4v.px() , 1.0 ,
"px != 1.0 " ) ;
45 MYTEST( mcp4v.py() , 2.0 ,
"py != 2.0 " ) ;
46 MYTEST( mcp4v.pz() , 3.0 ,
"pz != 3.0 " ) ;
48 MYTEST( mcp4v.m() , 42.0 ,
" e != 42.0 " ) ;
int main(int argc, char **argv)
Simple program that opens existing LCIO files and appends the records needed for direct access - if t...
static const string testname