ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitPhysics/Mods/interface/JetIDMod.h
Revision: 1.8
Committed: Fri Jan 23 09:27:46 2009 UTC (16 years, 3 months ago) by ceballos
Content type: text/plain
Branch: MAIN
Changes since 1.7: +4 -4 lines
Log Message:
using pt instead of et

File Contents

# User Rev Content
1 loizides 1.1 //--------------------------------------------------------------------------------------------------
2 ceballos 1.8 // $Id: JetIDMod.h,v 1.7 2008/12/10 17:28:22 loizides 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     #include "MitAna/DataTree/interface/Collections.h"
17    
18     namespace mithep
19     {
20     class JetIDMod : public BaseMod
21     {
22     public:
23     JetIDMod(const char *name="JetIDMod",
24 loizides 1.4 const char *title="Jed identification module");
25 loizides 1.1 ~JetIDMod() {}
26 loizides 1.4
27 ceballos 1.8 Double_t GetEtCut() const { return fJetPtCut; }
28 loizides 1.7 const char *GetInputName() const { return fJetBranchName; }
29     const char *GetGoodName() const { return GetGoodJetsName(); }
30     const char *GetGoodJetsName() const { return fGoodJetsName; }
31     const char *GetOutputName() const { return GetGoodJetsName(); }
32     Bool_t GetUseCorrection() const { return fUseJetCorrection; }
33 ceballos 1.8 void SetPtCut(Double_t cut) { fJetPtCut = cut; }
34 loizides 1.7 void SetGoodJetsName(const char *name) { fGoodJetsName = name; }
35     void SetGoodName(const char *name) { SetGoodJetsName(name); }
36     void SetInputName(const char *name) { fJetBranchName = name; }
37     void SetOutputName(const char *name) { SetGoodJetsName(name); }
38     void SetUseCorrection(Bool_t b) { fUseJetCorrection = b; }
39 sixie 1.2
40 loizides 1.1 protected:
41 loizides 1.6 void Process();
42     void SlaveBegin();
43    
44 loizides 1.7 TString fJetBranchName; //name of jet collection (input)
45     TString fGoodJetsName; //name of good jets collection (output)
46 loizides 1.4 Bool_t fUseJetCorrection; //=true then use corrected energy
47 ceballos 1.8 Double_t fJetPtCut; //jet pt cut
48 loizides 1.7 const JetCol *fJets; //!jet collection
49 loizides 1.4
50 loizides 1.7 ClassDef(JetIDMod, 1) // Jet identification module
51 loizides 1.1 };
52     }
53     #endif