ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitPhysics/Mods/interface/HKFactorProducer.h
Revision: 1.8
Committed: Sun Nov 27 06:17:45 2011 UTC (13 years, 5 months ago) by ceballos
Content type: text/plain
Branch: MAIN
CVS Tags: Mit_028a, Mit_028, Mit_027, Mit_027a, Mit_025e, Mit_025d
Changes since 1.7: +5 -1 lines
Log Message:
adding tau embedding weights

File Contents

# Content
1 //--------------------------------------------------------------------------------------------------
2 // $Id: HKFactorProducer.h,v 1.7 2011/07/26 15:01:20 sixie 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
19 class TH1D;
20 class TH2D;
21
22 namespace mithep
23 {
24 class HKFactorProducer : public BaseMod
25 {
26 public:
27 HKFactorProducer(const char *name="HKFactorProducer",
28 const char *title="KFactor information module");
29 ~HKFactorProducer();
30
31 void SetProcessID(Int_t d) { fProcessID = d; }
32 void SetInputFilename(const char *s) { fInputFileName = s; }
33 void SetMCBosonsName(const char *s) { fMCBosonsName = s; }
34 void SetMCEventInfoName(const char *s) { fMCEvInfoName = s; }
35 void SetEmbedWeightName(const char *s) { fEmbedWeightName = s; }
36 void SetIsData(Bool_t b) { fIsData = b; }
37 void SetMakePDFNtuple(Bool_t b) { fMakePDFNtuple = b; }
38 void SetDoHiggsPtReweighting(Bool_t b) { fDoHiggsPtReweighting = b; }
39 void SetOutputName(const char *f) { fOutputName = f; }
40
41 protected:
42 void Process();
43 void SlaveBegin();
44 void SlaveTerminate();
45
46 Int_t fProcessID; //process id (from pythia)
47 TString fInputFileName; //input file name
48 TString fMCBosonsName; //boson collection input name
49 TString fMCEvInfoName; //event info branch name
50 TString fEmbedWeightName; //tau embedding weight branch name
51 Bool_t fIsData; //=true then it does nothing (def=0)
52 Bool_t fMakePDFNtuple; //=true then it does nothing (def=0)
53 Bool_t fDoHiggsPtReweighting; //=true then it does reweighting
54 HWWKfactorList *fPt_histo; //!histogram with weights read from input file
55 const MCEventInfo *fMCEventInfo; //!event info branch pointer
56 const EmbedWeightCol *fEmbedWeight; //!tau embedding weight branch pointer
57 TH1D *hDHKFactor[10]; //!output histograms
58 TFile *fOutputFile; //output file handle
59 TString fOutputName; //output file name
60
61 float fTreeVariables[8]; //Ntuple variables
62 TTree *fTree; //ntuple tree
63
64 ClassDef(HKFactorProducer, 1) // Module to produce k factors
65 };
66 }
67 #endif