DESY Hbb Analysis Framework
Public Member Functions | Private Attributes | List of all members
analysis::tools::MET Class Reference

#include <MET.h>

Inheritance diagram for analysis::tools::MET:
analysis::tools::Candidate

Public Member Functions

float * genP ()
 
void genP (const float &, const float &, const float &)
 
 MET ()
 
 MET (const float &px, const float &py, const float &pz)
 
matrix< float > significanceMatrix ()
 
void significanceMatrix (const float &, const float &, const float &, const float &)
 
 ~MET ()
 
- Public Member Functions inherited from analysis::tools::Candidate
 Candidate ()
 default constructor More...
 
 Candidate (const float &pt, const float &eta, const float &phi, const float &e, const float &q)
 constructor from 4-momentum information More...
 
 Candidate (const float &px, const float &py, const float &pz)
 constructor from 3-momentum information More...
 
 Candidate (const float &px, const float &py, const float &pz, const float &q)
 constructor from 3-momentum and charge information More...
 
float deltaPhi (const Candidate &) const
 returns the deltaPhi between this and another candidate More...
 
float deltaR (const Candidate &) const
 returns the deltaR between this and another candidate More...
 
float e () const
 returns the energy More...
 
void e (const float &)
 sets the energy More...
 
float eta () const
 returns the pseudorapidity More...
 
float m () const
 returns the mass More...
 
float mass () const
 returns the mass More...
 
const Candidatematched (const std::string &name)
 returns the pointer to the matched candidate object More...
 
const Candidatematched (const std::string &name) const
 returns the pointer to the matched candidate object More...
 
virtual bool matchTo (const std::vector< Candidate > *cands, const std::string &name, const float &deltaR=0.5)
 function to match this candidate to another object from a list of pointers with a name More...
 
virtual bool matchTo (const std::vector< Candidate > *cands, const std::string &name, const float &delta_pT, const float &deltaR)
 
TVector3 p3 () const
 returns the 4-momentum (TVector3) More...
 
TLorentzVector p4 () const
 returns the 4-momentum (TLorentzVector) More...
 
void p4 (const TLorentzVector &)
 sets the 4-momentum (TLorentzVector) More...
 
float phi () const
 returns the azimuthal angle More...
 
float pt () const
 returns the transverse momentum More...
 
float px () const
 returns the x component of the momentum More...
 
void px (const float &)
 sets the x component of the momentum More...
 
float py () const
 returns the y component of the momentum More...
 
void py (const float &)
 sets the y component of the momentum More...
 
float pz () const
 returns the z component of the momentum More...
 
void pz (const float &)
 sets the z component of the momentum More...
 
int q () const
 returns the charge More...
 
void q (const float &)
 sets the charge More...
 
void unmatch (const std::string &)
 unmatch a matched candidate object, i.e. set it to nullptr, useful to remove possible duplicated matching More...
 
virtual ~Candidate ()
 destructor More...
 

Private Attributes

float gen_p_ [3]
 
matrix< float > sig_
 

Additional Inherited Members

- Protected Attributes inherited from analysis::tools::Candidate
std::map< std::string, const Candidate * > matched_
 map of matched candidates More...
 
TLorentzVector p4_
 the 4-momentum More...
 
float q_
 the charge More...
 

Detailed Description

Definition at line 37 of file MET.h.

Constructor & Destructor Documentation

MET::MET ( )

Definition at line 21 of file MET.cc.

21  : Candidate()
22 {
23 }
Candidate()
default constructor
Definition: Candidate.cc:18
MET::MET ( const float &  px,
const float &  py,
const float &  pz 
)

Definition at line 24 of file MET.cc.

24  : Candidate(px,py,pz)
25 {
26 }
Candidate()
default constructor
Definition: Candidate.cc:18
float py() const
returns the y component of the momentum
Definition: Candidate.cc:131
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
MET::~MET ( )

Definition at line 27 of file MET.cc.

28 {
29  // do anything here that needs to be done at desctruction time
30  // (e.g. close files, deallocate resources etc.)
31 }

Member Function Documentation

float * MET::genP ( )

Definition at line 44 of file MET.cc.

References gen_p_.

Referenced by analysis::tools::PhysicsObjectTree< Object >::collection().

45 {
46  return gen_p_;
47 }
float gen_p_[3]
Definition: MET.h:56
void MET::genP ( const float &  px,
const float &  py,
const float &  pz 
)

Definition at line 58 of file MET.cc.

References gen_p_, analysis::tools::Candidate::px(), analysis::tools::Candidate::py(), and analysis::tools::Candidate::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
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
matrix< float > MET::significanceMatrix ( )

Definition at line 39 of file MET.cc.

References sig_.

Referenced by analysis::tools::PhysicsObjectTree< Object >::collection().

40 {
41  return sig_;
42 }
matrix< float > sig_
Definition: MET.h:55
void MET::significanceMatrix ( const float &  xx,
const float &  xy,
const float &  yx,
const float &  yy 
)

Definition at line 49 of file MET.cc.

References sig_.

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 }
matrix< float > sig_
Definition: MET.h:55

Member Data Documentation

float analysis::tools::MET::gen_p_[3]
private

Definition at line 56 of file MET.h.

Referenced by genP().

matrix<float> analysis::tools::MET::sig_
private

Definition at line 55 of file MET.h.

Referenced by significanceMatrix().


The documentation for this class was generated from the following files: