ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitPhysics/Mods/interface/JetIDMod.h
Revision: 1.15
Committed: Mon Feb 21 13:50:20 2011 UTC (14 years, 2 months ago) by ceballos
Content type: text/plain
Branch: MAIN
CVS Tags: Mit_025e, Mit_025d, Mit_025c, Mit_025b, Mit_025a, Mit_025, Mit_025pre2, Mit_024b, Mit_025pre1, Mit_024a, Mit_024, Mit_023, Mit_022a, Mit_022, Mit_020d, TMit_020d, Mit_020c, Mit_021, Mit_021pre2, Mit_021pre1, Mit_020b, Mit_020a, Mit_020, Mit_020pre1
Changes since 1.14: +23 -17 lines
Log Message:
new beta

File Contents

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