hep.physics.stdhep.convert
Class StdhepConverter
java.lang.Object
  
hep.physics.stdhep.convert.StdhepConverter
public class StdhepConverter
- extends java.lang.Object
 
A class that converts MCEvent<-->StdhepEvent
- Version:
 
  - $Id: StdhepConverter.java 8584 2006-08-10 23:06:37Z duns $
 
- Author:
 
  - Tony Johnson (tonyj@slac.stanford.edu)
 
 
| 
Method Summary | 
 hep.io.stdhep.StdhepEvent | 
convert(MCEvent event)
 
          Convert from an EventHeader to a StdhepEvent. | 
 MCEvent | 
convert(hep.io.stdhep.StdhepEvent hepevt)
 
          Convert from a StdhepEvent to an MCEvent. | 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
StdhepConverter
public StdhepConverter()
StdhepConverter
public StdhepConverter(ParticlePropertyProvider ppp)
StdhepConverter
public StdhepConverter(ParticlePropertyProvider ppp,
                       GeneratorFactory factory)
convert
public MCEvent convert(hep.io.stdhep.StdhepEvent hepevt)
- Convert from a StdhepEvent to an MCEvent.
 Useful when reading stdhep files.
 
 
convert
public hep.io.stdhep.StdhepEvent convert(MCEvent event)
- Convert from an EventHeader to a StdhepEvent.
 Useful when writing stdhep files.
 Note the stdhep format requires all daughters to be stored consecutively.
 In principle we would have to do a sort on daughter to gaurantee that this could be
 accomodated. Right now we just throw a RuntimeException if it is not true.
 
 
Copyright © 2000-2010 FreeHEP. All Rights Reserved.