CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions | Static Public Attributes | Private Attributes
l1t::L1GTScales Class Reference

#include <L1GTScales.h>

Public Member Functions

double beta_lsb () const
 
double eta_lsb () const
 
double isolationPT_lsb () const
 
 L1GTScales (double pT_lsb, double phi_lsb, double eta_lsb, double z0_lsb, double isolationPT_lsb, double beta_lsb, double mass_lsb, double seed_pT_lsb, double seed_dZ_lsb, double scalarSumPT_lsb, double sum_pT_pv_lsb, int pos_chg, int neg_chg)
 
 L1GTScales (const edm::ParameterSet &)
 
double mass_lsb () const
 
int neg_chg () const
 
double phi_lsb () const
 
int pos_chg () const
 
double pT_lsb () const
 
double scalarSumPT_lsb () const
 
double seed_pT_lsb () const
 
double seed_z0_lsb () const
 
double sum_pT_pv_lsb () const
 
int to_chg (int value) const
 
double to_eta (int value) const
 
int to_hw_beta_ceil (double value) const
 
int to_hw_beta_floor (double value) const
 
int to_hw_dRSquared_ceil (double value) const
 
int to_hw_dRSquared_floor (double value) const
 
int to_hw_eta_ceil (double value) const
 
int to_hw_eta_floor (double value) const
 
double to_hw_InvMassSqrDiv2 (double value) const
 
double to_hw_InvMassSqrOver2DR (double value) const
 
int to_hw_isolationPT_ceil (double value) const
 
int to_hw_isolationPT_floor (double value) const
 
int to_hw_mass_ceil (double value) const
 
int to_hw_mass_floor (double value) const
 
int to_hw_phi_ceil (double value) const
 
int to_hw_phi_floor (double value) const
 
int to_hw_pT_ceil (double value) const
 
int to_hw_pT_floor (double value) const
 
double to_hw_PtSquared (double value) const
 
int to_hw_relative_isolationPT_ceil (double value) const
 
int to_hw_relative_isolationPT_floor (double value) const
 
int to_hw_scalarSumPT_ceil (double value) const
 
int to_hw_scalarSumPT_floor (double value) const
 
int to_hw_seed_pT_ceil (double value) const
 
int to_hw_seed_pT_floor (double value) const
 
int to_hw_seed_z0_ceil (double value) const
 
int to_hw_seed_z0_floor (double value) const
 
int to_hw_sum_pT_pv_ceil (double value) const
 
int to_hw_sum_pT_pv_floor (double value) const
 
double to_hw_TransMassSqrDiv2 (double value) const
 
int to_hw_z0_ceil (double value) const
 
int to_hw_z0_floor (double value) const
 
double to_isolationPT (int value) const
 
double to_phi (int value) const
 
double to_pT (int value) const
 
double to_scalarSumPT (int value) const
 
double to_z0 (int value) const
 
double z0_lsb () const
 

Static Public Member Functions

static void fillPSetDescription (edm::ParameterSetDescription &)
 

Static Public Attributes

static constexpr int INV_MASS_SQR_OVER_2_DR_SQR_RESOLUTION = 19
 
static constexpr int RELATIVE_ISOLATION_RESOLUTION = 18
 

Private Attributes

const double beta_lsb_
 
const double eta_lsb_
 
const double isolationPT_lsb_
 
const double mass_lsb_
 
const int neg_chg_
 
const double phi_lsb_
 
const int pos_chg_
 
const double pT_lsb_
 
const double scalarSumPT_lsb_
 
const double seed_pT_lsb_
 
const double seed_z0_lsb_
 
const double sum_pT_pv_lsb_
 
const double z0_lsb_
 

Detailed Description

Definition at line 10 of file L1GTScales.h.

Constructor & Destructor Documentation

◆ L1GTScales() [1/2]

l1t::L1GTScales::L1GTScales ( double  pT_lsb,
double  phi_lsb,
double  eta_lsb,
double  z0_lsb,
double  isolationPT_lsb,
double  beta_lsb,
double  mass_lsb,
double  seed_pT_lsb,
double  seed_dZ_lsb,
double  scalarSumPT_lsb,
double  sum_pT_pv_lsb,
int  pos_chg,
int  neg_chg 
)

