ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitAna/DataTree/interface/MCEventInfo.h
Revision: 1.8
Committed: Thu Mar 19 16:10:37 2009 UTC (16 years, 1 month ago) by loizides
Content type: text/plain
Branch: MAIN
CVS Tags: Mit_009c, Mit_009b, Mit_009a, Mit_009, Mit_008
Changes since 1.7: +36 -5 lines
Log Message:
Added pdfinfo.

File Contents

# User Rev Content
1 loizides 1.1 //--------------------------------------------------------------------------------------------------
2 loizides 1.8 // $Id: MCEventInfo.h,v 1.7 2009/02/18 15:38:54 loizides Exp $
3 loizides 1.1 //
4     // MCEventInfo
5     //
6 loizides 1.8 // This class holds monte-carle generation specific information, as for example stored
7     // in HepMC::PdfInfo and HepMC::GenEvent.
8     //
9 loizides 1.1 // Authors: C.Loizides
10     //--------------------------------------------------------------------------------------------------
11    
12 loizides 1.2 #ifndef MITANA_DATATREE_MCEVENTINFO_H
13     #define MITANA_DATATREE_MCEVENTINFO_H
14 loizides 1.1
15 loizides 1.4 #include "MitAna/DataTree/interface/DataBase.h"
16 loizides 1.1
17     namespace mithep
18     {
19 loizides 1.4 class MCEventInfo : public DataBase
20 loizides 1.1 {
21     public:
22 loizides 1.8 MCEventInfo() : fProcessId(0), fScale(0), fWeight(0), fId1(0), fId2(0),
23     fX1(0), fX2(0), fScalePdf(0), fPdf1(0), fPdf2(0) {}
24 loizides 1.1
25 loizides 1.8 Char_t Id1() const { return fId1; }
26     Char_t Id2() const { return fId2; }
27 loizides 1.6 EObjType ObjType() const { return kMCEventInfo; }
28 loizides 1.8 Double_t Pdf1() const { return fPdf1; }
29     Double_t Pdf2() const { return fPdf2; }
30     Int_t ProcessId() const { return fProcessId; }
31     Double_t Scale() const { return fScale; }
32     Double_t ScalePdf() const { return fScalePdf; }
33     Double_t X1() const { return fX1; }
34     Double_t X2() const { return fX2; }
35 loizides 1.6 Double_t Weight() const { return fWeight; }
36 loizides 1.8 void SetId1(Char_t id) { fId1 = id; }
37     void SetId2(Char_t id) { fId2 = id; }
38     void SetPdf1(Double_t p) { fPdf1 = p; }
39     void SetPdf2(Double_t p) { fPdf2 = p; }
40     void SetProcessId(Int_t id) { fProcessId = id; }
41     void SetScale(Double_t s) { fScale = s; }
42     void SetScalePdf(Double_t s) { fScalePdf = s; }
43     void SetWeight(Double_t w) { fWeight = w; }
44     void SetX1(Double_t x) { fX1 = x; }
45     void SetX2(Double_t x) { fX2 = x; }
46 loizides 1.1
47     protected:
48 loizides 1.8 Int_t fProcessId; //process id
49     Double32_t fScale; //scale
50     Double32_t fWeight; //weight
51     Char_t fId1; //pdg of first parton
52     Char_t fId2; //pdg of second parton
53     Double32_t fX1; //bjorken x1
54     Double32_t fX2; //bjorken x2
55     Double32_t fScalePdf; //scale (Q^2)
56     Double32_t fPdf1; //pdf1/x1
57     Double32_t fPdf2; //pdf2/x2
58    
59 loizides 1.1 ClassDef(MCEventInfo, 1) // Monte-Carlo event info class
60     };
61     }
62     #endif