#include <HLTrigger/HLTanalyzers/interface/EventHeader.h>
Public Member Functions | |
void | analyze (edm::Event const &iEvent, TTree *tree) |
Analyze the Data. | |
EventHeader () | |
void | setup (TTree *tree) |
~EventHeader () | |
Public Attributes | |
char_uint32 | event_ |
Header | header_ |
char_uint32 | lumi_ |
char_uint32 | origDataSize_ |
char_uint32 | outModId_ |
uint8 | protocolVersion_ |
char_uint32 | run_ |
Private Attributes | |
bool | _Debug |
int | fEvent |
int | fRun |
$Date: November 2006 $Revision:
Protocol Versions 1-4: code 1 | size 4 | run 4 | event 4 | lumi 4 | reserved 4 | l1_count 4| l1bits l1_count/8 | hlt_count 4| hltbits hlt_count/4 | eventdatalength 4 | eventdata blob {variable}
Protocol Version 5: code 1 | size 4 | protocol version 1 | run 4 | event 4 | lumi 4 | origDataSize 4 | outModId 4 | l1_count 4| l1bits l1_count/8 | hlt_count 4| hltbits hlt_count/4 | eventdatalength 4 | eventdata blob {variable}
Protocol Version 6: // no change here, only INIT msg change code 1 | size 4 | protocol version 1 | run 4 | event 4 | lumi 4 | origDataSize 4 | outModId 4 | l1_count 4| l1bits l1_count/8 | hlt_count 4| hltbits hlt_count/4 | eventdatalength 4 | eventdata blob {variable}
Protocol Version 7: // no change here, only data blob changes code 1 | size 4 | protocol version 1 | run 4 | event 4 | lumi 4 | origDataSize 4 | outModId 4 | l1_count 4| l1bits l1_count/8 | hlt_count 4| hltbits hlt_count/4 | eventdatalength 4 | eventdata blob {variable}
Definition at line 14 of file EventHeader.h.
EventHeader::EventHeader | ( | ) |
Definition at line 11 of file EventHeader.cc.
References _Debug.
00011 { 00012 00013 //set parameter defaults 00014 _Debug=false; 00015 }
EventHeader::~EventHeader | ( | ) |
void EventHeader::analyze | ( | edm::Event const & | iEvent, | |
TTree * | tree | |||
) |
Analyze the Data.
Definition at line 33 of file EventHeader.cc.
References _Debug, GenMuonPlsPt100GeV_cfg::cout, lat::endl(), fEvent, fRun, and edm::Event::id().
Referenced by HLTAnalyzer::analyze().
00033 { 00034 00035 fRun = iEvent.id().run(); 00036 fEvent = iEvent.id().event(); 00037 00038 if (_Debug) { 00039 00040 std::cout << "EventHeader -- run = " << fRun << std::endl; 00041 std::cout << "EventHeader -- event = " << fEvent << std::endl; 00042 00043 } 00044 00045 }
void EventHeader::setup | ( | TTree * | tree | ) |
Definition at line 22 of file EventHeader.cc.
Referenced by HLTAnalyzer::HLTAnalyzer().
00022 { 00023 00024 fRun = -1; 00025 fEvent = -1; 00026 00027 HltTree->Branch("Run",&fRun,"Run/I"); 00028 HltTree->Branch("Event",&fEvent,"Event/I"); 00029 00030 }
bool EventHeader::_Debug [private] |
Definition at line 45 of file EventMessage.h.
Referenced by EventMsgView::event(), and EventMsgBuilder::EventMsgBuilder().
int EventHeader::fEvent [private] |
int EventHeader::fRun [private] |
Definition at line 46 of file EventMessage.h.
Referenced by EventMsgBuilder::EventMsgBuilder(), and EventMsgView::lumi().
Definition at line 47 of file EventMessage.h.
Referenced by EventMsgView::origDataSize(), and EventMsgBuilder::setOrigDataSize().
Definition at line 48 of file EventMessage.h.
Referenced by EventMsgBuilder::EventMsgBuilder(), and EventMsgView::outModId().
Definition at line 43 of file EventMessage.h.
Referenced by EventMsgBuilder::EventMsgBuilder(), and EventMsgView::protocolVersion().
Definition at line 44 of file EventMessage.h.
Referenced by EventMsgBuilder::EventMsgBuilder(), and EventMsgView::run().