Skip to content

getNumberOfEvents changes the internal state of the file #65

@jstrube

Description

@jstrube
  • OS version: SLC6, Ubuntu 18.04
  • Compiler version: GCC 6.2, gcc 7.4
  • Package version: v02-12-01
  • Reproduced by: call readNextEvent(), followed by getNumberOfEvents(), followed by readNextEvent(). You have just read the same event twice!
  • Goal: It is not obvious that getNumberOfEvents leads to this behavior, nor should it. The name suggest that this is a getter method. However, it looks like the implementation changes the internal state of the file.
    Tested on /pnfs/desy.de/ilc/prod/ilc/mc-opt-3/ild/dst-merged/500-TDR_ws/2f_Z_hadronic/ILD_l5_o1_v02/v02-00-01/rv02-00-01.sv02-00-01.mILD_l5_o1_v02.E500-TDR_ws.I250114.P2f_z_h.eL.pR.n033.d_dstm_10410_96.slcio

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions