ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitPhysics/Mods/interface/PDFProducerMod.h
Revision: 1.1
Committed: Tue Aug 11 10:56:48 2009 UTC (15 years, 8 months ago) by loizides
Content type: text/plain
Branch: MAIN
CVS Tags: Mit_012i, Mit_012g, Mit_012f, Mit_012e, Mit_012d, Mit_012c, Mit_012b, Mit_012a, Mit_012, Mit_011a, Mit_011, Mit_010a
Log Message:
Renamed to PDFProducerMod.

File Contents

# User Rev Content
1 loizides 1.1 //--------------------------------------------------------------------------------------------------
2     // $Id: PDFProducerMod.h,v 1.2 2009/08/11 10:50:37 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    
32     protected:
33     void Process();
34     void SlaveBegin();
35    
36     Bool_t fPrintDebug; //=true then print debug info
37     TString fMCEvInfoName; //event info branch name
38     TString fPDFName; //PDF name
39     const MCEventInfo *fMCEventInfo; //!event info branch pointer
40     TH1D *hDPDFHisto[10]; //!output histograms
41    
42     ClassDef(PDFProducerMod, 1) // Module to produce PDFs
43     };
44     }
45     #endif