ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitPhysics/Mods/interface/PDFProducerMod.h
Revision: 1.2
Committed: Sat Mar 13 20:50:01 2010 UTC (15 years, 1 month ago) by ceballos
Content type: text/plain
Branch: MAIN
CVS Tags: Mit_014pre2, Mit_014pre1, Mit_013d, Mit_013c, Mit_013b, Mit_013a, Mit_013, Mit_013pre1
Changes since 1.1: +3 -1 lines
Log Message:
adding run

File Contents

# Content
1 //--------------------------------------------------------------------------------------------------
2 // $Id: PDFProducerMod.h,v 1.1 2009/08/11 10:56:48 loizides Exp $
3 //
4 // PDFProducerMod
5 //
6 // Computes PDFs from LHAPDF based on input from MCEventInfo.
7 //
8 // Authors: G.Gomez-Ceballos
9 //--------------------------------------------------------------------------------------------------
10
11 #ifndef MITPHYSICS_MODS_PDFPRODUCERMOD_H
12 #define MITPHYSICS_MODS_PDFPRODUCERMOD_H
13
14 #include "MitAna/TreeMod/interface/BaseMod.h"
15
16 class TH1D;
17 class TH2D;
18
19 namespace mithep
20 {
21 class MCEventInfo;
22 class PDFProducerMod : public BaseMod
23 {
24 public:
25 PDFProducerMod(const char *name="PDFProducerMod",
26 const char *title="PDF producer module");
27
28 void SetMCEventInfoName(const char *s) { fMCEvInfoName = s; }
29 void SetPDFName(const char *s) { fPDFName = s; }
30 void SetPrintDebug(Bool_t b) { fPrintDebug = b; }
31 void SetRunPDF(Bool_t b) { fRunPDF = b; }
32
33 protected:
34 void Process();
35 void SlaveBegin();
36
37 Bool_t fPrintDebug; //=true then print debug info
38 TString fMCEvInfoName; //event info branch name
39 TString fPDFName; //PDF name
40 Bool_t fRunPDF; //=true run PDFs
41 const MCEventInfo *fMCEventInfo; //!event info branch pointer
42 TH1D *hDPDFHisto[10]; //!output histograms
43
44 ClassDef(PDFProducerMod, 1) // Module to produce PDFs
45 };
46 }
47 #endif