ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitPhysics/Mods/interface/JetIDMod.h
Revision: 1.16
Committed: Thu Apr 5 12:25:09 2012 UTC (13 years, 1 month ago) by pharris
Content type: text/plain
Branch: MAIN
Changes since 1.15: +3 -2 lines
Log Message:
Added MVA to JetIDMod

File Contents

# User Rev Content
1 loizides 1.1 //--------------------------------------------------------------------------------------------------
2 pharris 1.16 // $Id: JetIDMod.h,v 1.15 2011/02/21 13:50:20 ceballos Exp $
3 loizides 1.1 //
4     // JetIDMod
5     //
6 loizides 1.4 // This module applies jet identification criteria and exports a pointer to a collection
7     // of "good jet" according to the specified identification scheme.
8 loizides 1.1 //
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 ceballos 1.15 #include "MitAna/DataTree/interface/VertexCol.h"
17 pharris 1.16 #include "MitPhysics/Utils/interface/JetIDMVA.h"
18 loizides 1.1
19     namespace mithep
20     {
21     class JetIDMod : public BaseMod
22     {
23     public:
24     JetIDMod(const char *name="JetIDMod",
25 loizides 1.11 const char *title="Jet identification module");
26 loizides 1.4
27 ceballos 1.15 const char *GetInputName() const { return fJetsName; }
28     const char *GetGoodName() const { return GetGoodJetsName(); }
29     const char *GetGoodJetsName() const { return fGoodJetsName; }
30     const char *GetOutputName() const { return GetGoodJetsName(); }
31     Double_t GetPtCut() const { return fJetPtCut; }
32     Bool_t GetUseCorrection() const { return fUseJetCorrection; }
33     Double_t GetEtaMaxCut() const { return fJetEtaMaxCut; }
34     Double_t GetJetEEMFractionMinCut() const { return fJetEEMFractionMinCut;}
35     Bool_t GetApplyBetaCut() const { return fApplyBetaCut; }
36     void SetGoodJetsName(const char *name) { fGoodJetsName = name; }
37     void SetGoodName(const char *name) { SetGoodJetsName(name); }
38     void SetInputName(const char *name) { fJetsName = name; }
39     void SetOutputName(const char *name) { SetGoodJetsName(name); }
40     void SetPtCut(Double_t cut) { fJetPtCut = cut; }
41     void SetUseCorrection(Bool_t b) { fUseJetCorrection = b; }
42     void SetEtaMaxCut(Double_t cut) { fJetEtaMaxCut = cut; }
43     void SetJetEEMFractionMinCut(Double_t cut){ fJetEEMFractionMinCut = cut;}
44     void SetApplyBetaCut(Bool_t b) { fApplyBetaCut = b; }
45 sixie 1.2
46 loizides 1.1 protected:
47 loizides 1.6 void Process();
48    
49 loizides 1.11 TString fJetsName; //name of jet collection (input)
50 loizides 1.7 TString fGoodJetsName; //name of good jets collection (output)
51 ceballos 1.15 TString fVertexName; //name of vertex collection
52 loizides 1.4 Bool_t fUseJetCorrection; //=true then use corrected energy
53 ceballos 1.8 Double_t fJetPtCut; //jet pt cut
54 ceballos 1.12 Double_t fJetEtaMaxCut; //jet eta max cut
55 ceballos 1.14 Double_t fJetEEMFractionMinCut; //jet Eem fraction min cut
56 ceballos 1.15 Bool_t fApplyBetaCut; //=true then apply beta cut
57     const VertexCol *fVertices; //Vertices branches
58 pharris 1.16 JetIDMVA *fJetIDMVA;
59 loizides 1.7 ClassDef(JetIDMod, 1) // Jet identification module
60 loizides 1.1 };
61     }
62     #endif