Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
TopQuarkAnalysis
TopPairBSM
interface
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
(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
(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:22
pat::MET
Analysis-level MET class.
Definition:
MET.h:42
METzCalculator::SetMuon
void SetMuon(TLorentzVector lepton)
Definition:
METzCalculator.h:37
reco::LeafCandidate::setP4
virtual void setP4(const LorentzVector &p4)
set 4-momentum
Definition:
LeafCandidate.h:149
METzCalculator::lepton_
pat::Particle lepton_
Definition:
METzCalculator.h:64
METzCalculator::SetMET
void SetMET(const pat::MET &MET)
Set MET.
Definition:
METzCalculator.h:30
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
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
reco::LeafCandidate::px
virtual double px() const
x coordinate of momentum vector
Definition:
LeafCandidate.h:131
METzCalculator::isComplex_
bool isComplex_
Definition:
METzCalculator.h:63
pat::Particle
Analysis-level particle class.
Definition:
Particle.h:34
METzCalculator::Calculate
double Calculate(int type=0)
member functions
Definition:
METzCalculator.cc:16
reco::LeafCandidate::pz
virtual double pz() const
z coordinate of momentum vector
Definition:
LeafCandidate.h:135
reco::Candidate::LorentzVector
math::XYZTLorentzVector LorentzVector
Lorentz vector.
Definition:
Candidate.h:38
METzCalculator::SetMET
void SetMET(TLorentzVector MET)
Definition:
METzCalculator.h:31
AlCaHLTBitMon_ParallelJobs.p
tuple p
Definition:
AlCaHLTBitMon_ParallelJobs.py:152
gather_cfg.cout
tuple cout
Definition:
gather_cfg.py:121
reco::LeafCandidate::py
virtual double py() const
y coordinate of momentum vector
Definition:
LeafCandidate.h:133
Particle.h
Generated for CMSSW Reference Manual by
1.8.5