Definition at line 8 of file L1GTScales.cc.

22  : pT_lsb_(pT_lsb),
25  z0_lsb_(z0_lsb),
26  //d0_lsb_(d0_lsb),
35  neg_chg_(neg_chg) {}
double beta_lsb() const
Definition: L1GTScales.h:95
double eta_lsb() const
Definition: L1GTScales.h:91
double pT_lsb() const
Definition: L1GTScales.h:89
double phi_lsb() const
Definition: L1GTScales.h:90
const double seed_z0_lsb_
Definition: L1GTScales.h:114
const double seed_pT_lsb_
Definition: L1GTScales.h:113
const double eta_lsb_
Definition: L1GTScales.h:107
int pos_chg() const
Definition: L1GTScales.h:101
double mass_lsb() const
Definition: L1GTScales.h:96
const double isolationPT_lsb_
Definition: L1GTScales.h:110
const int neg_chg_
Definition: L1GTScales.h:118
const double phi_lsb_
Definition: L1GTScales.h:106
int neg_chg() const
Definition: L1GTScales.h:102
const int pos_chg_
Definition: L1GTScales.h:117
const double sum_pT_pv_lsb_
Definition: L1GTScales.h:116
const double mass_lsb_
Definition: L1GTScales.h:112
double scalarSumPT_lsb() const
Definition: L1GTScales.h:99
const double scalarSumPT_lsb_
Definition: L1GTScales.h:115
const double beta_lsb_
Definition: L1GTScales.h:111
double sum_pT_pv_lsb() const
Definition: L1GTScales.h:100
double seed_pT_lsb() const
Definition: L1GTScales.h:97
double seed_z0_lsb() const
Definition: L1GTScales.h:98
const double pT_lsb_
Definition: L1GTScales.h:105
const double z0_lsb_
Definition: L1GTScales.h:108
double z0_lsb() const
Definition: L1GTScales.h:92
double isolationPT_lsb() const
Definition: L1GTScales.h:93

◆ L1GTScales() [2/2]

l1t::L1GTScales::L1GTScales ( const edm::ParameterSet config)

Definition at line 37 of file L1GTScales.cc.

38  : pT_lsb_(config.getParameter<double>("pT_lsb")),
39  phi_lsb_(config.getParameter<double>("phi_lsb")),
40  eta_lsb_(config.getParameter<double>("eta_lsb")),
41  z0_lsb_(config.getParameter<double>("z0_lsb")),
42  //d0_lsb_(config.getParameter<double>("d0_lsb")),
43  isolationPT_lsb_(config.getParameter<double>("isolationPT_lsb")),
44  beta_lsb_(config.getParameter<double>("beta_lsb")),
45  mass_lsb_(config.getParameter<double>("mass_lsb")),
46  seed_pT_lsb_(config.getParameter<double>("seed_pT_lsb")),
47  seed_z0_lsb_(config.getParameter<double>("seed_z0_lsb")),
48  scalarSumPT_lsb_(config.getParameter<double>("scalarSumPT_lsb")),
49  sum_pT_pv_lsb_(config.getParameter<double>("sum_pT_pv_lsb")),
50  pos_chg_(config.getParameter<int>("pos_chg")),
51  neg_chg_(config.getParameter<int>("neg_chg")) {}
const double seed_z0_lsb_
Definition: L1GTScales.h:114
const double seed_pT_lsb_
Definition: L1GTScales.h:113
const double eta_lsb_
Definition: L1GTScales.h:107
Definition: config.py:1
const double isolationPT_lsb_
Definition: L1GTScales.h:110
const int neg_chg_
Definition: L1GTScales.h:118
const double phi_lsb_
Definition: L1GTScales.h:106
const int pos_chg_
Definition: L1GTScales.h:117
const double sum_pT_pv_lsb_
Definition: L1GTScales.h:116
const double mass_lsb_
Definition: L1GTScales.h:112
const double scalarSumPT_lsb_
Definition: L1GTScales.h:115
const double beta_lsb_
Definition: L1GTScales.h:111
const double pT_lsb_
Definition: L1GTScales.h:105
const double z0_lsb_
Definition: L1GTScales.h:108

