コード例 #1
0
ファイル: test15.py プロジェクト: newtrino/vertigo
#!/usr/bin/python

print "running vertigo/tests/test15.py ..."

from vertigo import LoopSettings, EventFactory, RaveConstantMagneticField, RaveVacuumPropagator, RaveKTransientTrackParticle, RaveVertexFactory, RaveKTreeFactory, RaveKParticleContainer, RaveKTreeContainer, RaveKConstraintBuilder

LoopSettings.Instance().setVerbosity(0)

eventfactory  = EventFactory ( "file:input15.txt" )
vertexfactory = RaveVertexFactory ( RaveConstantMagneticField( 0.,0., 4.0 ), RaveVacuumPropagator() )

event=eventfactory.next()
tracks=event.tracks()
for track in tracks:
  print "*=========================="
  print track,"id=",track.id()
  comp=track.components()
  for c in comp:
    print "Component %.2f %s" % (c[0],c[1])
コード例 #2
0
ファイル: subtest12.py プロジェクト: newtrino/vertigo
#!/usr/bin/python

from vertigo import RaveVertexFactory, EventFactory, RaveConstantMagneticField, RaveVacuumPropagator, LoopSettings, RaveTrackContainer, RaveLogger

LoopSettings.Instance().setVerbosity(0)

ravefactory=RaveVertexFactory ( RaveConstantMagneticField(0.,0.,4.), RaveVacuumPropagator() )

RaveLogger().writeToFile ( "rave_log.txt" )

event=EventFactory ( "input1.txt" ).next()

ravefactory.create ( event.tracks(), "avr" )