ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitAna/DataTree/interface/RunInfo.h
Revision: 1.7
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.6: +5 -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.7 // $Id: RunInfo.h,v 1.6 2008/09/17 04:17:56 loizides Exp $
3 loizides 1.1 //
4     // RunInfo
5     //
6 loizides 1.7 // This class holds run specific information. It is stored in a dedicated tree.
7 loizides 1.1 //
8     // Authors: C.Loizides
9     //--------------------------------------------------------------------------------------------------
10    
11 loizides 1.5 #ifndef MITANA_DATATREE_RUNINFO_H
12     #define MITANA_DATATREE_RUNINFO_H
13 loizides 1.1
14 loizides 1.7 #include "MitAna/DataTree/interface/DataBase.h"
15 loizides 1.1
16     namespace mithep
17     {
18 loizides 1.7 class RunInfo : public DataBase
19 loizides 1.1 {
20     public:
21 loizides 1.6 RunInfo() : fRunNum(0), fL1Entry(0), fHltEntry(0) {}
22 loizides 1.1 RunInfo(UInt_t run) : fRunNum(run) {}
23     virtual ~RunInfo() {}
24    
25 loizides 1.6 Int_t HltEntry() const { return fHltEntry; }
26     Int_t L1Entry() const { return fL1Entry; }
27 loizides 1.1 UInt_t RunNum() const { return fRunNum; }
28 loizides 1.6 void SetL1Entry(Int_t i) { fL1Entry=i; }
29     void SetHltEntry(Int_t i) { fHltEntry=i; }
30 loizides 1.1 void SetRunNum(UInt_t i) { fRunNum=i; }
31    
32     protected:
33 loizides 1.6 UInt_t fRunNum; //run number
34     Int_t fL1Entry; //entry for L1 block
35     Int_t fHltEntry; //entry for HLT block
36    
37 loizides 1.7 ClassDef(RunInfo, 2) // Run info class
38 loizides 1.1 };
39     }
40     #endif
41 loizides 1.6