ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitPhysics/Mods/interface/JetIDMod.h
Revision: 1.3
Committed: Thu Nov 27 16:30:26 2008 UTC (16 years, 5 months ago) by loizides
Content type: text/plain
Branch: MAIN
Changes since 1.2: +4 -4 lines
Log Message:
Cleaning up. Not finished yet.

File Contents

# User Rev Content
1 loizides 1.1 //--------------------------------------------------------------------------------------------------
2 loizides 1.3 // $Id: JetIDMod.h,v 1.2 2008/11/21 11:05:34 sixie Exp $
3 loizides 1.1 //
4     // JetIDMod
5     //
6 loizides 1.3 // This module applies jet ID criteria and exports a pointer to a collection
7 loizides 1.1 // of Good Electrons according to some specified ID scheme
8     //
9     // Authors: S.Xie
10     //--------------------------------------------------------------------------------------------------
11    
12 loizides 1.3 #ifndef MITPHYSICS_MODS_JETIDMOD_H
13     #define MITPHYSICS_MODS_JETIDMOD_H
14 loizides 1.1
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 sixie 1.2 void SetUseJetCorrection(bool b) { fUseJetCorrection = b; }
34     void SetJetEtCut(Double_t x) { fJetEtCut = x; }
35    
36 loizides 1.1 protected:
37     bool fPrintDebug; //flag for printing debug output
38     TString fJetName; //name of muon collection
39     TString fGoodJetsName ; //name of good jets collection
40     TString fJetIDType; //Type of ID we impose
41     JetCol *fJets; //!Jet branch
42     int fNEventsProcessed; // Number of events processed
43 sixie 1.2 bool fUseJetCorrection; //bool to use JetCorrected pt
44     Double_t fJetEtCut; //value of Jet Et cut
45 loizides 1.1
46     void Begin();
47     void Process();
48     void SlaveBegin();
49     void SlaveTerminate();
50     void Terminate();
51    
52     ClassDef(JetIDMod,1) // TAM example analysis module
53     };
54     }
55     #endif