Skip to content

Commit 5c19154

Browse files
committed
Fix last lumi number
1 parent 902cf5d commit 5c19154

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

CondCore/CondDB/src/Time.cc

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,8 @@ namespace cond {
114114
switch (timetype) {
115115
case RUNNUMBER:
116116
// last lumi and event of this run
117-
return edm::IOVSyncValue(edm::EventID(time, edm::EventID::maxEventNumber(), edm::EventID::maxEventNumber()));
117+
return edm::IOVSyncValue(
118+
edm::EventID(time, edm::LuminosityBlockID::maxLuminosityBlockNumber(), edm::EventID::maxEventNumber()));
118119
case LUMIID: {
119120
// the same lumiblock
120121
edm::LuminosityBlockID l(time);
@@ -132,8 +133,9 @@ namespace cond {
132133
switch (timetype) {
133134
case RUNNUMBER:
134135
// last event of this run
135-
return edm::IOVSyncValue(
136-
edm::EventID(time.eventID().run(), edm::EventID::maxEventNumber(), edm::EventID::maxEventNumber()));
136+
return edm::IOVSyncValue(edm::EventID(time.eventID().run(),
137+
edm::LuminosityBlockID::maxLuminosityBlockNumber(),
138+
edm::EventID::maxEventNumber()));
137139
case LUMIID:
138140
// the same lumiblock
139141
return edm::IOVSyncValue(

0 commit comments

Comments
 (0)