CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_2_7_hltpatch2/src/DPGAnalysis/SiStripTools/src/TinyEvent.cc

Go to the documentation of this file.
00001 #include "FWCore/Framework/interface/Event.h"
00002 #include "DataFormats/Provenance/interface/EventAuxiliary.h"
00003 #include "DPGAnalysis/SiStripTools/interface/TinyEvent.h"
00004 
00005 
00006 TinyEvent::TinyEvent(const edm::Event& event):
00007   _event(event.id().event()),
00008   _orbit(event.orbitNumber() < 0 ? 0 : event.orbitNumber()),
00009   _bx(event.bunchCrossing() < 0 ? 0 : event.bunchCrossing()) { }
00010 
00011 TinyEvent::TinyEvent(const edm::EventAuxiliary& eaux):
00012   _event(eaux.event()),
00013   _orbit(eaux.orbitNumber() < 0 ? 0 : eaux.orbitNumber()),
00014   _bx(eaux.bunchCrossing() < 0 ? 0 : eaux.bunchCrossing()) { }
00015 
00016