1 |
ceballos |
1.1 |
//--------------------------------------------------------------------------------------------------
|
2 |
|
|
// $Id: TauCleaningMod.h,v 1.5 2009/03/23 14:23:06 loizides Exp $
|
3 |
|
|
//
|
4 |
|
|
// TauCleaningMod
|
5 |
|
|
//
|
6 |
|
|
// This Module performs cleaning of taus, ie it removes jets which point
|
7 |
|
|
// in the same direction as a clean isolated electrons or muons
|
8 |
|
|
//
|
9 |
|
|
// Authors: S.Xie
|
10 |
|
|
//--------------------------------------------------------------------------------------------------
|
11 |
|
|
|
12 |
|
|
#ifndef MITPHYSICS_MODS_TAUCLEANINGMOD_H
|
13 |
|
|
#define MITPHYSICS_MODS_TAUCLEANINGMOD_H
|
14 |
|
|
|
15 |
|
|
#include "MitAna/TreeMod/interface/BaseMod.h"
|
16 |
|
|
#include "MitAna/DataTree/interface/Collections.h"
|
17 |
|
|
|
18 |
|
|
namespace mithep
|
19 |
|
|
{
|
20 |
|
|
class TauCleaningMod : public BaseMod
|
21 |
|
|
{
|
22 |
|
|
public:
|
23 |
|
|
TauCleaningMod(const char *name="TauCleaningMod",
|
24 |
|
|
const char *title="Tau cleaning module");
|
25 |
|
|
|
26 |
|
|
const char *GetCleanElectronsName() const { return fCleanElectronsName; }
|
27 |
|
|
const char *GetCleanMuonsName() const { return fCleanMuonsName; }
|
28 |
|
|
const char *GetCleanName() const { return GetCleanCaloTausName();}
|
29 |
|
|
const char *GetCleanCaloTausName() const { return fCleanCaloTausName; }
|
30 |
|
|
const char *GetGoodTausName() const { return fGoodTausName; }
|
31 |
|
|
Double_t GetMinDeltaRToElectron() const { return fMinDeltaRToElectron; }
|
32 |
|
|
Double_t GetMinDeltaRToMuon() const { return fMinDeltaRToMuon; }
|
33 |
|
|
const char *GetOutputName() const { return GetCleanCaloTausName();}
|
34 |
|
|
void SetCleanElectronsName(const char *name) { fCleanElectronsName = name; }
|
35 |
|
|
void SetCleanMuonsName(const char *name) { fCleanMuonsName = name; }
|
36 |
|
|
void SetCleanName(const char *name) { SetCleanCaloTausName(name); }
|
37 |
|
|
void SetCleanCaloTausName(const char *name) { fCleanCaloTausName = name;}
|
38 |
|
|
void SetGoodTausName(const char *name) { fGoodTausName = name;}
|
39 |
|
|
void SetMinDeltaRToElectron(Double_t dr) { fMinDeltaRToElectron = dr; }
|
40 |
|
|
void SetMinDeltaRToMuon(Double_t dr) { fMinDeltaRToMuon = dr; }
|
41 |
|
|
void SetOutputName(const char *name) { SetCleanCaloTausName(name); }
|
42 |
|
|
|
43 |
|
|
protected:
|
44 |
|
|
void Process();
|
45 |
|
|
|
46 |
|
|
TString fCleanElectronsName; //name of clean electrons (input)
|
47 |
|
|
TString fCleanMuonsName; //name of clean muons (input)
|
48 |
|
|
TString fGoodTausName; //name of good jets (input)
|
49 |
|
|
TString fCleanCaloTausName; //name of clean jets (output)
|
50 |
|
|
Double_t fMinDeltaRToElectron; //delta R threshold for separating electrons/taus
|
51 |
|
|
Double_t fMinDeltaRToMuon; //delta R threshold for separating muons/taus
|
52 |
|
|
|
53 |
|
|
ClassDef(TauCleaningMod, 1) // Tau cleaning module
|
54 |
|
|
};
|
55 |
|
|
}
|
56 |
|
|
#endif
|