Member Function Documentation

◆ beta_lsb()

double l1t::L1GTScales::beta_lsb ( ) const
inline

Definition at line 95 of file L1GTScales.h.

References beta_lsb_.

95 { return beta_lsb_; }
const double beta_lsb_
Definition: L1GTScales.h:111

◆ eta_lsb()

double l1t::L1GTScales::eta_lsb ( ) const
inline

Definition at line 91 of file L1GTScales.h.

References eta_lsb_.

Referenced by l1t::L1GT3BodyCut::calc2BodyInvMass(), and l1t::L1GTCorrelationalCut::checkObjects().

91 { return eta_lsb_; }
const double eta_lsb_
Definition: L1GTScales.h:107

◆ fillPSetDescription()

void l1t::L1GTScales::fillPSetDescription ( edm::ParameterSetDescription desc)
static

Definition at line 53 of file L1GTScales.cc.

References submitPVResolutionJobs::desc.

Referenced by l1t::L1GTProducer::fillDescriptions().

53  {
54  desc.add<double>("pT_lsb");
55  desc.add<double>("phi_lsb");
56  desc.add<double>("eta_lsb");
57  desc.add<double>("z0_lsb");
58  //desc.add<double>("d0_lsb");
59  desc.add<double>("isolationPT_lsb");
60  desc.add<double>("beta_lsb");
61  desc.add<double>("mass_lsb");
62  desc.add<double>("seed_pT_lsb");
63  desc.add<double>("seed_z0_lsb");
64  desc.add<double>("scalarSumPT_lsb");
65  desc.add<double>("sum_pT_pv_lsb");
66  desc.add<int>("pos_chg");
67  desc.add<int>("neg_chg");
68  }

◆ isolationPT_lsb()

double l1t::L1GTScales::isolationPT_lsb ( ) const
inline

Definition at line 93 of file L1GTScales.h.

References isolationPT_lsb_.

93 { return isolationPT_lsb_; }
const double isolationPT_lsb_
Definition: L1GTScales.h:110

◆ mass_lsb()

double l1t::L1GTScales::mass_lsb ( ) const
inline

Definition at line 96 of file L1GTScales.h.

References mass_lsb_.

96 { return mass_lsb_; }
const double mass_lsb_
Definition: L1GTScales.h:112

◆ neg_chg()

int l1t::L1GTScales::neg_chg ( ) const
inline

Definition at line 102 of file L1GTScales.h.

References neg_chg_.

Referenced by l1t::PYBIND11_MODULE().

102 { return neg_chg_; }
const int neg_chg_
Definition: L1GTScales.h:118

◆ phi_lsb()

double l1t::L1GTScales::phi_lsb ( ) const
inline

Definition at line 90 of file L1GTScales.h.

References phi_lsb_.

Referenced by l1t::L1GT3BodyCut::calc2BodyInvMass(), and l1t::L1GTCorrelationalCut::checkObjects().

90 { return phi_lsb_; }
const double phi_lsb_
Definition: L1GTScales.h:106

◆ pos_chg()

int l1t::L1GTScales::pos_chg ( ) const
inline

Definition at line 101 of file L1GTScales.h.

References pos_chg_.

Referenced by l1t::PYBIND11_MODULE().

101 { return pos_chg_; }
const int pos_chg_
Definition: L1GTScales.h:117

◆ pT_lsb()

double l1t::L1GTScales::pT_lsb ( ) const
inline

Definition at line 89 of file L1GTScales.h.

References pT_lsb_.

Referenced by l1t::L1GT3BodyCut::calc2BodyInvMass(), and l1t::L1GTCorrelationalCut::checkObjects().

89 { return pT_lsb_; }
const double pT_lsb_
Definition: L1GTScales.h:105

