FreeHEP API
Version current

hep.io.stdhep.convert
Class StdhepConverter

java.lang.Object
  extended byhep.io.stdhep.convert.StdhepConverter

public class StdhepConverter
extends Object

A class that converts MCEvent<-->StdhepEvent

Version:
$Id: StdhepConverter.java,v 1.2 2005/03/14 06:02:15 tonyj Exp $
Author:
Tony Johnson (tonyj@slac.stanford.edu)
Source Code:
StdhepConverter.java

Constructor Summary
StdhepConverter()
           
StdhepConverter(ParticlePropertyProvider ppp)
           
StdhepConverter(ParticlePropertyProvider ppp, GeneratorFactory factory)
           
 
Method Summary
 StdhepEvent convert(MCEvent event)
          Convert from an EventHeader to a StdhepEvent.
 MCEvent convert(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
 

Constructor Detail

StdhepConverter

public StdhepConverter()

StdhepConverter

public StdhepConverter(ParticlePropertyProvider ppp)

StdhepConverter

public StdhepConverter(ParticlePropertyProvider ppp,
                       GeneratorFactory factory)
Method Detail

convert

public MCEvent convert(StdhepEvent hepevt)
Convert from a StdhepEvent to an MCEvent. Useful when reading stdhep files.


convert

public 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.


FreeHEP API
Version current

Copyright © 2000-2004 FreeHEP, All Rights Reserved.