9 |
|
#ifndef MITPHYSICS_UTILS_METTOOLS_H |
10 |
|
#define MITPHYSICS_UTILS_METTOOLS_H |
11 |
|
|
12 |
+ |
#include "MitAna/DataTree/interface/ParticleCol.h" |
13 |
|
#include "MitAna/DataTree/interface/MetCol.h" |
14 |
|
#include "MitAna/DataTree/interface/VertexCol.h" |
15 |
|
#include "MitAna/DataTree/interface/MuonCol.h" |
43 |
|
|
44 |
|
~MetTools() {} |
45 |
|
|
46 |
< |
Met GetCorrectedMet() { return fCorrectedMet; } |
47 |
< |
Met GetMinimumMet(const Met *UncorrectedMet); |
48 |
< |
Met GetCorrectedTrackMet() { return fCorrectedTrackMet; } |
49 |
< |
Met GetMinimumTrackMet(const Met *UncorrectedMet); |
46 |
> |
void AddToCorrectedTrackMet ( const Particle *p, bool debug = false); |
47 |
> |
void AddToCorrectedMet ( const Particle *p ); |
48 |
> |
void AddToRecoil ( const Particle *p ); |
49 |
> |
void RemoveParticleInIsoConeFromTrackMet ( const Particle *p, |
50 |
> |
const PFCandidateCol *fPFCandidates, |
51 |
> |
const Vertex *fVertex, float deltaZCut, |
52 |
> |
float deltaR, bool debug = false ); |
53 |
> |
void RemoveParticleInIsoConeFromCorrectedMet ( const Particle *p, |
54 |
> |
const PFCandidateCol *fPFCandidates, |
55 |
> |
const Vertex *fVertex, |
56 |
> |
float deltaZCut, float ptCut, float etaCut, |
57 |
> |
float deltaR); |
58 |
> |
void RemoveParticleInIsoConeFromRecoil ( const Particle *p, |
59 |
> |
const PFCandidateCol *fPFCandidates, |
60 |
> |
const Vertex *fVertex, |
61 |
> |
float deltaZCut, float ptCut, float etaCut, |
62 |
> |
float deltaR); |
63 |
> |
Met GetMinimumMet (const Met *UncorrectedMet); |
64 |
> |
Met GetMinimumTrackMet (const Met *UncorrectedMet); |
65 |
> |
Met GetCorrectedMet() { return fCorrectedMet; } |
66 |
> |
Met GetCorrectedTrackMet() { return fCorrectedTrackMet; } |
67 |
> |
FourVectorM Recoil() { return fRecoil; } |
68 |
> |
FourVectorM ChargedRecoil() { return fChargedRecoil; } |
69 |
|
|
70 |
|
template<class V> |
71 |
|
double GetProjectedMet(const V *fV, const Met *UncorrectedMet); |
77 |
|
private: |
78 |
|
Met fCorrectedMet; |
79 |
|
Met fCorrectedTrackMet; |
80 |
+ |
FourVectorM fRecoil; |
81 |
+ |
FourVectorM fChargedRecoil; |
82 |
|
|
83 |
|
ClassDef(MetTools, 0) // Met tools |
84 |
|
}; |