Linear Collider Forum



Home » Software Tools » LCIO » problems reading lcio files in direct access mode (readNextEvent in lcio v01-51 directaccess)
problems reading lcio files in direct access mode [message #2090] Wed, 10 November 2010 06:32 Go to previous message
daniel_jeans
Messages: 6
Registered: April 2010
Dear LCIO experts,

We are having problems reading lcio files (using the readNextEvent method of LCReader) written with v01-51 using code compiled against lcio v01-51, when using the DirectAccess mode.

I attach a small test code to illustrate the problem. It tries to read the first 10 events of a file using the readNextEvent method. ( we compile as follows: "g++ -I${LCIO}/src/cpp/include -L${LCIO}/lib -llcio -o testlcio.exe testlcio.cc" )

When we compile against lcio v1-11, and run on a file made with v1-11, it runs fine both in direct and not-direct modes.

When we compile against v01-51, and run on a file made with v01-11, it also works fine in both modes.

When we compile against v01-51, and run on a file made with v01-51, indirect mode works fine, but using directAccess, readNextEvent (and nextRunHeader) never gives any valid events.

We notice that if we first do a readEvent (with valid run and event numbers), then readNextEvent does function properly, also in this last case.

Is this expected behaviour? It is inconvenient for us...

Thanks,
Daniel and Manqi.

  • Attachment: testlcio.cc
    (Size: 1.64KB, Downloaded 655 times)
 
Read Message
Read Message
Read Message
Previous Topic:TrackerHitImpl const-ness of setPosition
Next Topic:GeomConverter build failedh
Goto Forum:
  


Current Time: Sat Oct 20 16:52:27 Pacific Daylight Time 2018
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.1.
Copyright ©2001-2010 FUDforum Bulletin Board Software