hep.physics.stdhep.convert
Class StdhepConverter
- java.lang.Object
-
- hep.physics.stdhep.convert.StdhepConverter
-
public class StdhepConverter extends java.lang.ObjectA class that converts MCEvent<-->StdhepEvent
-
-
Constructor Summary
Constructors Constructor and Description StdhepConverter()StdhepConverter(ParticlePropertyProvider ppp)StdhepConverter(ParticlePropertyProvider ppp, GeneratorFactory factory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description hep.io.stdhep.StdhepEventconvert(MCEvent event)Convert from an EventHeader to a StdhepEvent.MCEventconvert(hep.io.stdhep.StdhepEvent hepevt)Convert from a StdhepEvent to an MCEvent.
-
-
-
Constructor Detail
-
StdhepConverter
public StdhepConverter()
-
StdhepConverter
public StdhepConverter(ParticlePropertyProvider ppp)
-
StdhepConverter
public StdhepConverter(ParticlePropertyProvider ppp, GeneratorFactory factory)
-
-
Method Detail
-
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.
-
-
DMelt 3.0 © DataMelt by jWork.ORG