Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:09:11

0001 #include "FWCore/Framework/interface/Event.h"
0002 #include "DPGAnalysis/SiStripTools/interface/TinyEvent.h"
0003 
0004 TinyEvent::TinyEvent(const edm::Event& event)
0005     : _event(event.id().event()),
0006       _orbit(event.orbitNumber() < 0 ? 0 : event.orbitNumber()),
0007       _bx(event.bunchCrossing() < 0 ? 0 : event.bunchCrossing()) {}
0008 
0009 TinyEvent::TinyEvent(const edm::EventAuxiliary& eaux)
0010     : _event(eaux.event()),
0011       _orbit(eaux.orbitNumber() < 0 ? 0 : eaux.orbitNumber()),
0012       _bx(eaux.bunchCrossing() < 0 ? 0 : eaux.bunchCrossing()) {}