53 virtual void endJob()
override ;
77 _l1abccollection(iConfig.getParameter<edm::InputTag>(
"l1ABCCollection")),
78 _forceNoOffset(iConfig.getUntrackedParameter<bool>(
"forceNoOffset",
false)),
79 _offsets(), _curroffset(0), _curroffevent(0)
84 produces<EventWithHistory>();
110 if(iEvent.
run() < 110878 ) {
123 long long orbitoffset = 0;
126 for(L1AcceptBunchCrossingCollection::const_iterator l1abc=pIn->begin();l1abc!=pIn->end();++l1abc) {
127 if(l1abc->l1AcceptOffset()==0) {
128 orbitoffset = (
long long)l1abc->orbitNumber() - (
long long)iEvent.
orbitNumber();
135 std::auto_ptr<EventWithHistory> pOut(
new EventWithHistory(iEvent,*pIn,orbitoffset,bxoffset));
140 long long absbxoffset = orbitoffset*3564 + bxoffset;
151 edm::LogInfo(
"AbsoluteBXOffsetChanged") <<
"Absolute BX offset changed from "
153 << absbxoffset <<
" at orbit "
156 for(L1AcceptBunchCrossingCollection::const_iterator l1abc=pIn->begin();l1abc!=pIn->end();++l1abc) {
181 edm::LogInfo(
"AbsoluteBXOffsetReset") <<
"Absolute BX offset map reset";
190 edm::LogInfo(
"AbsoluteBXOffsetSummary") <<
"Absolute BX offset summary:";
~EventWithHistoryProducerFromL1ABC()
EventNumber_t event() const
#define DEFINE_FWK_MODULE(type)
int bunchCrossing() const
virtual void endJob() override
const bool _forceNoOffset
EventWithHistoryProducerFromL1ABC(const edm::ParameterSet &)
virtual void beginJob() override
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
virtual void endRun(const edm::Run &, const edm::EventSetup &) override
virtual void beginRun(const edm::Run &, const edm::EventSetup &) override
unsigned int _curroffevent
unsigned int offset(bool)
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
virtual void produce(edm::Event &, const edm::EventSetup &) override
volatile std::atomic< bool > shutdown_flag false
edm::InputTag _l1abccollection
std::map< unsigned int, long long > _offsets