1 #ifndef L1TMuonEndCap_TrackTools_h 2 #define L1TMuonEndCap_TrackTools_h 85 double pt =
static_cast<double>(
bits);
92 int gmt_pt =
static_cast<int>(std::round(
val));
93 gmt_pt = (gmt_pt > 511) ? 511 : gmt_pt;
100 double eta =
static_cast<double>(
bits);
126 int gmt_eta =
static_cast<int>(std::round(
val));
133 double theta =
static_cast<double>(theta_int);
141 double theta_rad = 2. * std::atan(
std::exp(-1. *
eta));
150 int theta_int =
static_cast<int>(std::round(
theta));
156 theta = (
theta - 8.5) * (128. / 4.) / (45.0 - 8.5);
157 int theta_int =
static_cast<int>(std::round(
theta));
181 double loc =
static_cast<double>(
bits);
209 int phi_int =
static_cast<int>(std::round(
loc));
216 loc = (
loc + 22.) * 60. / 4.;
217 int phi_int =
static_cast<int>(std::round(
loc));
222 double phi =
static_cast<double>(
bits);
223 phi = (phi * 360. / 576.) + (180. / 576.);
235 val = (
val - 180. / 576.) / (360. / 576.);
236 int gmt_phi =
static_cast<int>(std::round(
val));
int calc_eta_GMT(double val)
double wrap_theta_rad(double rad)
int calc_chamber(int station, int sector, int subsector, int ring, int csc_ID)
double calc_phi_glob_rad(double loc, int sector)
int get_trigger_sector(int ring, int station, int chamber)
double calc_phi_loc_deg(int bits)
int calc_uGMT_chamber(int csc_ID, int subsector, int neighbor, int station)
double calc_theta_rad(double eta)
int calc_phi_loc_int(double glob, int sector)
double calc_phi_loc_deg_from_glob(double glob, int sector)
std::pair< int, int > get_csc_max_pattern_and_quality(int station, int ring)
std::vector< TString > glob(const std::string &pattern)
double calc_phi_loc_rad(int bits)
double calc_theta_deg_from_eta(double eta)
double wrap_theta_deg(double deg)
int calc_theta_int_rpc(double theta, int endcap)
int get_trigger_csc_ID(int ring, int station, int chamber)
double calc_theta_rad_from_int(int theta_int)
double calc_eta_from_theta_rad(double theta_rad)
double calc_theta_deg_from_int(int theta_int)
double wrap_phi_deg(double deg)
int get_csc_max_slope(int station, int ring, bool useRun3CCLUT_OTMB, bool useRun3CCLUT_TMB)
double wrap_phi_rad(double rad)
Tan< T >::type tan(const T &t)
int calc_phi_loc_int_rpc(double glob, int sector)
Abs< T >::type abs(const T &t)
int calc_pt_GMT(double val)
double calc_phi_glob_deg(double loc, int sector)
double calc_theta_rad_from_eta(double eta)
double calc_theta_deg(double eta)
int calc_theta_int(double theta, int endcap)
int calc_phi_GMT_int(double val)
double deg_to_rad(double deg)
int calc_ring(int station, int csc_ID, int strip)
double calc_eta_from_theta_deg(double theta_deg, int endcap)
std::pair< int, int > get_csc_max_strip_and_wire(int station, int ring)
double calc_phi_GMT_deg(int bits)
double rad_to_deg(double rad)
double calc_phi_GMT_rad(int bits)
double calc_eta(int bits)
MPlex< T, D1, D2, N > atan2(const MPlex< T, D1, D2, N > &y, const MPlex< T, D1, D2, N > &x)