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

#include <L1TMuon.h>

Inheritance diagram for analysis::tools::L1TMuon:
analysis::tools::Candidate

Public Member Functions

float etaAtVtx () const
 
void etaAtVtx (const float &etaAtVtx)
 
int hwQual () const
 
void hwQual (const int &hwQual)
 
 L1TMuon ()
 default constructor More...
 
 L1TMuon (const float &pt, const float &eta, const float &phi, const float &e, const float &q)
 constructor from 4-momentum information More...
 
float phiAtVtx () const
 
void phiAtVtx (const float &phiAtVtx)
 
 ~L1TMuon ()
 destructor More...
 
- 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...
 

Protected Attributes

float etaAtVtx_
 
int hwQual_
 
float phiAtVtx_
 
- 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 34 of file L1TMuon.h.

Constructor & Destructor Documentation

L1TMuon::L1TMuon ( )

default constructor

Definition at line 21 of file L1TMuon.cc.

21  : Candidate()
22 {
23 }
Candidate()
default constructor
Definition: Candidate.cc:18
L1TMuon::L1TMuon ( const float &  pt,
const float &  eta,
const float &  phi,
const float &  e,
const float &  q 
)

constructor from 4-momentum information

Definition at line 24 of file L1TMuon.cc.

24  :
26 {
27 }
Candidate()
default constructor
Definition: Candidate.cc:18
float eta() const
returns the pseudorapidity
Definition: Candidate.cc:134
float e() const
returns the energy
Definition: Candidate.cc:136
float phi() const
returns the azimuthal angle
Definition: Candidate.cc:135
float pt() const
returns the transverse momentum
Definition: Candidate.cc:133
int q() const
returns the charge
Definition: Candidate.cc:139
L1TMuon::~L1TMuon ( )

destructor

Definition at line 28 of file L1TMuon.cc.

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

Member Function Documentation

float L1TMuon::etaAtVtx ( ) const

Definition at line 43 of file L1TMuon.cc.

References etaAtVtx_.

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

43 { return etaAtVtx_; }
void L1TMuon::etaAtVtx ( const float &  etaAtVtx)

Definition at line 49 of file L1TMuon.cc.

References etaAtVtx(), and etaAtVtx_.

49 { etaAtVtx_ = etaAtVtx; }
float etaAtVtx() const
Definition: L1TMuon.cc:43
int L1TMuon::hwQual ( ) const

Definition at line 42 of file L1TMuon.cc.

References hwQual_.

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

42 { return hwQual_ ; }
void L1TMuon::hwQual ( const int &  hwQual)

Definition at line 48 of file L1TMuon.cc.

References hwQual(), and hwQual_.

48 { hwQual_ = hwQual ; }
int hwQual() const
Definition: L1TMuon.cc:42
float L1TMuon::phiAtVtx ( ) const

Definition at line 44 of file L1TMuon.cc.

References phiAtVtx_.

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

44 { return phiAtVtx_; }
void L1TMuon::phiAtVtx ( const float &  phiAtVtx)

Definition at line 50 of file L1TMuon.cc.

References phiAtVtx(), and phiAtVtx_.

50 { phiAtVtx_ = phiAtVtx; }
float phiAtVtx() const
Definition: L1TMuon.cc:44

Member Data Documentation

float analysis::tools::L1TMuon::etaAtVtx_
protected

Definition at line 56 of file L1TMuon.h.

Referenced by etaAtVtx().

int analysis::tools::L1TMuon::hwQual_
protected

Definition at line 55 of file L1TMuon.h.

Referenced by hwQual().

float analysis::tools::L1TMuon::phiAtVtx_
protected

Definition at line 57 of file L1TMuon.h.

Referenced by phiAtVtx().


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