23 numberEventsInRun_(pset.getUntrackedParameter<unsigned int>(
"numberEventsInRun", remainingEvents())),
24 numberEventsInLumi_(pset.getUntrackedParameter<unsigned int>(
"numberEventsInLuminosityBlock", remainingEvents())),
25 presentTime_(pset.getUntrackedParameter<unsigned long long>(
"firstTime", 1ULL)),
26 origTime_(presentTime_),
28 eventCreationDelay_(pset.getUntrackedParameter<unsigned int>(
"eventCreationDelay", 0)),
29 numberEventsInThisRun_(0),
30 numberEventsInThisLumi_(0),
31 zerothEvent_(pset.getUntrackedParameter<unsigned int>(
"firstEvent", 1) - 1),
32 eventID_(pset.getUntrackedParameter<unsigned int>(
"firstRun", 1), pset.getUntrackedParameter<unsigned int>(
"firstLuminosityBlock", 1), zerothEvent_),
33 origEventID_(eventID_),
39 isRealData_(realData),
41 numberOfEventsBeforeBigSkip_(0),
42 numberOfSequentialEvents_(0)
53 boost::shared_ptr<RunAuxiliary>
60 boost::shared_ptr<LuminosityBlockAuxiliary>
92 for (; offset < 0; ++
offset) {
95 for (; offset > 0; --
offset) {
163 unsigned int numberToSkip =
receiver_->numberToSkip();
256 if (numberEventsInRun_ < 1 || numberEventsInThisRun_ > 0) {
260 if (!(numberEventsInLumi_ < 1 || numberEventsInThisLumi_ > 0)) {
281 unsigned long numberOfEventsToSkip =
receiver_->numberToSkip();
282 if (numberOfEventsToSkip !=0) {
283 skip(numberOfEventsToSkip);
300 desc.
addOptionalUntracked<
unsigned int>(
"numberEventsInRun")->setComment(
"Number of events to generate in each run.");
301 desc.
addOptionalUntracked<
unsigned int>(
"numberEventsInLuminosityBlock")->setComment(
"Number of events to generate in each lumi.");
302 desc.
addUntracked<
unsigned long long>(
"firstTime", 1)->setComment(
"Time before first event (ns) (for timestamp).");
304 desc.
addUntracked<
unsigned int>(
"eventCreationDelay", 0)->setComment(
"Real time delay between generation of consecutive events (ms).");
305 desc.
addUntracked<
unsigned int>(
"firstEvent", 1)->setComment(
"Event number of first event to generate.");
306 desc.
addUntracked<
unsigned int>(
"firstLuminosityBlock", 1)->setComment(
"Luminosity block number of first lumi to generate.");
307 desc.
addUntracked<
unsigned int>(
"firstRun", 1)->setComment(
"Run number of first run to generate.");
static unsigned long long const kNanoSecPerSec
ParameterDescriptionBase * addUntracked(U const &iLabel, T const &value)
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e< void, edm::EventIDconst &, edm::Timestampconst & > We also list in braces which AR_WATCH_USING_METHOD_ is used for those or
LuminosityBlockNumber_t luminosityBlock() const
unsigned int LuminosityBlockNumber_t
EventID previous(LuminosityBlockNumber_t const &lumi) const
EventID next(LuminosityBlockNumber_t const &lumi) const
void setLuminosityBlockNumber(LuminosityBlockNumber_t const &lb)
unsigned int offset(bool)
void fillEventPrincipal(EventAuxiliary const &aux, boost::shared_ptr< LuminosityBlockPrincipal > lbp, boost::shared_ptr< EventSelectionIDVector > eventSelectionIDs=boost::shared_ptr< EventSelectionIDVector >(), boost::shared_ptr< BranchListIndexes > branchListIndexes=boost::shared_ptr< BranchListIndexes >(), boost::shared_ptr< BranchMapper > mapper=boost::shared_ptr< BranchMapper >(new BranchMapper), DelayedReader *reader=0)
static Timestamp const & invalidTimestamp()
static unsigned long long const kAveEventPerSec
void commit_(std::vector< BranchID > *previousParentage=0, ParentageID *previousParentageId=0)
EventID nextRunFirstEvent(LuminosityBlockNumber_t const &lumi) const
ParameterDescriptionBase * addOptionalUntracked(U const &iLabel, T const &value)
EventID previousRunLastEvent(LuminosityBlockNumber_t const &lumi) const