57 std::map<edm::EventNumber_t, long long>
_offsets;
82 produces<EventWithHistory>();
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) {
173 edm::LogInfo(
"AbsoluteBXOffsetReset") <<
"Absolute BX offset map reset";
182 edm::LogInfo(
"AbsoluteBXOffsetSummary") <<
"Absolute BX offset summary:";
EventNumber_t event() const
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
~EventWithHistoryProducerFromL1ABC() override
#define DEFINE_FWK_MODULE(type)
int bunchCrossing() const
unsigned long long EventNumber_t
edm::EventNumber_t _curroffevent
const bool _forceNoOffset
EventWithHistoryProducerFromL1ABC(const edm::ParameterSet &)
std::map< edm::EventNumber_t, long long > _offsets
void endRun(const edm::Run &, const edm::EventSetup &) override
void beginRun(const edm::Run &, const edm::EventSetup &) override
std::vector< L1AcceptBunchCrossing > L1AcceptBunchCrossingCollection
void produce(edm::Event &, const edm::EventSetup &) override
edm::EDGetTokenT< L1AcceptBunchCrossingCollection > _l1abccollectionToken