ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitAna/DataTree/interface/MCEventInfo.h
Revision: 1.1
Committed: Fri Aug 29 01:53:26 2008 UTC (16 years, 8 months ago) by loizides
Content type: text/plain
Branch: MAIN
Log Message:
Added MC event info class, for now just holding an event weight.

File Contents

# User Rev Content
1 loizides 1.1 //--------------------------------------------------------------------------------------------------
2     // $Id: EventHeader.h,v 1.6 2008/07/08 14:41:01 loizides Exp $
3     //
4     // MCEventInfo
5     //
6     // Authors: C.Loizides
7     //--------------------------------------------------------------------------------------------------
8    
9     #ifndef DATATREE_MCEVENTINFO_H
10     #define DATATREE_MCEVENTINFO_H
11    
12     #include "MitAna/DataTree/interface/Types.h"
13    
14     namespace mithep
15     {
16     class MCEventInfo
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