1 |
loizides |
1.2 |
//--------------------------------------------------------------------------------------------------
|
2 |
ceballos |
1.4 |
// $Id: HKFactorProducer.h,v 1.3 2009/12/06 14:59:43 ceballos Exp $
|
3 |
ceballos |
1.1 |
//
|
4 |
|
|
// HKFactorProducer
|
5 |
|
|
//
|
6 |
loizides |
1.2 |
// Produces the k factors from LO to NNLO.
|
7 |
ceballos |
1.1 |
//
|
8 |
|
|
// Authors: G. Gomez-Ceballos
|
9 |
loizides |
1.2 |
//--------------------------------------------------------------------------------------------------
|
10 |
ceballos |
1.1 |
|
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 |
loizides |
1.2 |
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 |
ceballos |
1.3 |
void SetIsData(Bool_t b) { fIsData = b; }
|
35 |
ceballos |
1.1 |
|
36 |
|
|
protected:
|
37 |
loizides |
1.2 |
void Process();
|
38 |
|
|
void SlaveBegin();
|
39 |
ceballos |
1.1 |
|
40 |
loizides |
1.2 |
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 |
ceballos |
1.4 |
Bool_t fIsData; //=true then it does nothing (def=0)
|
45 |
loizides |
1.2 |
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 |
ceballos |
1.1 |
|
49 |
loizides |
1.2 |
ClassDef(HKFactorProducer, 1) // Module to produce k factors
|
50 |
ceballos |
1.1 |
};
|
51 |
|
|
}
|
52 |
|
|
#endif
|