DESY Hbb Analysis Framework
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 
9 
10 
11 //
12 // class declaration
13 //
14 
15 using namespace analysis;
16 using namespace analysis::tools;
17 
18 //
19 // constructors and destructor
20 //
22 {
23 }
24 MET::MET(const float & px, const float & py, const float & pz) : Candidate(px,py,pz)
25 {
26 }
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 }
float gen_p_[3]
Definition: MET.h:56
float py() const
returns the y component of the momentum
Definition: Candidate.cc:131
matrix< float > significanceMatrix()
Definition: MET.cc:39
float px() const
returns the x component of the momentum
Definition: Candidate.cc:130
float pz() const
returns the z component of the momentum
Definition: Candidate.cc:132
float * genP()
Definition: MET.cc:44
matrix< float > sig_
Definition: MET.h:55