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
|