CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
PuppiCandidate Class Reference

#include <PuppiCandidate.h>

Inheritance diagram for PuppiCandidate:

Public Member Functions

void _ensure_valid_eta () const
 
double eta () const
 
double pseudorapidity () const
 
int puppi_register () const
 
void set_info (int puppi_register)
 

Private Attributes

double _eta = fastjet::pseudojet_invalid_rap
 
int _puppi_register
 

Detailed Description

Definition at line 8 of file PuppiCandidate.h.

Member Function Documentation

◆ _ensure_valid_eta()

void PuppiCandidate::_ensure_valid_eta ( ) const
inline

Definition at line 16 of file PuppiCandidate.h.

16  {
17  if (_eta == fastjet::pseudojet_invalid_rap)
18  _eta = fastjet::PseudoJet::pseudorapidity();
19  }

References _eta.

Referenced by pseudorapidity().

◆ eta()

double PuppiCandidate::eta ( ) const
inline

Definition at line 15 of file PuppiCandidate.h.

15 { return pseudorapidity(); }

References pseudorapidity().

Referenced by Particle.Particle::__str__(), PuppiAlgo::add(), Jet.Jet::jetID(), and Jet.Jet::puJetId().

◆ pseudorapidity()

double PuppiCandidate::pseudorapidity ( ) const
inline

Definition at line 11 of file PuppiCandidate.h.

11  {
13  return _eta;
14  }

References _ensure_valid_eta(), and _eta.

Referenced by eta().

◆ puppi_register()

int PuppiCandidate::puppi_register ( ) const
inline

Definition at line 21 of file PuppiCandidate.h.

21 { return _puppi_register; }

References _puppi_register.

Referenced by PuppiAlgo::add(), and set_info().

◆ set_info()

void PuppiCandidate::set_info ( int  puppi_register)
inline

Definition at line 20 of file PuppiCandidate.h.

References _puppi_register, and puppi_register().

Referenced by PuppiContainer::initialize().

Member Data Documentation

◆ _eta

double PuppiCandidate::_eta = fastjet::pseudojet_invalid_rap
mutableprivate

Definition at line 25 of file PuppiCandidate.h.

Referenced by _ensure_valid_eta(), and pseudorapidity().

◆ _puppi_register

int PuppiCandidate::_puppi_register
private

Definition at line 26 of file PuppiCandidate.h.

Referenced by puppi_register(), and set_info().

PuppiCandidate::pseudorapidity
double pseudorapidity() const
Definition: PuppiCandidate.h:11
PuppiCandidate::_puppi_register
int _puppi_register
Definition: PuppiCandidate.h:26
PuppiCandidate::puppi_register
int puppi_register() const
Definition: PuppiCandidate.h:21
PuppiCandidate::_eta
double _eta
Definition: PuppiCandidate.h:25
PuppiCandidate::_ensure_valid_eta
void _ensure_valid_eta() const
Definition: PuppiCandidate.h:16