23 numberEventsInRun_(pset.getUntrackedParameter<unsigned int>(
"numberEventsInRun", remainingEvents())),
24 numberEventsInLumi_(pset.getUntrackedParameter<unsigned int>(
"numberEventsInLuminosityBlock", remainingEvents())),
25 presentTime_(pset.getUntrackedParameter<unsigned int>(
"firstTime", 1)),
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();
253 if (numberEventsInRun_ < 1 || numberEventsInThisRun_ > 0) {
257 if (!(numberEventsInLumi_ < 1 || numberEventsInThisLumi_ > 0)) {
278 unsigned long numberOfEventsToSkip =
receiver_->numberToSkip();
279 if (numberOfEventsToSkip !=0) {
280 skip(numberOfEventsToSkip);
297 desc.
addOptionalUntracked<
unsigned int>(
"numberEventsInRun")->setComment(
"Number of events to generate in each run.");
298 desc.
addOptionalUntracked<
unsigned int>(
"numberEventsInLuminosityBlock")->setComment(
"Number of events to generate in each lumi.");
299 desc.
addUntracked<
unsigned int>(
"firstTime", 1)->setComment(
"Time before first event (ns) (for timestamp).");
301 desc.
addUntracked<
unsigned int>(
"eventCreationDelay", 0)->setComment(
"Real time delay between generation of consecutive events (ms).");
302 desc.
addUntracked<
unsigned int>(
"firstEvent", 1)->setComment(
"Event number of first event to generate.");
303 desc.
addUntracked<
unsigned int>(
"firstLuminosityBlock", 1)->setComment(
"Luminosity block number of first lumi to generate.");
304 desc.
addUntracked<
unsigned int>(
"firstRun", 1)->setComment(
"Run number of first run to generate.");
ParameterDescriptionBase * addUntracked(U const &iLabel, T const &value)
static unsigned int const kAveEventPerSec
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(std::auto_ptr< EventAuxiliary > aux, boost::shared_ptr< LuminosityBlockPrincipal > lbp, boost::shared_ptr< EventSelectionIDVector > eventSelectionIDs=boost::shared_ptr< EventSelectionIDVector >(new EventSelectionIDVector), boost::shared_ptr< BranchListIndexes > branchListIndexes=boost::shared_ptr< BranchListIndexes >(new BranchListIndexes), boost::shared_ptr< BranchMapper > mapper=boost::shared_ptr< BranchMapper >(new BranchMapper), boost::shared_ptr< DelayedReader > rtrv=boost::shared_ptr< DelayedReader >(new NoDelayedReader))
static Timestamp const & invalidTimestamp()
static unsigned int const kNanoSecPerSec
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