ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitPhysics/Mods/interface/HKFactorProducer.h
Revision: 1.10
Committed: Mon Sep 24 09:22:03 2012 UTC (12 years, 7 months ago) by ceballos
Content type: text/plain
Branch: MAIN
CVS Tags: Mit_029c, Mit_029b, Mit_029a, HEAD
Changes since 1.9: +3 -1 lines
Log Message:
small update

File Contents

# Content
1 //--------------------------------------------------------------------------------------------------
2 // $Id: HKFactorProducer.h,v 1.9 2012/09/07 10:07:55 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 "MitAna/DataTree/interface/EmbedWeightCol.h"
17 #include "MitPhysics/Mods/interface/HWWKFactorList.h"
18 #include "MitPhysics/Mods/interface/PwhgWrapper.h"
19
20 class TH1D;
21 class TH2D;
22
23 namespace mithep
24 {
25 class HKFactorProducer : public BaseMod
26 {
27 public:
28 HKFactorProducer(const char *name="HKFactorProducer",
29 const char *title="KFactor information module");
30 ~HKFactorProducer();
31
32 void SetProcessID(Int_t d) { fProcessID = d; }
33 void SetInputFilename(const char *s) { fInputFileName = s; }
34 void SetMCBosonsName(const char *s) { fMCBosonsName = s; }
35 void SetMCEventInfoName(const char *s) { fMCEvInfoName = s; }
36 void SetEmbedWeightName(const char *s) { fEmbedWeightName = s; }
37 void SetIsData(Bool_t b) { fIsData = b; }
38 void SetMakePDFNtuple(Bool_t b) { fMakePDFNtuple = b; }
39 void SetDoHiggsMhReweighting(Bool_t b) { fDoHiggsMhReweighting = b; }
40 void SetOutputName(const char *f) { fOutputName = f; }
41 void SetMh(Double_t x) { fMh = x; }
42 void SetWidth(Double_t x) { fWidth = x; }
43 void SetBWflag(Int_t d) { fBWflag = d; }
44
45 protected:
46 void Process();
47 void SlaveBegin();
48 void SlaveTerminate();
49
50 Int_t fProcessID; //process id (from pythia)
51 TString fInputFileName; //input file name
52 TString fMCBosonsName; //boson collection input name
53 TString fMCEvInfoName; //event info branch name
54 TString fEmbedWeightName; //tau embedding weight branch name
55 Bool_t fIsData; //=true then it does nothing (def=0)
56 Bool_t fMakePDFNtuple; //=true then it does nothing (def=0)
57 Bool_t fDoHiggsMhReweighting; //=true then it does reweighting
58 Double_t fMh; //fixed Higgs mass
59 Double_t fWidth; //fixed Higgs width
60 Int_t fBWflag; //running or fixed width
61 const MCEventInfo *fMCEventInfo; //!event info branch pointer
62 const EmbedWeightCol *fEmbedWeight; //!tau embedding weight branch pointer
63 TH1D *hDHKFactor[10]; //!output histograms
64 TFile *fOutputFile; //output file handle
65 TString fOutputName; //output file name
66
67 float fTreeVariables[8]; //Ntuple variables
68 TTree *fTree; //ntuple tree
69 pwhegwrapper fWeightAlgo; //Higgs reweighting algorithm
70
71 ClassDef(HKFactorProducer, 1) // Module to produce k factors
72 };
73 }
74 #endif