CMS 3D CMS Logo

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

#include <L1GTScales.h>

Public Member Functions

double beta_lsb () const
 
double eta_lsb () const
 
double isolation_lsb () const
 
int isolation_shift () const
 
 L1GTScales (double pT_lsb, double phi_lsb, double eta_lsb, double z0_lsb, double isolation_lsb, double beta_lsb, double mass_lsb, double seed_pT_lsb, double seed_dZ_lsb, double sca_sum_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 sca_sum_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 (double value) const
 
int to_hw_dRSquared (double value) const
 
int to_hw_eta (double value) const
 
double to_hw_InvMassSqrDiv2 (double value) const
 
int to_hw_isolation (double value) const
 
int to_hw_mass (double value) const
 
int to_hw_phi (double value) const
 
int to_hw_pT (double value) const
 
double to_hw_PtSquared (double value) const
 
int to_hw_sca_sum (double value) const
 
int to_hw_seed_pT (double value) const
 
int to_hw_seed_z0 (double value) const
 
int to_hw_sum_pT_pv (double value) const
 
double to_hw_TransMassSqrDiv2 (double value) const
 
int to_hw_z0 (double value) const
 
double to_phi (int value) const
 
double to_pT (int value) const
 
double to_sca_sum (int value) const
 
double to_z0 (int value) const
 
double z0_lsb () const
 

Static Public Member Functions

static void fillPSetDescription (edm::ParameterSetDescription &)
 

Private Attributes

const double beta_lsb_
 
const double eta_lsb_
 
const double isolation_lsb_
 
const double isolation_shift_
 
const double mass_lsb_
 
const int neg_chg_
 
const double phi_lsb_
 
const int pos_chg_
 
const double pT_lsb_
 
const double sca_sum_lsb_
 
const double seed_pT_lsb_
 
const double seed_z0_lsb_
 
const double sum_pT_pv_lsb_
 
const double z0_lsb_
 

Static Private Attributes

static constexpr int RELATIVE_ISOLATION_RESOLUTION = 10
 

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  isolation_lsb,
double  beta_lsb,
double  mass_lsb,
double  seed_pT_lsb,
double  seed_dZ_lsb,
double  sca_sum_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),
36  neg_chg_(neg_chg) {}
double beta_lsb() const
Definition: L1GTScales.h:68
double eta_lsb() const
Definition: L1GTScales.h:64
double pT_lsb() const
Definition: L1GTScales.h:62
double phi_lsb() const
Definition: L1GTScales.h:63
const double seed_z0_lsb_
Definition: L1GTScales.h:89
const double sca_sum_lsb_
Definition: L1GTScales.h:90
const double seed_pT_lsb_
Definition: L1GTScales.h:88
const double eta_lsb_
Definition: L1GTScales.h:81
int pos_chg() const
Definition: L1GTScales.h:74
double sca_sum_lsb() const
Definition: L1GTScales.h:72
double mass_lsb() const
Definition: L1GTScales.h:69
double isolation_lsb() const
Definition: L1GTScales.h:66
const int neg_chg_
Definition: L1GTScales.h:93
const double isolation_lsb_
Definition: L1GTScales.h:84
const double phi_lsb_
Definition: L1GTScales.h:80
int neg_chg() const
Definition: L1GTScales.h:75
const int pos_chg_
Definition: L1GTScales.h:92
const double sum_pT_pv_lsb_
Definition: L1GTScales.h:91
const double mass_lsb_
Definition: L1GTScales.h:87
const double beta_lsb_
Definition: L1GTScales.h:86
double sum_pT_pv_lsb() const
Definition: L1GTScales.h:73
double seed_pT_lsb() const
Definition: L1GTScales.h:70
double seed_z0_lsb() const
Definition: L1GTScales.h:71
static constexpr int RELATIVE_ISOLATION_RESOLUTION
Definition: L1GTScales.h:11
const double pT_lsb_
Definition: L1GTScales.h:79
const double isolation_shift_
Definition: L1GTScales.h:85
const double z0_lsb_
Definition: L1GTScales.h:82
double z0_lsb() const
Definition: L1GTScales.h:65

◆ L1GTScales() [2/2]

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

Definition at line 38 of file L1GTScales.cc.