◆ scalarSumPT_lsb()

double l1t::L1GTScales::scalarSumPT_lsb ( ) const
inline

Definition at line 99 of file L1GTScales.h.

References scalarSumPT_lsb_.

99 { return scalarSumPT_lsb_; }
const double scalarSumPT_lsb_
Definition: L1GTScales.h:115

◆ seed_pT_lsb()

double l1t::L1GTScales::seed_pT_lsb ( ) const
inline

Definition at line 97 of file L1GTScales.h.

References seed_pT_lsb_.

97 { return seed_pT_lsb_; }
const double seed_pT_lsb_
Definition: L1GTScales.h:113

◆ seed_z0_lsb()

double l1t::L1GTScales::seed_z0_lsb ( ) const
inline

Definition at line 98 of file L1GTScales.h.

References seed_z0_lsb_.

98 { return seed_z0_lsb_; }
const double seed_z0_lsb_
Definition: L1GTScales.h:114

◆ sum_pT_pv_lsb()

double l1t::L1GTScales::sum_pT_pv_lsb ( ) const
inline

Definition at line 100 of file L1GTScales.h.

References sum_pT_pv_lsb_.

100 { return sum_pT_pv_lsb_; }
const double sum_pT_pv_lsb_
Definition: L1GTScales.h:116

◆ to_chg()

int l1t::L1GTScales::to_chg ( int  value) const
inline

◆ to_eta()

double l1t::L1GTScales::to_eta ( int  value) const
inline

◆ to_hw_beta_ceil()

int l1t::L1GTScales::to_hw_beta_ceil ( double  value) const
inline

Definition at line 45 of file L1GTScales.h.

References beta_lsb_, and reco::ceil().

Referenced by l1t::PYBIND11_MODULE().

45 { return std::ceil(value / beta_lsb_); };
constexpr int32_t ceil(float num)
Definition: value.py:1
const double beta_lsb_
Definition: L1GTScales.h:111

◆ to_hw_beta_floor()

int l1t::L1GTScales::to_hw_beta_floor ( double  value) const
inline

Definition at line 72 of file L1GTScales.h.

References beta_lsb_.

Referenced by l1t::PYBIND11_MODULE().

72 { return std::floor(value / beta_lsb_); };
Definition: value.py:1
const double beta_lsb_
Definition: L1GTScales.h:111

◆ to_hw_dRSquared_ceil()

int l1t::L1GTScales::to_hw_dRSquared_ceil ( double  value) const
inline

Definition at line 52 of file L1GTScales.h.

References reco::ceil(), and eta_lsb_.

Referenced by l1t::PYBIND11_MODULE().

52 { return std::ceil(value * value / (eta_lsb_ * eta_lsb_)); }
constexpr int32_t ceil(float num)
const double eta_lsb_
Definition: L1GTScales.h:107
Definition: value.py:1

◆ to_hw_dRSquared_floor()

int l1t::L1GTScales::to_hw_dRSquared_floor ( double  value) const
inline

Definition at line 79 of file L1GTScales.h.

References eta_lsb_.

Referenced by l1t::PYBIND11_MODULE().

79 { return std::floor(value * value / (eta_lsb_ * eta_lsb_)); }
const double eta_lsb_
Definition: L1GTScales.h:107
Definition: value.py:1

◆ to_hw_eta_ceil()

int l1t::L1GTScales::to_hw_eta_ceil ( double  value) const
inline

Definition at line 38 of file L1GTScales.h.

References reco::ceil(), and eta_lsb_.

Referenced by l1t::PYBIND11_MODULE().

38 { return std::ceil(value / eta_lsb_); };
constexpr int32_t ceil(float num)
const double eta_lsb_
Definition: L1GTScales.h:107
Definition: value.py:1

◆ to_hw_eta_floor()

int l1t::L1GTScales::to_hw_eta_floor ( double  value) const
inline

Definition at line 65 of file L1GTScales.h.

References eta_lsb_.

Referenced by l1t::PYBIND11_MODULE().

