Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow for more than 3 skipped LHE files. #7642

Closed
wants to merge 1 commit into from

Conversation

matz-e
Copy link
Contributor

@matz-e matz-e commented Feb 9, 2015

Currently, the LHESource reads by calling nextEvent(), which in turn
calls LHEReader::next(). The latter method returns an empty reference
at the end of a file 1.

When reading an event in a fourth file, nextEvent() is first called in
the constructor of LHESource 2, returning an empty reference at the
end of the fist file. The other calls to nextEvent(), 3 and 4,
return an empty reference at the end of the second and third file.
But there is a check after 4, and LHESource quits reading files
without attempting to open the fourth file.

Try to address the situation by keeping reading files as long as new
files are opened and empty events are returned. This potentially also
removes the need for the check after 4.

Also pertains to dmwm/CRABServer#4659.

Currently, the LHESource reads by calling nextEvent(), which in turn
calls LHEReader::next().  The latter method returns an empty reference
at the end of a file [1].

When reading an event in a fourth file, nextEvent() is first called in
the constructor of LHESource [2], returning an empty reference at the
end of the fist file.  The other calls to nextEvent(), [3] and [4],
return an empty reference at the end of the second and third file.
But there is a check after [4], and LHESource quits reading files
without attempting to open the fourth file.

Try to address the situation by keeping reading files as long as new
files are opened and empty events are returned.  This potentially also
removes the need for the check after [4].

Also pertains to dmwm/CRABServer#4659.

[1]: http://cmslxr.fnal.gov/lxr/source/GeneratorInterface/LHEInterface/src/LHEReader.cc#0491
[2]: http://cmslxr.fnal.gov/lxr/source/GeneratorInterface/LHEInterface/plugins/LHESource.cc#0042
[3]: http://cmslxr.fnal.gov/lxr/source/GeneratorInterface/LHEInterface/plugins/LHESource.cc?v=CMSSW_7_4_0_pre5#0166
[4]: http://cmslxr.fnal.gov/lxr/source/GeneratorInterface/LHEInterface/plugins/LHESource.cc?v=CMSSW_7_4_0_pre5#0169
@cmsbuild
Copy link
Contributor

cmsbuild commented Feb 9, 2015

A new Pull Request was created by @matz-e (Matthias Wolf) for CMSSW_7_4_X.

Allow for more than 3 skipped LHE files.

It involves the following packages:

GeneratorInterface/LHEInterface

@vciulli, @covarell, @thuer, @cmsbuild, @nclopezo, @bendavid can you please review it and eventually sign? Thanks.
You can sign-off by replying to this message having '+1' in the first line of your reply.
You can reject by replying to this message having '-1' in the first line of your reply.
If you are a L2 or a release manager you can ask for tests by saying 'please test' in the first line of a comment.
@Degano you are the release manager for this.
You can merge this pull request by typing 'merge' in the first line of your comment.

@cmsbuild
Copy link
Contributor

@cmsbuild
Copy link
Contributor

@bendavid
Copy link
Contributor

@wmtan since you were the last one to touch this code, can you take a look if this makes sense?

@davidlange6
Copy link
Contributor

closing in 74x - there is the same PR open in 75x (now the development release)

@matz-e matz-e deleted the LHESource_fix_many_files branch September 15, 2017 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants