ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitAna/DataTree/interface/EventHeader.h
Revision: 1.1
Committed: Tue Jun 17 14:45:22 2008 UTC (16 years, 10 months ago) by loizides
Content type: text/plain
Branch: MAIN
Log Message:
Added EventHeader class.

File Contents

# User Rev Content
1 loizides 1.1 // $Id: DataObject.h,v 1.2 2008/06/11 13:48:37 loizides Exp $
2    
3     #ifndef DATATREE_EVENTHEADER_H
4     #define DATATREE_EVENTHEADER_H
5    
6     #include "MitAna/DataTree/interface/Types.h"
7    
8     //--------------------------------------------------------------------------------------------------
9     //
10     // EventHeader
11     //
12     //
13     //
14     // Authors: C.Loizides
15     //
16     //--------------------------------------------------------------------------------------------------
17    
18     namespace mithep
19     {
20     class EventHeader
21     {
22     public:
23     EventHeader() : fRunNum(0), fEvtNum(0), fLumiSec(0) {}
24     EventHeader(UInt_t run, UInt_t evt, UInt_t lumi) : fRunNum(run), fEvtNum(evt), fLumiSec(lumi) {}
25     virtual ~EventHeader() {}
26    
27     UInt_t EvtNum() const { return fEvtNum; }
28     UInt_t LumiSec() const { return fLumiSec; }
29     UInt_t RunNum() const { return fRunNum; }
30    
31     protected:
32     UInt_t fRunNum; // run number
33     UInt_t fEvtNum; // event number
34     UInt_t fLumiSec; // luminosity block number
35    
36     ClassDef(EventHeader, 1) // Event header class
37     };
38     }
39     #endif