CMS 3D CMS Logo

EventHeader Class Reference

Event Message Represented here. More...

#include <HLTrigger/HLTanalyzers/interface/EventHeader.h>

List of all members.

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


Detailed Description

Event Message Represented here.

$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}

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.

00011                          {
00012 
00013   //set parameter defaults 
00014   _Debug=false;
00015 }

EventHeader::~EventHeader (  ) 

Definition at line 17 of file EventHeader.cc.

00017                           {
00018 
00019 }


Member Function Documentation

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.

References fEvent, and fRun.

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 }


Member Data Documentation

bool EventHeader::_Debug [private]

Definition at line 31 of file EventHeader.h.

Referenced by analyze(), and EventHeader().

char_uint32 EventHeader::event_

Definition at line 45 of file EventMessage.h.

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

int EventHeader::fEvent [private]

Definition at line 28 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 42 of file EventMessage.h.

Referenced by EventMsgBuilder::setEventLength().

char_uint32 EventHeader::lumi_

Definition at line 46 of file EventMessage.h.

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

char_uint32 EventHeader::origDataSize_

Definition at line 47 of file EventMessage.h.

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

char_uint32 EventHeader::outModId_

Definition at line 48 of file EventMessage.h.

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

uint8 EventHeader::protocolVersion_

Definition at line 43 of file EventMessage.h.

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

char_uint32 EventHeader::run_

Definition at line 44 of file EventMessage.h.

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


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:20:26 2009 for CMSSW by  doxygen 1.5.4