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

# User Rev Content
1 loizides 1.2 //--------------------------------------------------------------------------------------------------
2 ceballos 1.6 // $Id: HKFactorProducer.h,v 1.5 2010/10/19 22:25:25 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.5 void SetMakePDFNtuple(Bool_t b) { fMakePDFNtuple = b; }
36 ceballos 1.6 void SetOutputName(const char *f) { fOutputName = f; }
37 ceballos 1.1
38     protected:
39 loizides 1.2 void Process();
40     void SlaveBegin();
41 ceballos 1.6 void SlaveTerminate();
42 ceballos 1.1
43 loizides 1.2 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 ceballos 1.4 Bool_t fIsData; //=true then it does nothing (def=0)
48 ceballos 1.5 Bool_t fMakePDFNtuple; //=true then it does nothing (def=0)
49 loizides 1.2 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 ceballos 1.6 TFile *fOutputFile; //output file handle
53     TString fOutputName; //output file name
54 ceballos 1.1
55 ceballos 1.6 float fTreeVariables[8]; //Ntuple variables
56     TTree *fTree; //ntuple tree
57 ceballos 1.5
58 loizides 1.2 ClassDef(HKFactorProducer, 1) // Module to produce k factors
59 ceballos 1.1 };
60     }
61     #endif