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));
162 double theta = std::atan2(1.0, std::sinh(
eta));
171 double glob = loc + 15. + (60. * (sector - 1));
172 glob = (glob < 180.) ? glob : glob - 360.;
181 double loc =
static_cast<double>(
bits);
182 loc = (loc / 60.) - 22.;
201 double loc = glob - 15. - (60. * (sector - 1));
207 loc = ((loc + 22.) < 0.) ? loc + 360. : loc;
208 loc = (loc + 22.) * 60.;
209 int phi_int =
static_cast<int>(std::round(loc));
215 loc = ((loc + 22.) < 0.) ? loc + 360. : 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)
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)
Geom::Theta< T > theta() const
double calc_eta(int bits)