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
virtual void endRun(edm::Run &, const edm::EventSetup &)
#define DEFINE_FWK_MODULE(type)
int bunchCrossing() const
const bool _forceNoOffset
EventWithHistoryProducerFromL1ABC(const edm::ParameterSet &)
virtual void produce(edm::Event &, const edm::EventSetup &)
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
unsigned int _curroffevent
unsigned int offset(bool)
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
virtual void beginRun(edm::Run &, const edm::EventSetup &)
edm::InputTag _l1abccollection
std::map< unsigned int, long long > _offsets