39  : pT_lsb_(config.getParameter<double>("pT_lsb")),
40  phi_lsb_(config.getParameter<double>("phi_lsb")),
41  eta_lsb_(config.getParameter<double>("eta_lsb")),
42  z0_lsb_(config.getParameter<double>("z0_lsb")),
43  //d0_lsb_(config.getParameter<double>("d0_lsb")),
44  isolation_lsb_(config.getParameter<double>("isolation_lsb")),
46  beta_lsb_(config.getParameter<double>("beta_lsb")),
47  mass_lsb_(config.getParameter<double>("mass_lsb")),
48  seed_pT_lsb_(config.getParameter<double>("seed_pT_lsb")),
49  seed_z0_lsb_(config.getParameter<double>("seed_z0_lsb")),
50  sca_sum_lsb_(config.getParameter<double>("sca_sum_lsb")),
51  sum_pT_pv_lsb_(config.getParameter<double>("sum_pT_pv_lsb")),
52  pos_chg_(config.getParameter<int>("pos_chg")),
53  neg_chg_(config.getParameter<int>("neg_chg")) {}
const double seed_z0_lsb_
Definition: L1GTScales.h:89
const double sca_sum_lsb_
Definition: L1GTScales.h:90
const double seed_pT_lsb_
Definition: L1GTScales.h:88
const double eta_lsb_
Definition: L1GTScales.h:81
Definition: config.py:1
const int neg_chg_
Definition: L1GTScales.h:93
const double isolation_lsb_
Definition: L1GTScales.h:84
const double phi_lsb_
Definition: L1GTScales.h:80
const int pos_chg_
Definition: L1GTScales.h:92
const double sum_pT_pv_lsb_
Definition: L1GTScales.h:91
const double mass_lsb_
Definition: L1GTScales.h:87
const double beta_lsb_
Definition: L1GTScales.h:86
static constexpr int RELATIVE_ISOLATION_RESOLUTION
Definition: L1GTScales.h:11
const double pT_lsb_
Definition: L1GTScales.h:79
const double isolation_shift_
Definition: L1GTScales.h:85
const double z0_lsb_
Definition: L1GTScales.h:82

Member Function Documentation

◆ beta_lsb()

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

Definition at line 68 of file L1GTScales.h.

References beta_lsb_.

68 { return beta_lsb_; }
const double beta_lsb_
Definition: L1GTScales.h:86

◆ eta_lsb()

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

Definition at line 64 of file L1GTScales.h.

References eta_lsb_.

Referenced by l1t::L1GTDeltaCut::checkObjects().

64 { return eta_lsb_; }
const double eta_lsb_
Definition: L1GTScales.h:81

◆ fillPSetDescription()

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

Definition at line 55 of file L1GTScales.cc.

References submitPVResolutionJobs::desc.

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

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

◆ isolation_lsb()

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

Definition at line 66 of file L1GTScales.h.

References isolation_lsb_.

66 { return isolation_lsb_; }
const double isolation_lsb_
Definition: L1GTScales.h:84

◆ isolation_shift()

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

◆ mass_lsb()

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

Definition at line 69 of file L1GTScales.h.

References mass_lsb_.

69 { return mass_lsb_; }
const double mass_lsb_
Definition: L1GTScales.h:87

◆ neg_chg()

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

Definition at line 75 of file L1GTScales.h.

References neg_chg_.

Referenced by l1t::PYBIND11_MODULE().

75 { return neg_chg_; }
const int neg_chg_
Definition: L1GTScales.h:93

◆ phi_lsb()

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

Definition at line 63 of file L1GTScales.h.

References phi_lsb_.

Referenced by l1t::L1GTDeltaCut::checkObjects().

63 { return phi_lsb_; }
const double phi_lsb_
Definition: L1GTScales.h:80

◆ pos_chg()

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

Definition at line 74 of file L1GTScales.h.

References pos_chg_.

Referenced by l1t::PYBIND11_MODULE().

74 { return pos_chg_; }
const int pos_chg_
Definition: L1GTScales.h:92

◆ pT_lsb()

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

Definition at line 62 of file L1GTScales.h.

References pT_lsb_.

Referenced by l1t::L1GTDeltaCut::checkObjects().

62 { return pT_lsb_; }
const double pT_lsb_
Definition: L1GTScales.h:79

◆ sca_sum_lsb()

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

Definition at line 72 of file L1GTScales.h.

References sca_sum_lsb_.

72 { return sca_sum_lsb_; }
const double sca_sum_lsb_
Definition: L1GTScales.h:90

◆ seed_pT_lsb()

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