65 { return std::floor(value / eta_lsb_); };
const double eta_lsb_
Definition: L1GTScales.h:107
Definition: value.py:1

◆ to_hw_InvMassSqrDiv2()

double l1t::L1GTScales::to_hw_InvMassSqrDiv2 ( double  value) const
inline

Definition at line 54 of file L1GTScales.h.

References pT_lsb_.

Referenced by l1t::PYBIND11_MODULE().

54 { return value * value / (2 * pT_lsb_ * pT_lsb_); }
Definition: value.py:1
const double pT_lsb_
Definition: L1GTScales.h:105

◆ to_hw_InvMassSqrOver2DR()

double l1t::L1GTScales::to_hw_InvMassSqrOver2DR ( double  value) const
inline

Definition at line 58 of file L1GTScales.h.

References eta_lsb_, INV_MASS_SQR_OVER_2_DR_SQR_RESOLUTION, funct::pow(), and pT_lsb_.

Referenced by l1t::PYBIND11_MODULE().

58  {
60  (2 * pT_lsb_ * pT_lsb_);
61  }
const double eta_lsb_
Definition: L1GTScales.h:107
Definition: value.py:1
static constexpr int INV_MASS_SQR_OVER_2_DR_SQR_RESOLUTION
Definition: L1GTScales.h:15
const double pT_lsb_
Definition: L1GTScales.h:105
Power< A, B >::type pow(const A &a, const B &b)
Definition: Power.h:29

◆ to_hw_isolationPT_ceil()

int l1t::L1GTScales::to_hw_isolationPT_ceil ( double  value) const
inline

Definition at line 44 of file L1GTScales.h.

References reco::ceil(), and isolationPT_lsb_.

44 { return std::ceil(value / isolationPT_lsb_); }
constexpr int32_t ceil(float num)
const double isolationPT_lsb_
Definition: L1GTScales.h:110
Definition: value.py:1

◆ to_hw_isolationPT_floor()

int l1t::L1GTScales::to_hw_isolationPT_floor ( double  value) const
inline

Definition at line 71 of file L1GTScales.h.

References isolationPT_lsb_.

71 { return std::floor(value / isolationPT_lsb_); }
const double isolationPT_lsb_
Definition: L1GTScales.h:110
Definition: value.py:1

◆ to_hw_mass_ceil()

int l1t::L1GTScales::to_hw_mass_ceil ( double  value) const
inline

Definition at line 46 of file L1GTScales.h.

References reco::ceil(), and mass_lsb_.

Referenced by l1t::PYBIND11_MODULE().

46 { return std::ceil(value / mass_lsb_); };
constexpr int32_t ceil(float num)
const double mass_lsb_
Definition: L1GTScales.h:112
Definition: value.py:1

◆ to_hw_mass_floor()

int l1t::L1GTScales::to_hw_mass_floor ( double  value) const
inline

Definition at line 73 of file L1GTScales.h.

References mass_lsb_.

Referenced by l1t::PYBIND11_MODULE().

73 { return std::floor(value / mass_lsb_); };
const double mass_lsb_
Definition: L1GTScales.h:112
Definition: value.py:1

◆ to_hw_phi_ceil()

int l1t::L1GTScales::to_hw_phi_ceil ( double  value) const
inline

Definition at line 37 of file L1GTScales.h.

References reco::ceil(), and phi_lsb_.

Referenced by l1t::PYBIND11_MODULE().

37 { return std::ceil(value / phi_lsb_); };
constexpr int32_t ceil(float num)
const double phi_lsb_
Definition: L1GTScales.h:106
Definition: value.py:1

◆ to_hw_phi_floor()

int l1t::L1GTScales::to_hw_phi_floor ( double  value) const
inline

Definition at line 64 of file L1GTScales.h.

References phi_lsb_.

Referenced by l1t::PYBIND11_MODULE().

64 { return std::floor(value / phi_lsb_); };
const double phi_lsb_
Definition: L1GTScales.h:106
Definition: value.py:1

◆ to_hw_pT_ceil()

int l1t::L1GTScales::to_hw_pT_ceil ( double  value) const
inline

