TopQuarkAnalysis
TopPairBSM
src
METzCalculator.h
Go to the documentation of this file.
1
#ifndef METzCalculator_h
2
#define METzCalculator_h
3
13
//#include "FWCore/Framework/interface/Event.h"
14
//#include "FWCore/ParameterSet/interface/ParameterSet.h"
15
16
#include "
DataFormats/PatCandidates/interface/Particle.h
"
17
#include "
DataFormats/PatCandidates/interface/MET.h
"
18
19
#include "TLorentzVector.h"
20
21
class
METzCalculator
{
22
public
:
24
METzCalculator
();
25
//METzCalculator(const edm::ParameterSEt& iConf);
27
virtual
~METzCalculator
();
29
void
SetMET
(
const
pat::MET
&
MET
) {
MET_
=
MET
; };
30
void
SetMET
(
const
TLorentzVector&
MET
) {
31
pat::Particle::LorentzVector
p
(
MET
.Px(),
MET
.Py(),
MET
.Pz(),
MET
.E());
32
MET_
.
setP4
(
p
);
33
}
35
void
SetMuon
(
const
pat::Particle
& lepton) {
lepton_
= lepton; };
36
void
SetMuon
(
const
TLorentzVector& lepton) {
37
pat::Particle::LorentzVector
p
(lepton.Px(), lepton.Py(), lepton.Pz(), lepton.E());
38
lepton_
.
setP4
(
p
);
39
}
51
double
Calculate
(
int
type
= 0);
53
bool
IsComplex
()
const
{
return
isComplex_
; };
54
55
void
Print
() {
56
std::cout
<<
" METzCalculator: pxmu = "
<<
lepton_
.
px
() <<
" pzmu= "
<<
lepton_
.
pz
() << std::endl;
57
std::cout
<<
" METzCalculator: pxnu = "
<<
MET_
.
px
() <<
" pynu= "
<<
MET_
.
py
() << std::endl;
58
}
59
60
private
:
61
bool
isComplex_
;
62
pat::Particle
lepton_
;
63
pat::MET
MET_
;
64
};
65
66
#endif
METzCalculator::Print
void Print()
Definition:
METzCalculator.h:55
AlCaHLTBitMon_ParallelJobs.p
p
Definition:
AlCaHLTBitMon_ParallelJobs.py:153
gather_cfg.cout
cout
Definition:
gather_cfg.py:144
METzCalculator::isComplex_
bool isComplex_
Definition:
METzCalculator.h:61
METzCalculator::MET_
pat::MET MET_
Definition:
METzCalculator.h:63
METzCalculator::~METzCalculator
virtual ~METzCalculator()
destructor
Definition:
METzCalculator.cc:9
reco::LeafCandidate::py
double py() const final
y coordinate of momentum vector
Definition:
LeafCandidate.h:142
METzCalculator::SetMET
void SetMET(const TLorentzVector &MET)
Definition:
METzCalculator.h:30
METzCalculator::SetMuon
void SetMuon(const TLorentzVector &lepton)
Definition:
METzCalculator.h:36
type
type
Definition:
SiPixelVCal_PayloadInspector.cc:37
METzCalculator::Calculate
double Calculate(int type=0)
member functions
Definition:
METzCalculator.cc:12
pat::MET
Analysis-level MET class.
Definition:
MET.h:40
MET.h
METzCalculator::METzCalculator
METzCalculator()
constructor
Definition:
METzCalculator.cc:6
reco::LeafCandidate::setP4
void setP4(const LorentzVector &p4) final
set 4-momentum
Definition:
LeafCandidate.h:158
METzCalculator::IsComplex
bool IsComplex() const
check for complex root
Definition:
METzCalculator.h:53
MET
METzCalculator::lepton_
pat::Particle lepton_
Definition:
METzCalculator.h:62
reco::Candidate::LorentzVector
math::XYZTLorentzVector LorentzVector
Lorentz vector.
Definition:
Candidate.h:36
Particle.h
reco::LeafCandidate::px
double px() const final
x coordinate of momentum vector
Definition:
LeafCandidate.h:140
METzCalculator::SetMET
void SetMET(const pat::MET &MET)
Set MET.
Definition:
METzCalculator.h:29
reco::LeafCandidate::pz
double pz() const final
z coordinate of momentum vector
Definition:
LeafCandidate.h:144
HLTTauDQMOffline_cfi.MET
MET
Definition:
HLTTauDQMOffline_cfi.py:64
METzCalculator
Definition:
METzCalculator.h:21
pat::Particle
Analysis-level particle class.
Definition:
Particle.h:30
METzCalculator::SetMuon
void SetMuon(const pat::Particle &lepton)
Set Muon.
Definition:
METzCalculator.h:35
Generated for CMSSW Reference Manual by
1.8.16