ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitAna/DataTree/interface/RunInfo.h
Revision: 1.9
Committed: Tue Dec 9 17:47:00 2008 UTC (16 years, 5 months ago) by loizides
Content type: text/plain
Branch: MAIN
CVS Tags: Mit_006b, Mit_006a
Changes since 1.8: +7 -6 lines
Log Message:
Added ObjType to retrieve type of object.

File Contents

# Content
1 //--------------------------------------------------------------------------------------------------
2 // $Id: RunInfo.h,v 1.8 2008/12/03 17:37:47 loizides Exp $
3 //
4 // RunInfo
5 //
6 // This class holds run specific information. It is stored in a dedicated tree.
7 //
8 // Authors: C.Loizides
9 //--------------------------------------------------------------------------------------------------
10
11 #ifndef MITANA_DATATREE_RUNINFO_H
12 #define MITANA_DATATREE_RUNINFO_H
13
14 #include "MitAna/DataTree/interface/DataBase.h"
15
16 namespace mithep
17 {
18 class RunInfo : public DataBase
19 {
20 public:
21 RunInfo() : fRunNum(0), fL1Entry(0), fHltEntry(0) {}
22 RunInfo(UInt_t run) : fRunNum(run) {}
23 ~RunInfo() {}
24
25 Int_t HltEntry() const { return fHltEntry; }
26 Int_t L1Entry() const { return fL1Entry; }
27 EObjType ObjType() const { return kRunInfo; }
28 UInt_t RunNum() const { return fRunNum; }
29 void SetL1Entry(Int_t i) { fL1Entry=i; }
30 void SetHltEntry(Int_t i) { fHltEntry=i; }
31 void SetRunNum(UInt_t i) { fRunNum=i; }
32
33 protected:
34 UInt_t fRunNum; //run number
35 Int_t fL1Entry; //entry for L1 block
36 Int_t fHltEntry; //entry for HLT block
37
38 ClassDef(RunInfo, 2) // Run info class
39 };
40 }
41 #endif
42