Definition at line 36 of file L1GTScales.h.

References reco::ceil(), and pT_lsb_.

Referenced by l1t::PYBIND11_MODULE().

36 { return std::ceil(value / pT_lsb_); };
constexpr int32_t ceil(float num)
Definition: value.py:1
const double pT_lsb_
Definition: L1GTScales.h:105

◆ to_hw_pT_floor()

int l1t::L1GTScales::to_hw_pT_floor ( double  value) const
inline

Definition at line 63 of file L1GTScales.h.

References pT_lsb_.

Referenced by l1t::PYBIND11_MODULE().

63 { return std::floor(value / pT_lsb_); };
Definition: value.py:1
const double pT_lsb_
Definition: L1GTScales.h:105

◆ to_hw_PtSquared()

double l1t::L1GTScales::to_hw_PtSquared ( double  value) const
inline

Definition at line 57 of file L1GTScales.h.

References pT_lsb_.

Referenced by l1t::PYBIND11_MODULE().

57 { return value * value / (pT_lsb_ * pT_lsb_); }
Definition: value.py:1
const double pT_lsb_
Definition: L1GTScales.h:105

◆ to_hw_relative_isolationPT_ceil()

int l1t::L1GTScales::to_hw_relative_isolationPT_ceil ( double  value) const
inline

Definition at line 41 of file L1GTScales.h.

References reco::ceil(), isolationPT_lsb_, funct::pow(), pT_lsb_, and RELATIVE_ISOLATION_RESOLUTION.

Referenced by l1t::PYBIND11_MODULE().

41  {
43  }
constexpr int32_t ceil(float num)
const double isolationPT_lsb_
Definition: L1GTScales.h:110
Definition: value.py:1
static constexpr int RELATIVE_ISOLATION_RESOLUTION
Definition: L1GTScales.h:12
const double pT_lsb_
Definition: L1GTScales.h:105
Power< A, B >::type pow(const A &a, const B &b)
Definition: Power.h:29

◆ to_hw_relative_isolationPT_floor()

int l1t::L1GTScales::to_hw_relative_isolationPT_floor ( double  value) const
inline

Definition at line 68 of file L1GTScales.h.

References isolationPT_lsb_, funct::pow(), pT_lsb_, and RELATIVE_ISOLATION_RESOLUTION.

Referenced by l1t::PYBIND11_MODULE().

68  {
70  }
const double isolationPT_lsb_
Definition: L1GTScales.h:110
Definition: value.py:1
static constexpr int RELATIVE_ISOLATION_RESOLUTION
Definition: L1GTScales.h:12
const double pT_lsb_
Definition: L1GTScales.h:105
Power< A, B >::type pow(const A &a, const B &b)
Definition: Power.h:29

◆ to_hw_scalarSumPT_ceil()

int l1t::L1GTScales::to_hw_scalarSumPT_ceil ( double  value) const
inline

Definition at line 49 of file L1GTScales.h.

References reco::ceil(), and scalarSumPT_lsb_.

Referenced by l1t::PYBIND11_MODULE().

49 { return std::ceil(value / scalarSumPT_lsb_); };
constexpr int32_t ceil(float num)
Definition: value.py:1
const double scalarSumPT_lsb_
Definition: L1GTScales.h:115

◆ to_hw_scalarSumPT_floor()

int l1t::L1GTScales::to_hw_scalarSumPT_floor ( double  value) const
inline

Definition at line 76 of file L1GTScales.h.

References scalarSumPT_lsb_.

Referenced by l1t::PYBIND11_MODULE().

76 { return std::floor(value / scalarSumPT_lsb_); };
Definition: value.py:1
const double scalarSumPT_lsb_
Definition: L1GTScales.h:115

◆ to_hw_seed_pT_ceil()

int l1t::L1GTScales::to_hw_seed_pT_ceil ( double  value) const
inline

Definition at line 47 of file L1GTScales.h.

References reco::ceil(), and seed_pT_lsb_.

Referenced by l1t::PYBIND11_MODULE().

