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

# User Rev Content
1 loizides 1.2 //--------------------------------------------------------------------------------------------------
2 ceballos 1.8 // $Id: HKFactorProducer.h,v 1.7 2011/07/26 15:01:20 sixie 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 ceballos 1.8 #include "MitAna/DataTree/interface/EmbedWeightCol.h"
17 ceballos 1.1 #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 sixie 1.7 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 ceballos 1.8 void SetEmbedWeightName(const char *s) { fEmbedWeightName = s; }
36 sixie 1.7 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 ceballos 1.1
41     protected:
42 loizides 1.2 void Process();
43     void SlaveBegin();
44 ceballos 1.6 void SlaveTerminate();
45 ceballos 1.1
46 sixie 1.7 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 ceballos 1.8 TString fEmbedWeightName; //tau embedding weight branch name
51 sixie 1.7 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 ceballos 1.8 const EmbedWeightCol *fEmbedWeight; //!tau embedding weight branch pointer
57 sixie 1.7 TH1D *hDHKFactor[10]; //!output histograms
58     TFile *fOutputFile; //output file handle
59     TString fOutputName; //output file name
60 ceballos 1.1
61 sixie 1.7 float fTreeVariables[8]; //Ntuple variables
62     TTree *fTree; //ntuple tree
63 ceballos 1.5
64 loizides 1.2 ClassDef(HKFactorProducer, 1) // Module to produce k factors
65 ceballos 1.1 };
66     }
67     #endif