ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitAna/DataTree/interface/MCEventInfo.h
Revision: 1.11
Committed: Tue Aug 11 15:19:32 2009 UTC (15 years, 8 months ago) by loizides
Content type: text/plain
Branch: MAIN
CVS Tags: Mit_032, Mit_031, Mit_025c_branch2, Mit_025c_branch1, Mit_030, Mit_029c, Mit_029b, Mit_030_pre1, Mit_029a, Mit_029, Mit_029_pre1, Mit_028a, Mit_025c_branch0, Mit_028, Mit_027a, Mit_027, Mit_026, Mit_025e, Mit_025d, Mit_025c, Mit_025b, Mit_025a, Mit_025, Mit_025pre2, Mit_024b, Mit_025pre1, Mit_024a, Mit_024, Mit_023, Mit_022a, Mit_022, Mit_020d, TMit_020d, Mit_020c, Mit_021, Mit_021pre2, Mit_021pre1, Mit_020b, Mit_020a, Mit_020, Mit_020pre1, Mit_018, Mit_017, Mit_017pre3, Mit_017pre2, Mit_017pre1, Mit_016, Mit_015b, Mit_015a, Mit_015, Mit_014e, Mit_014d, Mit_014c, Mit_014b, Mit_014a, Mit_014, Mit_014pre3, Mit_014pre2, Mit_014pre1, Mit_013d, Mit_013c, Mit_013b, Mit_013a, Mit_013, Mit_013pre1, Mit_012i, Mit_012h, Mit_012g, Mit_012f, Mit_012e, Mit_012d, Mit_012c, Mit_012b, Mit_012a, Mit_012, Mit_011a, Mit_011, Mit_010a, HEAD
Branch point for: Mit_025c_branch
Changes since 1.10: +8 -8 lines
Log Message:
Switched to integers for pdg code.

File Contents

# Content
1 //--------------------------------------------------------------------------------------------------
2 // $Id: MCEventInfo.h,v 1.10 2009/07/06 15:09:10 sixie Exp $
3 //
4 // MCEventInfo
5 //
6 // This class holds monte-carle generation specific information, as for example stored
7 // in HepMC::PdfInfo and HepMC::GenEvent.
8 //
9 // Authors: C.Loizides
10 //--------------------------------------------------------------------------------------------------
11
12 #ifndef MITANA_DATATREE_MCEVENTINFO_H
13 #define MITANA_DATATREE_MCEVENTINFO_H
14
15 #include "MitAna/DataTree/interface/DataBase.h"
16
17 namespace mithep
18 {
19 class MCEventInfo : public DataBase
20 {
21 public:
22 MCEventInfo() : fProcessId(0), fScale(0), fWeight(0), fId1(0), fId2(0),
23 fX1(0), fX2(0), fScalePdf(0), fPdf1(0), fPdf2(0), fFlavorHistoryPath(0) {}
24
25 Int_t Id1() const { return fId1; }
26 Int_t Id2() const { return fId2; }
27 EObjType ObjType() const { return kMCEventInfo; }
28 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 Double_t Weight() const { return fWeight; }
36 Int_t FlavorHistoryPath() const { return fFlavorHistoryPath; }
37 void SetId1(Int_t id) { fId1 = id; }
38 void SetId2(Int_t id) { fId2 = id; }
39 void SetPdf1(Double_t p) { fPdf1 = p; }
40 void SetPdf2(Double_t p) { fPdf2 = p; }
41 void SetProcessId(Int_t id) { fProcessId = id; }
42 void SetScale(Double_t s) { fScale = s; }
43 void SetScalePdf(Double_t s) { fScalePdf = s; }
44 void SetWeight(Double_t w) { fWeight = w; }
45 void SetX1(Double_t x) { fX1 = x; }
46 void SetX2(Double_t x) { fX2 = x; }
47 void SetFlavorHistoryPath(Int_t p) { fFlavorHistoryPath = p; }
48
49 protected:
50 Int_t fProcessId; //process id
51 Double32_t fScale; //scale
52 Double32_t fWeight; //weight
53 Int_t fId1; //pdg of first parton
54 Int_t fId2; //pdg of second parton
55 Double32_t fX1; //bjorken x1
56 Double32_t fX2; //bjorken x2
57 Double32_t fScalePdf; //scale (Q^2)
58 Double32_t fPdf1; //pdf1/x1
59 Double32_t fPdf2; //pdf2/x2
60 Int_t fFlavorHistoryPath; //Number indicating flavor history
61
62 ClassDef(MCEventInfo, 3) // Monte-Carlo event info class
63 };
64 }
65 #endif