1 |
pharris |
1.1 |
#ifndef MITPHYSICS_UTILS_METLEPTONTOOLS_H
|
2 |
|
|
#define MITPHYSICS_UTILS_METLEPTONTOOLS_H
|
3 |
|
|
|
4 |
|
|
#include <TMatrixD.h>
|
5 |
|
|
#include "MitAna/DataTree/interface/PFJetFwd.h"
|
6 |
|
|
#include "MitAna/DataTree/interface/VertexFwd.h"
|
7 |
|
|
#include "MitAna/DataTree/interface/TrackFwd.h"
|
8 |
|
|
#include "MitAna/DataTree/interface/MuonCol.h"
|
9 |
|
|
#include "MitAna/DataTree/interface/PFTauCol.h"
|
10 |
|
|
#include "MitAna/DataTree/interface/ElectronCol.h"
|
11 |
pharris |
1.3 |
#include "MitAna/DataTree/interface/PhotonCol.h"
|
12 |
pharris |
1.1 |
#include "MitAna/DataTree/interface/Met.h"
|
13 |
|
|
#include "MitAna/DataTree/interface/PFMet.h"
|
14 |
|
|
#include "MitAna/DataTree/interface/PFMetCol.h"
|
15 |
|
|
#include "MitAna/DataTree/interface/PFJet.h"
|
16 |
|
|
#include "MitAna/DataTree/interface/PFJetCol.h"
|
17 |
|
|
#include "MitAna/DataTree/interface/PFCandidateCol.h"
|
18 |
|
|
#include "MitAna/DataTree/interface/PileupEnergyDensityCol.h"
|
19 |
pharris |
1.2 |
#include "MitPhysics/Utils/interface/TauIsoMVA.h"
|
20 |
pharris |
1.1 |
#include "MitCommon/MathTools/interface/MathUtils.h"
|
21 |
|
|
|
22 |
|
|
#include <TVector3.h>
|
23 |
|
|
#include <TLorentzVector.h>
|
24 |
|
|
|
25 |
|
|
namespace mithep {
|
26 |
|
|
class MetLeptonTools {
|
27 |
|
|
public:
|
28 |
pharris |
1.2 |
MetLeptonTools();
|
29 |
pharris |
1.1 |
virtual ~MetLeptonTools() {}
|
30 |
pharris |
1.2 |
TauIsoMVA *fTauIsoMVA;
|
31 |
|
|
bool looseTauId(const PFTau *iTau,const PileupEnergyDensityCol* iPUEnergyDensity);
|
32 |
pharris |
1.1 |
static bool looseEleId(const Electron *iElectron,const PileupEnergyDensityCol* iPUEnergyDensity,
|
33 |
|
|
const PFCandidateCol *iCands,const Vertex *iPV,const VertexCol *iVertices);
|
34 |
|
|
static bool looseMuId(const Muon *iMu,const PFCandidateCol *iCands,const Vertex *iPV,const VertexCol *iVertices);
|
35 |
pharris |
1.3 |
static bool loosePhotonId(const Photon *iPhoton);
|
36 |
pharris |
1.1 |
static double vis(const PFTau *iTau);
|
37 |
|
|
static Float_t PFIsolation(const ChargedParticle *iLep,const PFCandidateCol *iCands);
|
38 |
|
|
static Float_t isoPV(const ChargedParticle *iLep,const PFCandidateCol *iCands,
|
39 |
|
|
const Vertex *iPV,const VertexCol *iVertices,bool iEle=false);
|
40 |
|
|
};
|
41 |
|
|
}
|
42 |
|
|
#endif
|