1 |
//--------------------------------------------------------------------------------------------------
|
2 |
// $Id: JetIDMod.h,v 1.13 2009/06/15 15:00:21 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 |
|
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 |
Double_t GetJetEEMFractionMinCut() const { return fJetEEMFractionMinCut;}
|
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 |
void SetJetEEMFractionMinCut(Double_t cut){ fJetEEMFractionMinCut = cut;}
|
41 |
|
42 |
protected:
|
43 |
void Process();
|
44 |
|
45 |
TString fJetsName; //name of jet collection (input)
|
46 |
TString fGoodJetsName; //name of good jets collection (output)
|
47 |
Bool_t fUseJetCorrection; //=true then use corrected energy
|
48 |
Double_t fJetPtCut; //jet pt cut
|
49 |
Double_t fJetEtaMaxCut; //jet eta max cut
|
50 |
Double_t fJetEEMFractionMinCut; //jet Eem fraction min cut
|
51 |
|
52 |
ClassDef(JetIDMod, 1) // Jet identification module
|
53 |
};
|
54 |
}
|
55 |
#endif
|