ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitPhysics/Mods/interface/HKFactorProducer.h
Revision: 1.6
Committed: Fri Jun 10 10:42:36 2011 UTC (13 years, 11 months ago) by ceballos
Content type: text/plain
Branch: MAIN
CVS Tags: Mit_023, Mit_022a, Mit_022
Changes since 1.5: +7 -3 lines
Log Message:
fixes in the electron id

File Contents

# Content
1 //--------------------------------------------------------------------------------------------------
2 // $Id: HKFactorProducer.h,v 1.5 2010/10/19 22:25:25 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 void SetMakePDFNtuple(Bool_t b) { fMakePDFNtuple = b; }
36 void SetOutputName(const char *f) { fOutputName = f; }
37
38 protected:
39 void Process();
40 void SlaveBegin();
41 void SlaveTerminate();
42
43 Int_t fProcessID; //process id (from pythia)
44 TString fInputFileName; //input file name
45 TString fMCBosonsName; //boson collection input name
46 TString fMCEvInfoName; //event info branch name
47 Bool_t fIsData; //=true then it does nothing (def=0)
48 Bool_t fMakePDFNtuple; //=true then it does nothing (def=0)
49 HWWKfactorList *fPt_histo; //!histogram with weights read from input file
50 const MCEventInfo *fMCEventInfo; //!event info branch pointer
51 TH1D *hDHKFactor[10]; //!output histograms
52 TFile *fOutputFile; //output file handle
53 TString fOutputName; //output file name
54
55 float fTreeVariables[8]; //Ntuple variables
56 TTree *fTree; //ntuple tree
57
58 ClassDef(HKFactorProducer, 1) // Module to produce k factors
59 };
60 }
61 #endif