ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitPhysics/Mods/interface/GeneratorMod.h
Revision: 1.32
Committed: Mon Aug 31 06:39:22 2009 UTC (15 years, 8 months ago) by sixie
Content type: text/plain
Branch: MAIN
Changes since 1.31: +14 -1 lines
Log Message:
Add ability to publish MC particle collection to the output module

File Contents

# User Rev Content
1 loizides 1.1 //--------------------------------------------------------------------------------------------------
2 sixie 1.32 // $Id: GeneratorMod.h,v 1.31 2009/06/17 20:27:44 loizides Exp $
3 loizides 1.1 //
4     // GeneratorMod
5     //
6 loizides 1.4 // This module collects interesting generator information and publishes collections
7     // for subsequent modules.
8 loizides 1.1 //
9 loizides 1.4 // Authors: G.Ceballos
10 loizides 1.1 //--------------------------------------------------------------------------------------------------
11    
12 loizides 1.4 #ifndef MITPHYSICS_MODS_GENERATORMOD_H
13     #define MITPHYSICS_MODS_GENERATORMOD_H
14 loizides 1.1
15     #include "MitAna/TreeMod/interface/BaseMod.h"
16 loizides 1.31 #include "MitAna/DataTree/interface/MCParticleFwd.h"
17 sixie 1.32 #include "MitAna/DataTree/interface/MetFwd.h"
18 loizides 1.1
19     class TH1D;
20     class TH2D;
21    
22     namespace mithep
23     {
24     class GeneratorMod : public BaseMod
25     {
26     public:
27     GeneratorMod(const char *name="GeneratorMod",
28 loizides 1.4 const char *title="Generator information module");
29 sixie 1.32 ~GeneratorMod();
30 loizides 1.4
31 loizides 1.27 const char *GetMCAllLeptonsName() const { return fMCAllLeptonsName; }
32     const char *GetMCBosonsName() const { return fMCBosonsName; }
33     const char *GetMCISRPhotonsName() const { return fMCISRPhotonsName; }
34     const char *GetMCLeptonsName() const { return fMCLeptonsName; }
35 loizides 1.25 const char *GetMCMETName() const { return fMCMETName; }
36     const char *GetMCNeutrinosName() const { return fMCNeutrinosName; }
37 loizides 1.27 const char *GetMCPartName() const { return fMCPartName; }
38     const char *GetMCPhotonsName() const { return fMCPhotonsName; }
39 loizides 1.25 const char *GetMCQuarksName() const { return fMCQuarksName; }
40 loizides 1.27 const char *GetMCRadPhotonsName() const { return fMCRadPhotonsName; }
41     const char *GetMCTausName() const { return fMCTausName; }
42 loizides 1.25 const char *GetMCqqHsName() const { return fMCqqHsName; }
43 loizides 1.27 const Bool_t GetPrintDebug() const { return fPrintDebug; }
44 loizides 1.25 Bool_t GetApplyISRFilter() const { return fApplyISRFilter; }
45 loizides 1.27 void SetApplyISRFilter(Bool_t b) { fApplyISRFilter = b; }
46     void SetEtaLeptonMax(Double_t x) { fEtaLeptonMax = x; }
47     void SetEtaPhotonMax(Double_t x) { fEtaPhotonMax = x; }
48     void SetEtaRadPhotonMax(Double_t x) { fEtaRadPhotonMax = x; }
49     void SetMCAllLeptonsName(const char * s) { fMCAllLeptonsName = s; }
50     void SetMCBosonsName(const char *s) { fMCBosonsName = s; }
51     void SetMCISRPhotonsName(const char *s) { fMCISRPhotonsName = s; }
52     void SetMCLeptonsName(const char * s) { fMCLeptonsName = s; }
53 ceballos 1.21 void SetMCMETName(const char * s) { fMCMETName = s; }
54 loizides 1.12 void SetMCNeutrinosName(const char *s) { fMCNeutrinosName = s; }
55 loizides 1.27 void SetMCPartName(const char *s) { fMCPartName = s; }
56     void SetMCPhotonsName(const char *s) { fMCPhotonsName = s; }
57 loizides 1.12 void SetMCQuarksName(const char *s) { fMCQuarksName = s; }
58 loizides 1.27 void SetMCRadPhotonsName(const char *s) { fMCRadPhotonsName = s; }
59     void SetMCTausName(const char *s) { fMCTausName = s; }
60 loizides 1.12 void SetMCqqHsName(const char *s) { fMCqqHsName = s; }
61 loizides 1.27 void SetMassMaxCut(Double_t x) { fMassMaxCut = x; }
62     void SetMassMinCut(Double_t x) { fMassMinCut = x; }
63     void SetPdgIdCut(UInt_t d) { fPdgIdCut = d; }
64     void SetPrintDebug(bool b) { fPrintDebug = b; }
65 loizides 1.12 void SetPtLeptonMin(Double_t x) { fPtLeptonMin = x; }
66     void SetPtPhotonMin(Double_t x) { fPtPhotonMin = x; }
67 ceballos 1.23 void SetPtRadPhotonMin(Double_t x) { fPtRadPhotonMin = x; }
68 loizides 1.4
69 loizides 1.1 protected:
70 loizides 1.14 void Process();
71     void SlaveBegin();
72    
73 loizides 1.25 Bool_t fPrintDebug; //=true then print debug info
74 loizides 1.12 TString fMCPartName; //name of MCParticle branch
75 ceballos 1.21 TString fMCMETName; //name of met coll
76     TString fMCLeptonsName; //name of lepton coll (from W/Z/H)
77 loizides 1.12 TString fMCAllLeptonsName; //name of lepton coll (all)
78     TString fMCTausName; //name of tau coll (hadronic decays)
79     TString fMCNeutrinosName; //name of neutrinos coll
80     TString fMCQuarksName; //name of quarks coll
81     TString fMCqqHsName; //name of qqH coll
82     TString fMCBosonsName; //name of bosons coll
83     TString fMCPhotonsName; //name of photons coll
84 loizides 1.25 TString fMCRadPhotonsName; //name of rad photons coll
85 ceballos 1.23 TString fMCISRPhotonsName; //name of ISR photons coll
86 loizides 1.12 Double_t fPtLeptonMin; //pt min for leptons
87     Double_t fEtaLeptonMax; //eta max for leptons
88     Double_t fPtPhotonMin; //pt min for photons
89     Double_t fEtaPhotonMax; //eta max for photons
90 ceballos 1.23 Double_t fPtRadPhotonMin; //pt min for rad photons
91     Double_t fEtaRadPhotonMax; //eta max for rad photons
92 loizides 1.25 UInt_t fPdgIdCut; //pdg id for particle used to select on mass (def=0)
93 loizides 1.19 Double_t fMassMinCut; //mass min for given PdgId particle
94     Double_t fMassMaxCut; //mass max for given PdgId particle
95 ceballos 1.24 Bool_t fApplyISRFilter; //=true then apply ISR filter (def=0)
96 loizides 1.12 const MCParticleCol *fParticles; //!MCParticle branch
97 ceballos 1.21 TH1D *hDGenMet[10]; //!histos for gen MET
98     TH1D *hDGenLeptons[40]; //!histos for W/Z/H leptons
99 loizides 1.12 TH1D *hDGenAllLeptons[20]; //!histos for all leptons
100     TH1D *hDGenTaus[20]; //!histos for taus
101     TH1D *hDGenNeutrinos[20]; //!histos for neutrinos
102     TH1D *hDGenQuarks[20]; //!histos for quarks
103     TH1D *hDGenWBF[20]; //!histos for WBF
104     TH1D *hDGenBosons[20]; //!histos for bosons
105     TH1D *hDGenPhotons[20]; //!histos for photons
106 loizides 1.25 TH1D *hDGenRadPhotons[20]; //!histos for rad photons
107 ceballos 1.23 TH1D *hDGenISRPhotons[20]; //!histos for ISR photons
108 ceballos 1.28 TH1D *hDVMass[20]; //!histos for auxiliar MG work
109 ceballos 1.30 TH1D *hDVVMass[50]; //!histos for auxiliar VV work
110 ceballos 1.17
111 sixie 1.32 MCParticleArr *fGenLeptons;
112     MCParticleArr *fGenAllLeptons;
113     MCParticleArr *fGenTaus;
114     MCParticleArr *fGenNeutrinos;
115     MCParticleArr *fGenQuarks;
116     MCParticleArr *fGenqqHs;
117     MCParticleArr *fGenBosons;
118     MCParticleArr *fGenPhotons;
119     MCParticleArr *fGenRadPhotons;
120     MCParticleArr *fGenISRPhotons;
121    
122 loizides 1.16 ClassDef(GeneratorMod, 1) // Module to gather generator information
123 loizides 1.1 };
124     }
125     #endif