47 { return std::ceil(value / seed_pT_lsb_); };
constexpr int32_t ceil(float num)
const double seed_pT_lsb_
Definition: L1GTScales.h:113
Definition: value.py:1

◆ to_hw_seed_pT_floor()

int l1t::L1GTScales::to_hw_seed_pT_floor ( double  value) const
inline

Definition at line 74 of file L1GTScales.h.

References seed_pT_lsb_.

Referenced by l1t::PYBIND11_MODULE().

74 { return std::floor(value / seed_pT_lsb_); };
const double seed_pT_lsb_
Definition: L1GTScales.h:113
Definition: value.py:1

◆ to_hw_seed_z0_ceil()

int l1t::L1GTScales::to_hw_seed_z0_ceil ( double  value) const
inline

Definition at line 48 of file L1GTScales.h.

References reco::ceil(), and seed_z0_lsb_.

Referenced by l1t::PYBIND11_MODULE().

48 { return std::ceil(value / seed_z0_lsb_); };
constexpr int32_t ceil(float num)
const double seed_z0_lsb_
Definition: L1GTScales.h:114
Definition: value.py:1

◆ to_hw_seed_z0_floor()

int l1t::L1GTScales::to_hw_seed_z0_floor ( double  value) const
inline

Definition at line 75 of file L1GTScales.h.

References seed_z0_lsb_.

Referenced by l1t::PYBIND11_MODULE().

75 { return std::floor(value / seed_z0_lsb_); };
const double seed_z0_lsb_
Definition: L1GTScales.h:114
Definition: value.py:1

◆ to_hw_sum_pT_pv_ceil()

int l1t::L1GTScales::to_hw_sum_pT_pv_ceil ( double  value) const
inline

Definition at line 50 of file L1GTScales.h.

References reco::ceil(), and sum_pT_pv_lsb_.

Referenced by l1t::PYBIND11_MODULE().

50 { return std::ceil(value / sum_pT_pv_lsb_); };
constexpr int32_t ceil(float num)
const double sum_pT_pv_lsb_
Definition: L1GTScales.h:116
Definition: value.py:1

◆ to_hw_sum_pT_pv_floor()

int l1t::L1GTScales::to_hw_sum_pT_pv_floor ( double  value) const
inline

Definition at line 77 of file L1GTScales.h.

References sum_pT_pv_lsb_.

Referenced by l1t::PYBIND11_MODULE().

77 { return std::floor(value / sum_pT_pv_lsb_); };
const double sum_pT_pv_lsb_
Definition: L1GTScales.h:116
Definition: value.py:1

◆ to_hw_TransMassSqrDiv2()

double l1t::L1GTScales::to_hw_TransMassSqrDiv2 ( double  value) const
inline

Definition at line 55 of file L1GTScales.h.

References pT_lsb_.

Referenced by l1t::PYBIND11_MODULE().

55 { return value * value / (2 * pT_lsb_ * pT_lsb_); }
Definition: value.py:1
const double pT_lsb_
Definition: L1GTScales.h:105

◆ to_hw_z0_ceil()

int l1t::L1GTScales::to_hw_z0_ceil ( double  value) const
inline

Definition at line 39 of file L1GTScales.h.

References reco::ceil(), and z0_lsb_.

Referenced by l1t::PYBIND11_MODULE().

39 { return std::ceil(value / z0_lsb_); };
constexpr int32_t ceil(float num)
Definition: value.py:1
const double z0_lsb_
Definition: L1GTScales.h:108

◆ to_hw_z0_floor()

int l1t::L1GTScales::to_hw_z0_floor ( double  value) const
inline

Definition at line 66 of file L1GTScales.h.

References z0_lsb_.

Referenced by l1t::PYBIND11_MODULE().

66 { return std::floor(value / z0_lsb_); };
Definition: value.py:1
const double z0_lsb_
Definition: L1GTScales.h:108

◆ to_isolationPT()

double l1t::L1GTScales::to_isolationPT ( int  value) const
inline

Definition at line 85 of file L1GTScales.h.

