1 |
//--------------------------------------------------------------------------------------------------
|
2 |
// $Id: HKFactorProducer.h,v 1.3 2009/12/06 14:59:43 ceballos Exp $
|
3 |
//
|
4 |
// HKFactorProducer
|
5 |
//
|
6 |
// Produces the k factors from LO to NNLO.
|
7 |
//
|
8 |
// Authors: G. Gomez-Ceballos
|
9 |
//--------------------------------------------------------------------------------------------------
|
10 |
|
11 |
#ifndef MITPHYSICS_MODS_HKFACTORPRODUCER_H
|
12 |
#define MITPHYSICS_MODS_HKFACTORPRODUCER_H
|
13 |
|
14 |
#include "MitAna/TreeMod/interface/BaseMod.h"
|
15 |
#include "MitAna/DataTree/interface/MCEventInfo.h"
|
16 |
#include "MitPhysics/Mods/interface/HWWKFactorList.h"
|
17 |
|
18 |
class TH1D;
|
19 |
class TH2D;
|
20 |
|
21 |
namespace mithep
|
22 |
{
|
23 |
class HKFactorProducer : public BaseMod
|
24 |
{
|
25 |
public:
|
26 |
HKFactorProducer(const char *name="HKFactorProducer",
|
27 |
const char *title="KFactor information module");
|
28 |
~HKFactorProducer();
|
29 |
|
30 |
void SetProcessID(Int_t d) { fProcessID = d; }
|
31 |
void SetInputFilename(const char *s) { fInputFileName = s; }
|
32 |
void SetMCBosonsName(const char *s) { fMCBosonsName = s; }
|
33 |
void SetMCEventInfoName(const char *s) { fMCEvInfoName = s; }
|
34 |
void SetIsData(Bool_t b) { fIsData = b; }
|
35 |
|
36 |
protected:
|
37 |
void Process();
|
38 |
void SlaveBegin();
|
39 |
|
40 |
Int_t fProcessID; //process id (from pythia)
|
41 |
TString fInputFileName; //input file name
|
42 |
TString fMCBosonsName; //boson collection input name
|
43 |
TString fMCEvInfoName; //event info branch name
|
44 |
Bool_t fIsData; //=true then it does nothing (def=0)
|
45 |
HWWKfactorList *fPt_histo; //!histogram with weights read from input file
|
46 |
const MCEventInfo *fMCEventInfo; //!event info branch pointer
|
47 |
TH1D *hDHKFactor[10]; //!output histograms
|
48 |
|
49 |
ClassDef(HKFactorProducer, 1) // Module to produce k factors
|
50 |
};
|
51 |
}
|
52 |
#endif
|