Definition at line 70 of file L1GTScales.h.

References seed_pT_lsb_.

70 { return seed_pT_lsb_; }
const double seed_pT_lsb_
Definition: L1GTScales.h:88

◆ seed_z0_lsb()

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

Definition at line 71 of file L1GTScales.h.

References seed_z0_lsb_.

71 { return seed_z0_lsb_; }
const double seed_z0_lsb_
Definition: L1GTScales.h:89

◆ sum_pT_pv_lsb()

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

Definition at line 73 of file L1GTScales.h.

References sum_pT_pv_lsb_.

73 { return sum_pT_pv_lsb_; }
const double sum_pT_pv_lsb_
Definition: L1GTScales.h:91

◆ 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()

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

Definition at line 41 of file L1GTScales.h.

References beta_lsb_.

Referenced by l1t::PYBIND11_MODULE().

41 { return std::round(value / beta_lsb_); };
Definition: value.py:1
const double beta_lsb_
Definition: L1GTScales.h:86

◆ to_hw_dRSquared()

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

Definition at line 48 of file L1GTScales.h.

References eta_lsb_.

Referenced by l1t::PYBIND11_MODULE().

48 { return std::round(value * value / (eta_lsb_ * eta_lsb_)); }
const double eta_lsb_
Definition: L1GTScales.h:81
Definition: value.py:1

◆ to_hw_eta()

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

Definition at line 35 of file L1GTScales.h.

References eta_lsb_.

Referenced by l1t::PYBIND11_MODULE().

35 { return std::round(value / eta_lsb_); };
const double eta_lsb_
Definition: L1GTScales.h:81
Definition: value.py:1

◆ to_hw_InvMassSqrDiv2()

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

Definition at line 50 of file L1GTScales.h.

References pT_lsb_.

Referenced by l1t::PYBIND11_MODULE().

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

◆ to_hw_isolation()

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

Definition at line 38 of file L1GTScales.h.

References isolation_lsb_, isolation_shift_, conifer::pow(), and pT_lsb_.

Referenced by l1t::PYBIND11_MODULE().

38  {
39  return std::round(pT_lsb_ * value * std::pow(2, isolation_shift_) / isolation_lsb_);
40  }
constexpr int pow(int x)
Definition: conifer.h:24
const double isolation_lsb_
Definition: L1GTScales.h:84
Definition: value.py:1
const double pT_lsb_
Definition: L1GTScales.h:79
const double isolation_shift_
Definition: L1GTScales.h:85

◆ to_hw_mass()

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

Definition at line 42 of file L1GTScales.h.

References mass_lsb_.

Referenced by l1t::PYBIND11_MODULE().

42 { return std::round(value / mass_lsb_); };
const double mass_lsb_
Definition: L1GTScales.h:87
Definition: value.py:1

◆ to_hw_phi()

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

Definition at line 34 of file L1GTScales.h.

References phi_lsb_.

Referenced by l1t::PYBIND11_MODULE().

34 { return std::round(value / phi_lsb_); };
const double phi_lsb_
Definition: L1GTScales.h:80
Definition: value.py:1

◆ to_hw_pT()

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

Definition at line 33 of file L1GTScales.h.

References pT_lsb_.

Referenced by l1t::PYBIND11_MODULE().

33 { return std::round(value / pT_lsb_); };
Definition: value.py:1
const double pT_lsb_
Definition: L1GTScales.h:79

◆ to_hw_PtSquared()

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

Definition at line 53 of file L1GTScales.h.

References pT_lsb_.

Referenced by l1t::PYBIND11_MODULE().

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

◆ to_hw_sca_sum()

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

Definition at line 45 of file L1GTScales.h.

References sca_sum_lsb_.

Referenced by l1t::PYBIND11_MODULE().

45 { return std::round(value / sca_sum_lsb_); };
const double sca_sum_lsb_
Definition: L1GTScales.h:90
Definition: value.py:1

◆ to_hw_seed_pT()

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

Definition at line 43 of file L1GTScales.h.

References seed_pT_lsb_.

Referenced by l1t::PYBIND11_MODULE().

43 { return std::round(value / seed_pT_lsb_); };
const double seed_pT_lsb_
Definition: L1GTScales.h:88
Definition: value.py:1

◆ to_hw_seed_z0()

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

Definition at line 44 of file L1GTScales.h.

References seed_z0_lsb_.

