ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitPhysics/Mods/interface/JetIDMod.h
Revision: 1.17
Committed: Sat Apr 7 11:47:40 2012 UTC (13 years ago) by ceballos
Content type: text/plain
Branch: MAIN
CVS Tags: Mit_029c, Mit_029b, Mit_029a, Mit_028a, Mit_028, Mit_027, Mit_027a, HEAD
Changes since 1.16: +6 -1 lines
Log Message:
added a boolean to apply the mva jet id

File Contents

# User Rev Content
1 loizides 1.1 //--------------------------------------------------------------------------------------------------
2 ceballos 1.17 // $Id: JetIDMod.h,v 1.16 2012/04/05 12:25:09 pharris 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 ceballos 1.17 Bool_t GetApplyMVACut() const { return fApplyMVACut; }
37 ceballos 1.15 void SetGoodJetsName(const char *name) { fGoodJetsName = name; }
38     void SetGoodName(const char *name) { SetGoodJetsName(name); }
39     void SetInputName(const char *name) { fJetsName = name; }
40     void SetOutputName(const char *name) { SetGoodJetsName(name); }
41     void SetPtCut(Double_t cut) { fJetPtCut = cut; }
42     void SetUseCorrection(Bool_t b) { fUseJetCorrection = b; }
43     void SetEtaMaxCut(Double_t cut) { fJetEtaMaxCut = cut; }
44     void SetJetEEMFractionMinCut(Double_t cut){ fJetEEMFractionMinCut = cut;}
45     void SetApplyBetaCut(Bool_t b) { fApplyBetaCut = b; }
46 ceballos 1.17 void SetApplyMVACut(Bool_t b) { fApplyMVACut = b; }
47 sixie 1.2
48 loizides 1.1 protected:
49 loizides 1.6 void Process();
50 ceballos 1.17 void SlaveBegin();
51     void SlaveTerminate();
52 loizides 1.6
53 loizides 1.11 TString fJetsName; //name of jet collection (input)
54 loizides 1.7 TString fGoodJetsName; //name of good jets collection (output)
55 ceballos 1.15 TString fVertexName; //name of vertex collection
56 loizides 1.4 Bool_t fUseJetCorrection; //=true then use corrected energy
57 ceballos 1.8 Double_t fJetPtCut; //jet pt cut
58 ceballos 1.12 Double_t fJetEtaMaxCut; //jet eta max cut
59 ceballos 1.14 Double_t fJetEEMFractionMinCut; //jet Eem fraction min cut
60 ceballos 1.15 Bool_t fApplyBetaCut; //=true then apply beta cut
61 ceballos 1.17 Bool_t fApplyMVACut; //=true then apply MVA cut
62 ceballos 1.15 const VertexCol *fVertices; //Vertices branches
63 pharris 1.16 JetIDMVA *fJetIDMVA;
64 loizides 1.7 ClassDef(JetIDMod, 1) // Jet identification module
65 loizides 1.1 };
66     }
67     #endif