ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitPhysics/Mods/interface/JetIDMod.h
Revision: 1.13
Committed: Mon Jun 15 15:00:21 2009 UTC (15 years, 10 months ago) by loizides
Content type: text/plain
Branch: MAIN
CVS Tags: Mit_011a, Mit_011, Mit_010a, Mit_010, Mit_009c, Mit_009b
Changes since 1.12: +1 -2 lines
Log Message:
Added proper fwd defs plus split up complilation of MitAna/DataTree LinkDefs.

File Contents

# Content
1 //--------------------------------------------------------------------------------------------------
2 // $Id: JetIDMod.h,v 1.12 2009/05/09 18:35:57 ceballos 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
17 namespace mithep
18 {
19 class JetIDMod : public BaseMod
20 {
21 public:
22 JetIDMod(const char *name="JetIDMod",
23 const char *title="Jet identification module");
24
25 const char *GetInputName() const { return fJetsName; }
26 const char *GetGoodName() const { return GetGoodJetsName(); }
27 const char *GetGoodJetsName() const { return fGoodJetsName; }
28 const char *GetOutputName() const { return GetGoodJetsName(); }
29 Double_t GetPtCut() const { return fJetPtCut; }
30 Bool_t GetUseCorrection() const { return fUseJetCorrection; }
31 Double_t GetEtaMaxCut() const { return fJetEtaMaxCut; }
32 void SetGoodJetsName(const char *name) { fGoodJetsName = name; }
33 void SetGoodName(const char *name) { SetGoodJetsName(name); }
34 void SetInputName(const char *name) { fJetsName = name; }
35 void SetOutputName(const char *name) { SetGoodJetsName(name); }
36 void SetPtCut(Double_t cut) { fJetPtCut = cut; }
37 void SetUseCorrection(Bool_t b) { fUseJetCorrection = b; }
38 void SetEtaMaxCut(Double_t cut) { fJetEtaMaxCut = cut; }
39
40 protected:
41 void Process();
42
43 TString fJetsName; //name of jet collection (input)
44 TString fGoodJetsName; //name of good jets collection (output)
45 Bool_t fUseJetCorrection; //=true then use corrected energy
46 Double_t fJetPtCut; //jet pt cut
47 Double_t fJetEtaMaxCut; //jet eta max cut
48
49 ClassDef(JetIDMod, 1) // Jet identification module
50 };
51 }
52 #endif