ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitPhysics/Mods/interface/JetIDMod.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: JetIDMod.h,v 1.1 2008/10/14 06:13:52 loizides Exp $
3     //
4     // JetIDMod
5     //
6     // This Module applies electron ID criteria and exports a pointer to a collection
7     // of Good Electrons according to some specified ID scheme
8     //
9     // Authors: S.Xie
10     //--------------------------------------------------------------------------------------------------
11    
12     #ifndef MITANA_TREEMOD_JETIDMOD_H
13     #define MITANA_TREEMOD_JETIDMOD_H
14    
15     #include "MitAna/TreeMod/interface/BaseMod.h"
16     #include "MitAna/DataTree/interface/Collections.h"
17    
18     class TH1D;
19     class TH2D;
20    
21     namespace mithep
22     {
23     class JetIDMod : public BaseMod
24     {
25     public:
26     JetIDMod(const char *name="JetIDMod",
27     const char *title="Example analysis module with all branches");
28     ~JetIDMod() {}
29     void SetPrintDebug(bool b) { fPrintDebug = b; }
30     void SetJetIDType(TString type) { fJetIDType = type; }
31     void SetJetName(TString s) { fJetName = s; }
32     void SetGoodJetsName(TString s) { fGoodJetsName = s; }
33    
34     protected:
35     bool fPrintDebug; //flag for printing debug output
36     TString fJetName; //name of muon collection
37     TString fGoodJetsName ; //name of good jets collection
38     TString fJetIDType; //Type of ID we impose
39     JetCol *fJets; //!Jet branch
40     int fNEventsProcessed; // Number of events processed
41    
42     void Begin();
43     void Process();
44     void SlaveBegin();
45     void SlaveTerminate();
46     void Terminate();
47    
48     ClassDef(JetIDMod,1) // TAM example analysis module
49     };
50     }
51     #endif