CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Public Attributes | Private Attributes
EventHeader Class Reference

#include <EventHeader.h>

Public Member Functions

void analyze (edm::Event const &iEvent, TTree *tree)
 
 EventHeader ()
 
void setup (TTree *tree)
 
 ~EventHeader ()
 

Public Attributes

char_uint32 droppedEventsCount_
 
char_uint32 event_
 
Header header_
 
char_uint32 lumi_
 
char_uint32 origDataSize_
 
char_uint32 outModId_
 
uint8 protocolVersion_
 
char_uint32 run_
 

Private Attributes

bool _Debug
 
int fBx
 
int fEvent
 
int fLumiBlock
 
int fOrbit
 
int fRun
 

Detailed Description

Event Message Represented here

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}

Protocol Version 8: // add in checksum of 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 | adler32_chksum 4 | host name length 1 | host name {Fixed size} eventdatalength 4 | eventdata blob {variable}

Protocol Version 9: // add dropped events counter code 1 | size 4 | protocol version 1 | run 4 | event 4 | lumi 4 | origDataSize 4 | outModId 4 | droppedEventsCount 4 | l1_count 4 | l1bits l1_count/8 | hlt_count 4 | hltbits hlt_count/4 | adler32_chksum 4 | host name length 1 | host name {Fixed size} eventdatalength 4 | eventdata blob {variable}

$Date: November 2006 $Revision:

Author
V. Rekovic - UMinn

Definition at line 14 of file EventHeader.h.

Constructor & Destructor Documentation

EventHeader::EventHeader ( )

Definition at line 11 of file EventHeader.cc.

References _Debug.

11  {
12 
13  //set parameter defaults
14  _Debug=false;
15 }
EventHeader::~EventHeader ( )

Definition at line 17 of file EventHeader.cc.

17  {
18 
19 }

Member Function Documentation

void EventHeader::analyze ( edm::Event const &  iEvent,
TTree *  tree 
)

Analyze the Data

Definition at line 38 of file EventHeader.cc.

References _Debug, edm::EventBase::bunchCrossing(), gather_cfg::cout, edm::EventID::event(), fBx, fEvent, fLumiBlock, fOrbit, fRun, edm::EventBase::id(), edm::EventBase::luminosityBlock(), edm::EventBase::orbitNumber(), and edm::EventID::run().

Referenced by HLTBitAnalyzer::analyze(), and HLTAnalyzer::analyze().

38  {
39 
40  fRun = iEvent.id().run();
41  fEvent = iEvent.id().event();
42  fLumiBlock = iEvent.luminosityBlock();
43  fBx = iEvent.bunchCrossing();
44  fOrbit = iEvent.orbitNumber();
45 
46  if (_Debug) {
47  std::cout << "EventHeader -- run = " << fRun << std::endl;
48  std::cout << "EventHeader -- event = " << fEvent << std::endl;
49  std::cout << "EventHeader -- lumisection = " << fLumiBlock << std::endl;
50  std::cout << "EventHeader -- bunch crossing = " << fBx << std::endl;
51  std::cout << "EventHeader -- orbit number = " << fOrbit << std::endl;
52  }
53 
54 }
int iEvent
Definition: GenABIO.cc:243
int fLumiBlock
Definition: EventHeader.h:29
tuple cout
Definition: gather_cfg.py:41
void EventHeader::setup ( TTree *  tree)

Definition at line 22 of file EventHeader.cc.

References fBx, fEvent, fLumiBlock, fOrbit, and fRun.

Referenced by HLTAnalyzer::HLTAnalyzer(), and HLTBitAnalyzer::HLTBitAnalyzer().

22  {
23 
24  fRun = -1;
25  fEvent = -1;
26  fLumiBlock=-1;
27  fBx = -1;
28  fOrbit = -1;
29 
30  HltTree->Branch("Run", &fRun, "Run/I");
31  HltTree->Branch("Event", &fEvent, "Event/I");
32  HltTree->Branch("LumiBlock", &fLumiBlock, "LumiBlock/I");
33  HltTree->Branch("Bx", &fBx, "Bx/I");
34  HltTree->Branch("Orbit", &fOrbit, "Orbit/I");
35 }
int fLumiBlock
Definition: EventHeader.h:29

Member Data Documentation

bool EventHeader::_Debug
private

Definition at line 35 of file EventHeader.h.

Referenced by analyze(), and EventHeader().

char_uint32 EventHeader::droppedEventsCount_
char_uint32 EventHeader::event_
int EventHeader::fBx
private

Definition at line 30 of file EventHeader.h.

Referenced by analyze(), and setup().

int EventHeader::fEvent
private

Definition at line 28 of file EventHeader.h.

Referenced by analyze(), and setup().

int EventHeader::fLumiBlock
private

Definition at line 29 of file EventHeader.h.

Referenced by analyze(), and setup().

int EventHeader::fOrbit
private

Definition at line 31 of file EventHeader.h.

Referenced by analyze(), and setup().

int EventHeader::fRun
private

Definition at line 27 of file EventHeader.h.

Referenced by analyze(), and setup().

Header EventHeader::header_

Definition at line 59 of file EventMessage.h.

Referenced by EventMsgBuilder::setEventLength().

char_uint32 EventHeader::lumi_
char_uint32 EventHeader::origDataSize_

Definition at line 64 of file EventMessage.h.

Referenced by EventMsgView::origDataSize(), and EventMsgBuilder::setOrigDataSize().

char_uint32 EventHeader::outModId_

Definition at line 65 of file EventMessage.h.

Referenced by EventMsgBuilder::EventMsgBuilder(), and EventMsgView::outModId().

uint8 EventHeader::protocolVersion_
char_uint32 EventHeader::run_