ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitPhysics/Mods/interface/JetIDMod.h
Revision: 1.11
Committed: Mon Mar 23 14:23:06 2009 UTC (16 years, 1 month ago) by loizides
Content type: text/plain
Branch: MAIN
CVS Tags: Mit_009, Mit_008
Changes since 1.10: +3 -5 lines
Log Message:
Cleanup

File Contents

# User Rev Content
1 loizides 1.1 //--------------------------------------------------------------------------------------------------
2 loizides 1.11 // $Id: JetIDMod.h,v 1.10 2009/03/12 16:00:46 bendavid 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.11 const char *title="Jet identification module");
25 loizides 1.4
26 bendavid 1.10 const char *GetInputName() const { return fJetsName; }
27 loizides 1.7 const char *GetGoodName() const { return GetGoodJetsName(); }
28     const char *GetGoodJetsName() const { return fGoodJetsName; }
29     const char *GetOutputName() const { return GetGoodJetsName(); }
30 loizides 1.9 Double_t GetPtCut() const { return fJetPtCut; }
31 loizides 1.7 Bool_t GetUseCorrection() const { return fUseJetCorrection; }
32     void SetGoodJetsName(const char *name) { fGoodJetsName = name; }
33     void SetGoodName(const char *name) { SetGoodJetsName(name); }
34 bendavid 1.10 void SetInputName(const char *name) { fJetsName = name; }
35 loizides 1.7 void SetOutputName(const char *name) { SetGoodJetsName(name); }
36 loizides 1.9 void SetPtCut(Double_t cut) { fJetPtCut = cut; }
37 loizides 1.7 void SetUseCorrection(Bool_t b) { fUseJetCorrection = b; }
38 sixie 1.2
39 loizides 1.1 protected:
40 loizides 1.6 void Process();
41    
42 loizides 1.11 TString fJetsName; //name of jet collection (input)
43 loizides 1.7 TString fGoodJetsName; //name of good jets collection (output)
44 loizides 1.4 Bool_t fUseJetCorrection; //=true then use corrected energy
45 ceballos 1.8 Double_t fJetPtCut; //jet pt cut
46 loizides 1.4
47 loizides 1.7 ClassDef(JetIDMod, 1) // Jet identification module
48 loizides 1.1 };
49     }
50     #endif