DESY Hbb Analysis Framework
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
Analysis
Tools
src
MET.cc
Go to the documentation of this file.
1
// system include files
2
//
3
// user include files
4
#include "FWCore/Framework/interface/Event.h"
5
//
6
#include "FWCore/ParameterSet/interface/ParameterSet.h"
7
8
#include "
Analysis/Tools/interface/MET.h
"
9
10
11
//
12
// class declaration
13
//
14
15
using namespace
analysis
;
16
using namespace
analysis::tools
;
17
18
//
19
// constructors and destructor
20
//
21
MET::MET
() :
Candidate
()
22
{
23
}
24
MET::MET
(
const
float
&
px
,
const
float
&
py
,
const
float
&
pz
) :
Candidate
(px,py,pz)
25
{
26
}
27
MET::~MET
()
28
{
29
// do anything here that needs to be done at desctruction time
30
// (e.g. close files, deallocate resources etc.)
31
}
32
33
34
//
35
// member functions
36
//
37
38
// ------------ methods ------------
39
matrix<float>
MET::significanceMatrix
()
40
{
41
return
sig_
;
42
}
43
44
float
*
MET::genP
()
45
{
46
return
gen_p_
;
47
}
48
49
void
MET::significanceMatrix
(
const
float
& xx,
const
float
& xy,
const
float
& yx,
const
float
& yy)
50
{
51
sig_
.resize(2,2);
52
sig_
(0,0) = xx;
53
sig_
(0,1) = xy;
54
sig_
(1,0) = yx;
55
sig_
(1,1) = yy;
56
}
57
58
void
MET::genP
(
const
float
&
px
,
const
float
&
py
,
const
float
&
pz
)
59
{
60
gen_p_
[0] =
px
;
61
gen_p_
[1] =
py
;
62
gen_p_
[2] =
pz
;
63
}
MET.h
analysis::tools::MET::gen_p_
float gen_p_[3]
Definition:
MET.h:56
analysis::tools::MET::~MET
~MET()
Definition:
MET.cc:27
analysis::tools::MET::MET
MET()
Definition:
MET.cc:21
analysis
Definition:
MssmHbbAnalyser.h:35
analysis::tools
Definition:
Analyser.h:38
analysis::tools::Candidate::py
float py() const
returns the y component of the momentum
Definition:
Candidate.cc:131
analysis::tools::Candidate
Definition:
Candidate.h:37
analysis::tools::MET::significanceMatrix
matrix< float > significanceMatrix()
Definition:
MET.cc:39
analysis::tools::Candidate::px
float px() const
returns the x component of the momentum
Definition:
Candidate.cc:130
analysis::tools::Candidate::pz
float pz() const
returns the z component of the momentum
Definition:
Candidate.cc:132
analysis::tools::MET::genP
float * genP()
Definition:
MET.cc:44
analysis::tools::MET::sig_
matrix< float > sig_
Definition:
MET.h:55
Generated by
1.8.11