ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitAna/DataTree/interface/EventHeader.h
Revision: 1.8
Committed: Tue Dec 2 09:30:11 2008 UTC (16 years, 5 months ago) by loizides
Content type: text/plain
Branch: MAIN
Changes since 1.7: +7 -4 lines
Log Message:
Added DataBase for objects that do not need to the TObjects bits.

File Contents

# User Rev Content
1 loizides 1.1 //--------------------------------------------------------------------------------------------------
2 loizides 1.8 // $Id: EventHeader.h,v 1.7 2008/09/17 04:21:16 loizides Exp $
3 loizides 1.1 //
4     // EventHeader
5     //
6 loizides 1.8 // Class to hold event specific information.
7 loizides 1.1 //
8     // Authors: C.Loizides
9     //--------------------------------------------------------------------------------------------------
10    
11 loizides 1.2 #ifndef DATATREE_EVENTHEADER_H
12     #define DATATREE_EVENTHEADER_H
13    
14     #include "MitAna/DataTree/interface/Types.h"
15 loizides 1.8 #include "MitAna/DataTree/interface/DataBase.h"
16 loizides 1.2
17 loizides 1.1 namespace mithep
18     {
19 loizides 1.8 class EventHeader : public DataBase
20 loizides 1.1 {
21     public:
22 loizides 1.7 EventHeader() : fRunNum(0), fEvtNum(0), fLumiSec(0), fRunEntry(-1) {}
23 loizides 1.5 EventHeader(UInt_t run, UInt_t evt, UInt_t lumi) :
24 loizides 1.8 fRunNum(run), fEvtNum(evt), fLumiSec(lumi), fRunEntry(-1) {}
25 loizides 1.1 virtual ~EventHeader() {}
26    
27     UInt_t EvtNum() const { return fEvtNum; }
28     UInt_t LumiSec() const { return fLumiSec; }
29 loizides 1.3 Int_t RunEntry() const { return fRunEntry; }
30 loizides 1.1 UInt_t RunNum() const { return fRunNum; }
31 loizides 1.3 void SetEvtNum(UInt_t i) { fEvtNum=i; }
32     void SetLumiSec(UInt_t i) { fLumiSec=i; }
33     void SetRunEntry(Int_t i) { fRunEntry=i; }
34     void SetRunNum(UInt_t i) { fRunNum=i; }
35    
36 loizides 1.1 protected:
37 loizides 1.6 UInt_t fRunNum; //run number
38     UInt_t fEvtNum; //event number
39     UInt_t fLumiSec; //luminosity block number
40     Int_t fRunEntry; //entry for run block
41 loizides 1.3
42 loizides 1.8 ClassDef(EventHeader, 2) // Event header class
43 loizides 1.1 };
44     }
45 loizides 1.8
46 loizides 1.1 #endif