ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitPhysics/Mods/interface/GeneratorMod.h
Revision: 1.2
Committed: Wed Nov 5 14:06:06 2008 UTC (16 years, 6 months ago) by ceballos
Content type: text/plain
Branch: MAIN
Changes since 1.1: +15 -12 lines
Log Message:
adding one more name

File Contents

# User Rev Content
1 loizides 1.1 //--------------------------------------------------------------------------------------------------
2 ceballos 1.2 // $Id: GeneratorMod.h,v 1.1 2008/10/15 06:04:59 loizides Exp $
3 loizides 1.1 //
4     // GeneratorMod
5     //
6     // This module finds interesting generator information
7     //
8     // Authors: ceballos
9     //--------------------------------------------------------------------------------------------------
10    
11     #ifndef MITANA_TREEMOD_GENERATORMOD_H
12     #define MITANA_TREEMOD_GENERATORMOD_H
13    
14     #include "MitAna/TreeMod/interface/BaseMod.h"
15     #include "MitAna/DataTree/interface/Collections.h"
16    
17     class TH1D;
18     class TH2D;
19    
20     namespace mithep
21     {
22     class GeneratorMod : public BaseMod
23     {
24     public:
25     GeneratorMod(const char *name="GeneratorMod",
26     const char *title="generator information");
27     ~GeneratorMod() {}
28 ceballos 1.2 void SetPrintDebug(bool b) { fPrintDebug = b;}
29     void SetFillHist(bool b) { fFillHist = b;}
30     void SetIsMC(bool b) { fIsMC = b;}
31     void SetMCPartName(TString s) { fMCPartName = s;}
32     void SetMCLeptonsName(TString s) { fMCLeptonsName = s;}
33     void SetMCAllLeptonsName(TString s){ fMCAllLeptonsName = s;}
34     void SetMCTausName(TString s) { fMCTausName = s;}
35     void SetMCNeutrinosName(TString s) { fMCNeutrinosName = s;}
36     void SetMCQuarksName(TString s) { fMCQuarksName = s;}
37     void SetMCqqHsName(TString s) { fMCqqHsName = s;}
38     void SetMCBosonsName(TString s) { fMCBosonsName = s;}
39 loizides 1.1 protected:
40     bool fPrintDebug; // debug output
41     bool fFillHist; // Fill histograms?
42     bool fIsMC; // is MC?
43     TString fMCPartName; // generator coll
44 ceballos 1.2 TString fMCLeptonsName ; // new lepton coll (From W)
45     TString fMCAllLeptonsName ; // new lepton coll (all)
46 loizides 1.1 TString fMCTausName; // new tau coll
47     TString fMCNeutrinosName; // new Neutrinos coll
48     TString fMCQuarksName; // new Quarks coll
49     TString fMCqqHsName; // new qqH coll
50     TString fMCBosonsName; // new Bosons coll
51     MCParticleCol *fParticles; // GenParticle branch
52     int fNEventsProcessed; // Number of events
53    
54     TH1D *hDGenLeptons[20];
55 ceballos 1.2 TH1D *hDGenAllLeptons[20];
56 loizides 1.1 TH1D *hDGenTaus[20];
57     TH1D *hDGenNeutrinos[20];
58     TH1D *hDGenQuarks[20];
59     TH1D *hDGenWBF[20];
60     TH1D *hDGenBosons[20];
61    
62     void Begin();
63     void Process();
64     void SlaveBegin();
65     void SlaveTerminate();
66     void Terminate();
67    
68    
69     ClassDef(GeneratorMod,1) // TAM example analysis module
70     };
71     }
72     #endif