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

simplify procedure for making unique events #16

Open
aminnj opened this issue Oct 12, 2018 · 0 comments
Open

simplify procedure for making unique events #16

aminnj opened this issue Oct 12, 2018 · 0 comments

Comments

@aminnj
Copy link
Owner

aminnj commented Oct 12, 2018

When making MC, the seed is set automatically for each job randomly. But if the event number starts counting from 1 for each job, running on multiple files in a subsequent step may throw away events because it thinks they are duplicates. We get around this via

firstevt = 1 + (index - 1) * self.events_per_output

(i.e., first event in a job is forced to be non-overlapping). We can simplify this by removing the need for firstEvent to be passed into the job and just use something like

process.source.firstRun = cms.untracked.uint32(${IFILE})

since an event is unique if (run,lumi,event) is unique. $IFILE is already passed into the job (the job index), so we don't need an extra parameter for firstEvent.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant