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