ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitAna/DataTree/interface/MCEventInfo.h
Revision: 1.4
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.3: +3 -3 lines
Log Message:
Added DataBase for objects that do not need to the TObjects bits.

File Contents

# Content
1 //--------------------------------------------------------------------------------------------------
2 // $Id: MCEventInfo.h,v 1.3 2008/09/17 04:21:17 loizides Exp $
3 //
4 // MCEventInfo
5 //
6 // Authors: C.Loizides
7 //--------------------------------------------------------------------------------------------------
8
9 #ifndef MITANA_DATATREE_MCEVENTINFO_H
10 #define MITANA_DATATREE_MCEVENTINFO_H
11
12 #include "MitAna/DataTree/interface/DataBase.h"
13
14 namespace mithep
15 {
16 class MCEventInfo : public DataBase
17 {
18 public:
19 MCEventInfo(Double_t w=0) : fWeight(w) {}
20 virtual ~MCEventInfo() {}
21
22 Double_t Weight() const { return fWeight; }
23 void SetWeight(Double_t w) { fWeight=w; }
24
25 protected:
26 Double32_t fWeight; //event weight
27
28 ClassDef(MCEventInfo, 1) // Monte-Carlo event info class
29 };
30 }
31 #endif