Commit in lcio/src/python on MAIN
test.py+5-251.3 -> 1.4
write_test.py+1-11.2 -> 1.3
+6-26
2 modified files


lcio/src/python
test.py 1.3 -> 1.4
diff -u -r1.3 -r1.4
--- test.py	16 Mar 2006 02:12:53 -0000	1.3
+++ test.py	24 Mar 2006 05:18:34 -0000	1.4
@@ -3,40 +3,20 @@
 import lcio
 import gc
 
-print dir(lcio)
-
 # Factory
 fac=lcio.LCFactory.getInstance()
-print repr(fac)
 
 # LCReader
 rdr=fac.createLCReader()
 rdr.open("test.slcio")
-print repr(rdr)
 
 # Event
 evt=rdr.readNextEvent()
-print repr(evt)
-
-# LCIO.h
-print dir(lcio.LCIO)
-print lcio.cvar
-
-# SimCalorimeterHit extension
-coll=evt.getSimCalorimeterHitCollection("EcalBarrHits")
-hit=coll.getElementAt(0)
-print repr(hit)
 
-# MCParticle extension
-coll=evt.getMCParticleCollection("MCParticle")
-mcp=coll.getElementAt(0)
-print repr(mcp)
-print repr(mcp.getVertex())
-print repr(mcp.getParents())
+# Read some collections
+hits = evt.getCollection('EcalBarrHits')
+particles = evt.getCollection("MCParticle")
+mcp = coll.getElementAt(0)
 
-print "Collecting garbage ..."
-gc.collect()
-print "Done collecting garbage."
+rdr.close()
 
-nms = evt.getCollectionNames()
-print repr(nms)

lcio/src/python
write_test.py 1.2 -> 1.3
diff -u -r1.2 -r1.3
--- write_test.py	16 Mar 2006 02:12:54 -0000	1.2
+++ write_test.py	24 Mar 2006 05:18:34 -0000	1.3
@@ -17,7 +17,7 @@
 nevents = 10
 for i in range(0,nevents):
 
-    coll = lcio.LCCollectionVec(lcio.cvar.LCIO_SIMCALORIMETERHIT)
+    coll = lcio.LCCollectionVec(lcio.GLOBALS.LCIO_SIMCALORIMETERHIT)
 
     for i in range(0,1):
         hit = lcio.SimCalorimeterHitImpl()
CVSspam 0.2.8