Referenced by l1t::PYBIND11_MODULE().

44 { return std::round(value / seed_z0_lsb_); };
const double seed_z0_lsb_
Definition: L1GTScales.h:89
Definition: value.py:1

◆ to_hw_sum_pT_pv()

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

Definition at line 46 of file L1GTScales.h.

References sum_pT_pv_lsb_.

Referenced by l1t::PYBIND11_MODULE().

46 { return std::round(value / sum_pT_pv_lsb_); };
const double sum_pT_pv_lsb_
Definition: L1GTScales.h:91
Definition: value.py:1

◆ to_hw_TransMassSqrDiv2()

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

Definition at line 51 of file L1GTScales.h.

References pT_lsb_.

Referenced by l1t::PYBIND11_MODULE().

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

◆ to_hw_z0()

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

Definition at line 36 of file L1GTScales.h.

References z0_lsb_.

Referenced by l1t::PYBIND11_MODULE().

36 { return std::round(value / z0_lsb_); };
Definition: value.py:1
const double z0_lsb_
Definition: L1GTScales.h:82

◆ to_phi()

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

◆ to_pT()

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

◆ to_sca_sum()

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

Definition at line 59 of file L1GTScales.h.

References sca_sum_lsb_.

59 { return value * sca_sum_lsb_; };
const double sca_sum_lsb_
Definition: L1GTScales.h:90
Definition: value.py:1

◆ to_z0()

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

◆ z0_lsb()

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

Definition at line 65 of file L1GTScales.h.

References z0_lsb_.

65 { return z0_lsb_; }
const double z0_lsb_
Definition: L1GTScales.h:82

Member Data Documentation

◆ beta_lsb_

const double l1t::L1GTScales::beta_lsb_
private

Definition at line 86 of file L1GTScales.h.

Referenced by beta_lsb(), and to_hw_beta().

◆ eta_lsb_

const double l1t::L1GTScales::eta_lsb_
private

Definition at line 81 of file L1GTScales.h.

Referenced by eta_lsb(), to_eta(), to_hw_dRSquared(), and to_hw_eta().

◆ isolation_lsb_

const double l1t::L1GTScales::isolation_lsb_
private

Definition at line 84 of file L1GTScales.h.

Referenced by isolation_lsb(), and to_hw_isolation().

◆ isolation_shift_

const double l1t::L1GTScales::isolation_shift_
private

Definition at line 85 of file L1GTScales.h.

Referenced by isolation_shift(), and to_hw_isolation().

◆ mass_lsb_

const double l1t::L1GTScales::mass_lsb_
private

Definition at line 87 of file L1GTScales.h.

Referenced by mass_lsb(), and to_hw_mass().

◆ neg_chg_

const int l1t::L1GTScales::neg_chg_
private

Definition at line 93 of file L1GTScales.h.

Referenced by neg_chg(), and to_chg().

◆ phi_lsb_

const double l1t::L1GTScales::phi_lsb_
private

Definition at line 80 of file L1GTScales.h.

Referenced by phi_lsb(), to_hw_phi(), and to_phi().

◆ pos_chg_

const int l1t::L1GTScales::pos_chg_
private

Definition at line 92 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 = 10
staticprivate

Definition at line 11 of file L1GTScales.h.

◆ sca_sum_lsb_

const double l1t::L1GTScales::sca_sum_lsb_
private

Definition at line 90 of file L1GTScales.h.

Referenced by sca_sum_lsb(), to_hw_sca_sum(), and to_sca_sum().

◆ seed_pT_lsb_

const double l1t::L1GTScales::seed_pT_lsb_
private

Definition at line 88 of file L1GTScales.h.

Referenced by seed_pT_lsb(), and to_hw_seed_pT().

◆ seed_z0_lsb_

const double l1t::L1GTScales::seed_z0_lsb_
private

Definition at line 89 of file L1GTScales.h.

Referenced by seed_z0_lsb(), and to_hw_seed_z0().

◆ sum_pT_pv_lsb_

const double l1t::L1GTScales::sum_pT_pv_lsb_
private

Definition at line 91 of file L1GTScales.h.

Referenced by sum_pT_pv_lsb(), and to_hw_sum_pT_pv().

◆ z0_lsb_

const double l1t::L1GTScales::z0_lsb_
private

Definition at line 82 of file L1GTScales.h.

Referenced by to_hw_z0(), to_z0(), and z0_lsb().