hep.io.stdhep.adapter
Class StdhepAdapter

java.lang.Object
  |
  +--hep.io.stdhep.adapter.StdhepAdapter

public class StdhepAdapter
extends java.lang.Object

A class that creates a StdhepEventRecord from an EventHeader.


Constructor Summary
StdhepAdapter()
           
 
Method Summary
 StdhepEvent convert(EventHeader event)
          Convert from an EventHeader to a StdhepEvent.
 EventHeader convert(StdhepEvent stdhep)
          Convert from a StdhepEvent to an EventHeader.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StdhepAdapter

public StdhepAdapter()
Method Detail

convert

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

convert

public StdhepEvent convert(EventHeader event)
Convert from an EventHeader to a StdhepEvent. Useful when writing stdhep files. Note the stdhep format requires all daughters to be stored consecutively particles. 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.