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

Secondary input source chooses first file to open randomly #8978

Merged
merged 1 commit into from May 6, 2015

Conversation

wmtan
Copy link
Contributor

@wmtan wmtan commented May 6, 2015

The secondary input source, used for mixing pileup, needs to open a pileup file at construction time.
Before this PR, it always opened the first file in the list of files, which caused contention. This PR randomizes the choice of the file to open at construction time. This PR does not affect which minbias events will be chosen for mixing.
This change can easily be ported back to 7_4_X or prior releases if needed.

@cmsbuild
Copy link
Contributor

cmsbuild commented May 6, 2015

A new Pull Request was created by @wmtan for CMSSW_7_5_X.

Secondary input source chooses first file to open randomly

It involves the following packages:

IOPool/Input

@cmsbuild, @Dr15Jones, @nclopezo can you please review it and eventually sign? Thanks.
@wddgit this is something you requested to watch as well.
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.
@nclopezo you are the release manager for this.
You can merge this pull request by typing 'merge' in the first line of your comment.

@Dr15Jones
Copy link
Contributor

please test

@Dr15Jones
Copy link
Contributor

+1

@cmsbuild
Copy link
Contributor

cmsbuild commented May 6, 2015

The tests are being triggered in jenkins.

@cmsbuild
Copy link
Contributor

cmsbuild commented May 6, 2015

This pull request is fully signed and it will be integrated in one of the next CMSSW_7_5_X IBs unless changes or unless it breaks tests. This pull request requires discussion in the ORP meeting before it's merged. @davidlange6, @nclopezo, @smuzaffar

@cmsbuild
Copy link
Contributor

cmsbuild commented May 6, 2015

@cmsbuild
Copy link
Contributor

cmsbuild commented May 6, 2015

1 similar comment
@cmsbuild
Copy link
Contributor

cmsbuild commented May 7, 2015

@mark-grimes
Copy link

I've been back porting this to 6_2_X_SLHC (#8985) and just want to check something.
If it is a SecondarySource then the

factory->activateTimeout(fileIter_->fileName());
factory->stagein(fileIter_->fileName());

commands are not run, whereas they were in the old way. Is this okay?

@mark-grimes
Copy link

Sorry, I see in the comment that you intentionally don't stage in. Nevermind.

@wmtan wmtan deleted the RandomizeFirstPileupFile branch May 17, 2015 15:04
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