ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitPhysics/Mods/interface/JetIDMod.h
Revision: 1.12
Committed: Sat May 9 18:35:57 2009 UTC (15 years, 11 months ago) by ceballos
Content type: text/plain
Branch: MAIN
CVS Tags: Mit_009a
Changes since 1.11: +4 -1 lines
Log Message:
adding etamax option

File Contents

# Content
1 //--------------------------------------------------------------------------------------------------
2 // $Id: JetIDMod.h,v 1.11 2009/03/23 14:23:06 loizides Exp $
3 //
4 // JetIDMod
5 //
6 // This module applies jet identification criteria and exports a pointer to a collection
7 // of "good jet" according to the specified identification scheme.
8 //
9 // Authors: S.Xie
10 //--------------------------------------------------------------------------------------------------
11
12 #ifndef MITPHYSICS_MODS_JETIDMOD_H
13 #define MITPHYSICS_MODS_JETIDMOD_H
14
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 const char *title="Jet identification module");
25
26 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 void SetGoodJetsName(const char *name) { fGoodJetsName = name; }
34 void SetGoodName(const char *name) { SetGoodJetsName(name); }
35 void SetInputName(const char *name) { fJetsName = name; }
36 void SetOutputName(const char *name) { SetGoodJetsName(name); }
37 void SetPtCut(Double_t cut) { fJetPtCut = cut; }
38 void SetUseCorrection(Bool_t b) { fUseJetCorrection = b; }
39 void SetEtaMaxCut(Double_t cut) { fJetEtaMaxCut = cut; }
40
41 protected:
42 void Process();
43
44 TString fJetsName; //name of jet collection (input)
45 TString fGoodJetsName; //name of good jets collection (output)
46 Bool_t fUseJetCorrection; //=true then use corrected energy
47 Double_t fJetPtCut; //jet pt cut
48 Double_t fJetEtaMaxCut; //jet eta max cut
49
50 ClassDef(JetIDMod, 1) // Jet identification module
51 };
52 }
53 #endif