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

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