Description: <one line="" class="" summary>="">
Implementation: <Notes on="" implementation>="">
Definition at line 42 of file EventWithHistoryProducerFromL1ABC.cc.
Definition at line 97 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().
100 if (iEvent.
run() < 110878) {
110 long long orbitoffset = 0;
113 for (L1AcceptBunchCrossingCollection::const_iterator l1abc = pIn->begin(); l1abc != pIn->end(); ++l1abc) {
114 if (l1abc->l1AcceptOffset() == 0) {
115 orbitoffset = (
long long)l1abc->orbitNumber() - (
long long)iEvent.
orbitNumber();
121 std::unique_ptr<EventWithHistory> pOut(
new EventWithHistory(iEvent, *pIn, orbitoffset, bxoffset));
126 long long absbxoffset = orbitoffset * 3564 + bxoffset;
136 <<
"Absolute BX offset changed from " <<
_curroffset <<
" to " << absbxoffset <<
" at orbit " 138 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