Description: <one line="" class="" summary>="">
Implementation: <Notes on="" implementation>="">
Definition at line 43 of file EventWithHistoryProducerFromL1ABC.cc.
Definition at line 104 of file EventWithHistoryProducerFromL1ABC.cc.
References _curroffevent, _curroffset, _forceNoOffset, _l1abccollectionToken, _offsets, edm::EventBase::bunchCrossing(), edm::EventID::event(), edm::Event::getByToken(), edm::EventBase::id(), eostools::move(), edm::EventBase::orbitNumber(), edm::Event::put(), and edm::Event::run().
Referenced by JSONExport.JsonExport::export(), HTMLExport.HTMLExport::export(), and HTMLExport.HTMLExportStatic::export().
108 if(iEvent.
run() < 110878 ) {
121 long long orbitoffset = 0;
124 for(L1AcceptBunchCrossingCollection::const_iterator l1abc=pIn->begin();l1abc!=pIn->end();++l1abc) {
125 if(l1abc->l1AcceptOffset()==0) {
126 orbitoffset = (
long long)l1abc->orbitNumber() - (
long long)iEvent.
orbitNumber();
133 std::unique_ptr<EventWithHistory> pOut(
new EventWithHistory(iEvent,*pIn,orbitoffset,bxoffset));
138 long long absbxoffset = orbitoffset*3564 + bxoffset;
149 edm::LogInfo(
"AbsoluteBXOffsetChanged") <<
"Absolute BX offset changed from " 151 << absbxoffset <<
" at orbit " 154 for(L1AcceptBunchCrossingCollection::const_iterator l1abc=pIn->begin();l1abc!=pIn->end();++l1abc) {
EventNumber_t event() const
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
int bunchCrossing() const
edm::EventNumber_t _curroffevent
const bool _forceNoOffset
std::map< edm::EventNumber_t, long long > _offsets
edm::EDGetTokenT< L1AcceptBunchCrossingCollection > _l1abccollectionToken