1 |
ceballos |
1.1 |
//--------------------------------------------------------------------------------------------------
|
2 |
ceballos |
1.2 |
// $Id: TauIDMod.h,v 1.1 2009/04/08 10:11:44 ceballos Exp $
|
3 |
ceballos |
1.1 |
//
|
4 |
|
|
// TauIDMod
|
5 |
|
|
//
|
6 |
|
|
// This module applies Tau identification criteria and exports a pointer to a collection
|
7 |
|
|
// of "good Taus" according to the specified identification scheme.
|
8 |
|
|
//
|
9 |
|
|
// Authors: S.Xie, C.Loizides
|
10 |
|
|
//--------------------------------------------------------------------------------------------------
|
11 |
|
|
|
12 |
|
|
#ifndef MITPHYSICS_MODS_TauIDMOD_H
|
13 |
|
|
#define MITPHYSICS_MODS_TauIDMOD_H
|
14 |
|
|
|
15 |
|
|
#include "MitAna/TreeMod/interface/BaseMod.h"
|
16 |
|
|
#include "MitAna/DataTree/interface/Collections.h"
|
17 |
|
|
|
18 |
|
|
namespace mithep
|
19 |
|
|
{
|
20 |
|
|
class TauIDMod : public BaseMod
|
21 |
|
|
{
|
22 |
|
|
public:
|
23 |
|
|
TauIDMod(const char *name="TauIDMod",
|
24 |
|
|
const char *title="Tau identification module");
|
25 |
|
|
|
26 |
|
|
const char *GetCaloTausName() const { return fCaloTausName; }
|
27 |
|
|
const char *GetGoodTausName() const { return fGoodTausName; }
|
28 |
|
|
Double_t GetPtMin() const { return fTauPtMin; }
|
29 |
ceballos |
1.2 |
Double_t GetJetPtMin() const { return fTauJetPtMin; }
|
30 |
ceballos |
1.1 |
UInt_t GetNSignalTracksMax() const { return fNSignalTracksMax; }
|
31 |
|
|
UInt_t GetNIsoTracksMax() const { return fNIsoTracksMax; }
|
32 |
|
|
Double_t GetSignalTracksMassMax() const { return fSignalTracksMassMax; }
|
33 |
|
|
Double_t GetIsoTrackPtSumMax() const { return fIsoTrackPtSumMax; }
|
34 |
ceballos |
1.2 |
Double_t GetEnergyFractionEmMax() const { return fEnergyFractionEmMax; }
|
35 |
ceballos |
1.1 |
|
36 |
|
|
void SetCaloTausName(const char *n) { fCaloTausName = n; }
|
37 |
|
|
void SetGoodTausName(const char *n) { fGoodTausName = n; }
|
38 |
|
|
void SetPtMin(Double_t x) { fTauPtMin = x; }
|
39 |
|
|
void SetJetPtMin(Double_t x) { fTauJetPtMin = x; }
|
40 |
|
|
void SetNSignalTracksMax(Int_t d) { fNSignalTracksMax = d; }
|
41 |
|
|
void SetNIsoTracksMax(Int_t d) { fNIsoTracksMax = d; }
|
42 |
|
|
void SetSignalTracksMassMax(Double_t x){ fSignalTracksMassMax = x; }
|
43 |
|
|
void SetIsoTrackPtSumMax(Double_t x) { fIsoTrackPtSumMax = x; }
|
44 |
ceballos |
1.2 |
void SetEnergyFractionEmMax(Double_t x){ fEnergyFractionEmMax = x; }
|
45 |
ceballos |
1.1 |
|
46 |
|
|
protected:
|
47 |
|
|
void Process();
|
48 |
|
|
void SlaveBegin();
|
49 |
|
|
|
50 |
|
|
TString fCaloTausName; //name of Tau collection (input)
|
51 |
|
|
const CaloTauCol *fCaloTaus; //!Tau branch
|
52 |
|
|
TString fGoodTausName; //name of exported "good Tau" collection
|
53 |
|
|
Double_t fTauPtMin; //min pt cut
|
54 |
|
|
Double_t fTauJetPtMin; //min jet pt cut
|
55 |
|
|
UInt_t fNSignalTracksMax; //maximum of signal tracks
|
56 |
|
|
UInt_t fNIsoTracksMax; //maximum of iso tracks
|
57 |
|
|
Double_t fSignalTracksMassMax; //maximum of mass for signal tracks
|
58 |
|
|
Double_t fIsoTrackPtSumMax; //maximum of Pt iso tracks
|
59 |
ceballos |
1.2 |
Double_t fEnergyFractionEmMax; //maximum of EnergyFractionEm
|
60 |
ceballos |
1.1 |
|
61 |
|
|
ClassDef(TauIDMod, 1) // Tau identification module
|
62 |
|
|
};
|
63 |
|
|
}
|
64 |
|
|
#endif
|