[Rivet-svn] r3019 - contrib/hepmczipper

blackhole at projects.hepforge.org blackhole at projects.hepforge.org
Tue Mar 15 16:51:39 GMT 2011


Author: fsiegert
Date: Tue Mar 15 16:51:38 2011
New Revision: 3019

Log:
Add units information to compressed events.

Modified:
   contrib/hepmczipper/main.cpp

Modified: contrib/hepmczipper/main.cpp
==============================================================================
--- contrib/hepmczipper/main.cpp	Sun Mar 13 20:59:47 2011	(r3018)
+++ contrib/hepmczipper/main.cpp	Tue Mar 15 16:51:38 2011	(r3019)
@@ -33,6 +33,7 @@
   while (evt_in) {
     HepMC::GenEvent* evt_out=new HepMC::GenEvent();
     evt_out->set_event_number(evt_in->event_number());
+    evt_out->use_units(evt_in->momentum_unit(), evt_in->length_unit());
     if (evt_in->cross_section())
       evt_out->set_cross_section(*evt_in->cross_section());
 


More information about the Rivet-svn mailing list