Print

Print


Commit in lcio/src/python on MAIN
test.py-241.1 -> 1.2
JM: Move Python writer test to different file

lcio/src/python
test.py 1.1 -> 1.2
diff -u -r1.1 -r1.2
--- test.py	31 Jan 2006 20:42:25 -0000	1.1
+++ test.py	14 Mar 2006 23:55:40 -0000	1.2
@@ -34,30 +34,6 @@
 print repr(mcp.getVertex())
 print repr(mcp.getParents())
 
-# LCWriter
-writer=fac.createLCWriter()
-writer.open("writer_test", lcio.LCIO.WRITE_NEW)
-coll = lcio.LCCollectionVec(lcio.cvar.LCIO_SIMCALORIMETERHIT)
-flag = lcio.LCFlagImpl()
-flag.setBit( lcio.LCIO.CHBIT_LONG )
-coll.setFlag( flag.getFlag() )
-evt = lcio.LCEventImpl()
-hit = lcio.SimCalorimeterHitImpl()
-hit.setPosition((1.1, 1.2, 1.3))
-print hit.getPosition()
-coll.addElement(hit)
-
-#print "Collecting garbage ..."
-#gc.collect()
-#print "Done collecting garbage."
-
-evt.addCollection(coll, "test_collection")
-writer.writeEvent(evt)
-writer.close()
-print "Finished with LCWriter test"
-
-coll = None
-
 print "Collecting garbage ..."
 gc.collect()
 print "Done collecting garbage."
CVSspam 0.2.8