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

File Contents

# Content
1 //--------------------------------------------------------------------------------------------------
2 // $Id: MCEventInfo.h,v 1.5 2008/12/03 17:37:47 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 ~MCEventInfo() {}
21
22 EObjType ObjType() const { return kMCEventInfo; }
23 Double_t Weight() const { return fWeight; }
24 void SetWeight(Double_t w) { fWeight=w; }
25
26 protected:
27 Double32_t fWeight; //event weight
28
29 ClassDef(MCEventInfo, 1) // Monte-Carlo event info class
30 };
31 }
32 #endif