References isolationPT_lsb_.

85 { return value * isolationPT_lsb_; }
const double isolationPT_lsb_
Definition: L1GTScales.h:110
Definition: value.py:1

◆ to_phi()

double l1t::L1GTScales::to_phi ( int  value) const
inline

◆ to_pT()

double l1t::L1GTScales::to_pT ( int  value) const
inline

◆ to_scalarSumPT()

double l1t::L1GTScales::to_scalarSumPT ( int  value) const
inline

Definition at line 86 of file L1GTScales.h.

References scalarSumPT_lsb_.

86 { return value * scalarSumPT_lsb_; };
Definition: value.py:1
const double scalarSumPT_lsb_
Definition: L1GTScales.h:115

◆ to_z0()

double l1t::L1GTScales::to_z0 ( int  value) const
inline

◆ z0_lsb()

double l1t::L1GTScales::z0_lsb ( ) const
inline

Definition at line 92 of file L1GTScales.h.

References z0_lsb_.

92 { return z0_lsb_; }
const double z0_lsb_
Definition: L1GTScales.h:108

Member Data Documentation

◆ beta_lsb_

const double l1t::L1GTScales::beta_lsb_
private

Definition at line 111 of file L1GTScales.h.

Referenced by beta_lsb(), to_hw_beta_ceil(), and to_hw_beta_floor().

◆ eta_lsb_

const double l1t::L1GTScales::eta_lsb_
private

◆ INV_MASS_SQR_OVER_2_DR_SQR_RESOLUTION

constexpr int l1t::L1GTScales::INV_MASS_SQR_OVER_2_DR_SQR_RESOLUTION = 19
static

◆ isolationPT_lsb_

const double l1t::L1GTScales::isolationPT_lsb_
private

◆ mass_lsb_

const double l1t::L1GTScales::mass_lsb_
private

Definition at line 112 of file L1GTScales.h.

Referenced by mass_lsb(), to_hw_mass_ceil(), and to_hw_mass_floor().

◆ neg_chg_

const int l1t::L1GTScales::neg_chg_
private

Definition at line 118 of file L1GTScales.h.

Referenced by neg_chg(), and to_chg().

◆ phi_lsb_

const double l1t::L1GTScales::phi_lsb_
private

Definition at line 106 of file L1GTScales.h.

Referenced by phi_lsb(), to_hw_phi_ceil(), to_hw_phi_floor(), and to_phi().

◆ pos_chg_

const int l1t::L1GTScales::pos_chg_
private

Definition at line 117 of file L1GTScales.h.

Referenced by pos_chg(), and to_chg().

◆ pT_lsb_

const double l1t::L1GTScales::pT_lsb_
private

◆ RELATIVE_ISOLATION_RESOLUTION

constexpr int l1t::L1GTScales::RELATIVE_ISOLATION_RESOLUTION = 18
static

◆ scalarSumPT_lsb_

const double l1t::L1GTScales::scalarSumPT_lsb_
private

◆ seed_pT_lsb_

const double l1t::L1GTScales::seed_pT_lsb_
private

Definition at line 113 of file L1GTScales.h.

Referenced by seed_pT_lsb(), to_hw_seed_pT_ceil(), and to_hw_seed_pT_floor().

◆ seed_z0_lsb_

const double l1t::L1GTScales::seed_z0_lsb_
private

Definition at line 114 of file L1GTScales.h.

Referenced by seed_z0_lsb(), to_hw_seed_z0_ceil(), and to_hw_seed_z0_floor().

◆ sum_pT_pv_lsb_

const double l1t::L1GTScales::sum_pT_pv_lsb_
private

Definition at line 116 of file L1GTScales.h.

Referenced by sum_pT_pv_lsb(), to_hw_sum_pT_pv_ceil(), and to_hw_sum_pT_pv_floor().

◆ z0_lsb_

const double l1t::L1GTScales::z0_lsb_
private

Definition at line 108 of file L1GTScales.h.

Referenced by to_hw_z0_ceil(), to_hw_z0_floor(), to_z0(), and z0_lsb().