ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitPhysics/Mods/interface/GeneratorMod.h
Revision: 1.1
Committed: Wed Oct 15 06:04:59 2008 UTC (16 years, 6 months ago) by loizides
Content type: text/plain
Branch: MAIN
Log Message:
Added MitPhysics.

File Contents

# User Rev Content
1 loizides 1.1 //--------------------------------------------------------------------------------------------------
2     // $Id: GeneratorMod.h,v 1.1 2008/10/14 06:13:52 loizides Exp $
3     //
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     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 SetMCTausName(TString s) { fMCTausName = s;}
34     void SetMCNeutrinosName(TString s){ fMCNeutrinosName = s;}
35     void SetMCQuarksName(TString s) { fMCQuarksName = s;}
36     void SetMCqqHsName(TString s) { fMCqqHsName = s;}
37     void SetMCBosonsName(TString s) { fMCBosonsName = s;}
38     protected:
39     bool fPrintDebug; // debug output
40     bool fFillHist; // Fill histograms?
41     bool fIsMC; // is MC?
42     TString fMCPartName; // generator coll
43     TString fMCLeptonsName ; // new lepton coll
44     TString fMCTausName; // new tau coll
45     TString fMCNeutrinosName; // new Neutrinos coll
46     TString fMCQuarksName; // new Quarks coll
47     TString fMCqqHsName; // new qqH coll
48     TString fMCBosonsName; // new Bosons coll
49     MCParticleCol *fParticles; // GenParticle branch
50     int fNEventsProcessed; // Number of events
51    
52     TH1D *hDGenLeptons[20];
53     TH1D *hDGenTaus[20];
54     TH1D *hDGenNeutrinos[20];
55     TH1D *hDGenQuarks[20];
56     TH1D *hDGenWBF[20];
57     TH1D *hDGenBosons[20];
58    
59     void Begin();
60     void Process();
61     void SlaveBegin();
62     void SlaveTerminate();
63     void Terminate();
64    
65    
66     ClassDef(GeneratorMod,1) // TAM example analysis module
67     };
68     }
69     #endif