3 #include <pybind11/pybind11.h> 5 namespace py = pybind11;
28 isolation_shift_(RELATIVE_ISOLATION_RESOLUTION +
std::log2(isolation_lsb_ / pT_lsb_)),
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")),
44 isolation_lsb_(
config.getParameter<double>(
"isolation_lsb")),
45 isolation_shift_(RELATIVE_ISOLATION_RESOLUTION +
std::log2(isolation_lsb_ / pT_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")) {}
56 desc.add<
double>(
"pT_lsb");
57 desc.add<
double>(
"phi_lsb");
58 desc.add<
double>(
"eta_lsb");
59 desc.add<
double>(
"z0_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");
73 py::class_<L1GTScales>(
m,
"L1GTScales")
int to_hw_seed_z0(double value) const
int def(FILE *, FILE *, int)
int to_hw_phi(double value) const
int to_hw_mass(double value) const
double to_hw_InvMassSqrDiv2(double value) const
double to_hw_TransMassSqrDiv2(double value) const
int to_hw_pT(double value) const
static void fillPSetDescription(edm::ParameterSetDescription &)
int to_hw_sca_sum(double value) const
int to_hw_z0(double value) const
int to_hw_seed_pT(double value) const
int to_hw_beta(double value) const
int to_hw_sum_pT_pv(double value) 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)
PYBIND11_MODULE(libL1TriggerPhase2L1GT, m)
int to_hw_eta(double value) const
double to_hw_PtSquared(double value) const
int to_hw_dRSquared(double value) const
int to_hw_isolation(double value) const