Main Page
Namespaces
Classes
Package Documentation
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
23
public
:
25
METzCalculator
();
26
//METzCalculator(const edm::ParameterSEt& iConf);
28
virtual
~METzCalculator
();
30
void
SetMET
(
const
pat::MET
&
MET
) {
MET_
=
MET
; } ;
31
void
SetMET
(
const
TLorentzVector&
MET
) {
32
pat::Particle::LorentzVector
p
(MET.Px(),MET.Py(),MET.Pz(),MET.E());
33
MET_
.
setP4
(
p
);
34
}
36
void
SetMuon
(
const
pat::Particle
&lepton) {
lepton_
= lepton; };
37
void
SetMuon
(
const
TLorentzVector& lepton) {
38
pat::Particle::LorentzVector
p
(lepton.Px(), lepton.Py(), lepton.Pz(), lepton.E() );
39
lepton_
.
setP4
(
p
);
40
}
52
double
Calculate
(
int
type
= 0);
54
bool
IsComplex
()
const
{
return
isComplex_
; };
55
56
void
Print
() {
57
std::cout
<<
" METzCalculator: pxmu = "
<<
lepton_
.
px
() <<
" pzmu= "
<<
lepton_
.
pz
() << std::endl;
58
std::cout
<<
" METzCalculator: pxnu = "
<<
MET_
.
px
() <<
" pynu= "
<<
MET_
.
py
() << std::endl;
59
}
60
61
private
:
62
63
bool
isComplex_
;
64
pat::Particle
lepton_
;
65
pat::MET
MET_
;
66
67
};
68
69
#endif
type
type
Definition:
HCALResponse.h:21
pat::MET
Analysis-level MET class.
Definition:
MET.h:40
AlCaHLTBitMon_ParallelJobs.p
p
Definition:
AlCaHLTBitMon_ParallelJobs.py:153
reco::LeafCandidate::px
double px() const final
x coordinate of momentum vector
Definition:
LeafCandidate.h:125
METzCalculator::SetMET
void SetMET(const TLorentzVector &MET)
Definition:
METzCalculator.h:31
METzCalculator::lepton_
pat::Particle lepton_
Definition:
METzCalculator.h:64
METzCalculator::SetMET
void SetMET(const pat::MET &MET)
Set MET.
Definition:
METzCalculator.h:30
reco::LeafCandidate::pz
double pz() const final
z coordinate of momentum vector
Definition:
LeafCandidate.h:129
MET.h
METzCalculator::SetMuon
void SetMuon(const pat::Particle &lepton)
Set Muon.
Definition:
METzCalculator.h:36
METzCalculator::~METzCalculator
virtual ~METzCalculator()
destructor
Definition:
METzCalculator.cc:11
METzCalculator::Print
void Print()
Definition:
METzCalculator.h:56
METzCalculator::MET_
pat::MET MET_
Definition:
METzCalculator.h:65
nanoDQM_cfi.MET
MET
Definition:
nanoDQM_cfi.py:468
METzCalculator
Definition:
METzCalculator.h:21
METzCalculator::METzCalculator
METzCalculator()
constructor
Definition:
METzCalculator.cc:6
METzCalculator::IsComplex
bool IsComplex() const
check for complex root
Definition:
METzCalculator.h:54
MET
METzCalculator::isComplex_
bool isComplex_
Definition:
METzCalculator.h:63
pat::Particle
Analysis-level particle class.
Definition:
Particle.h:32
METzCalculator::Calculate
double Calculate(int type=0)
member functions
Definition:
METzCalculator.cc:16
reco::LeafCandidate::py
double py() const final
y coordinate of momentum vector
Definition:
LeafCandidate.h:127
reco::Candidate::LorentzVector
math::XYZTLorentzVector LorentzVector
Lorentz vector.
Definition:
Candidate.h:37
METzCalculator::SetMuon
void SetMuon(const TLorentzVector &lepton)
Definition:
METzCalculator.h:37
gather_cfg.cout
cout
Definition:
gather_cfg.py:144
reco::LeafCandidate::setP4
void setP4(const LorentzVector &p4) final
set 4-momentum
Definition:
LeafCandidate.h:143
Particle.h
Generated for CMSSW Reference Manual by
1.8.11