1 #ifndef L1TMuonEndCap_TrackTools_h 2 #define L1TMuonEndCap_TrackTools_h 22 while (deg < -180.) deg += 360.;
23 while (deg >= +180.) deg -= 360.;
35 while (deg >= 180.) deg -= 180.;
36 if (deg >= 180./2.) deg = 180. - deg;
43 if (rad >=
M_PI/2.) rad =
M_PI - rad;
62 double pt =
static_cast<double>(
bits);
69 int gmt_pt =
static_cast<int>(std::round(val));
70 gmt_pt = (gmt_pt > 511) ? 511 : gmt_pt;
77 double eta =
static_cast<double>(
bits);
97 eta = (endcap == -1) ? -eta : eta;
103 int gmt_eta =
static_cast<int>(std::round(val));
110 double theta =
static_cast<double>(theta_int);
111 theta = theta * (45.0-8.5)/128. + 8.5;
120 double theta_rad = 2. * std::atan(
std::exp(-1.*eta));
129 theta = (endcap == -1) ? (180. - theta) :
theta;
130 theta = (theta - 8.5) * 128./(45.0-8.5);
131 int theta_int =
static_cast<int>(std::round(theta));
136 theta = (endcap == -1) ? (180. - theta) :
theta;
137 theta = (theta - 8.5) * (128./4.)/(45.0-8.5);
138 int theta_int =
static_cast<int>(std::round(theta));
143 double theta = std::atan2(1.0, std::sinh(eta));
154 double glob = loc + 15. + (60. * (sector-1));
155 glob = (glob < 180.) ? glob : glob - 360.;
164 double loc =
static_cast<double>(
bits);
165 loc = (loc/60.) - 22.;
186 double loc = glob - 15. - (60. * (sector-1));
192 loc = ((loc + 22.) < 0.) ? loc + 360. :
loc;
193 loc = (loc + 22.) * 60.;
194 int phi_int =
static_cast<int>(std::round(loc));
200 loc = ((loc + 22.) < 0.) ? loc + 360. :
loc;
201 loc = (loc + 22.) * 60./4.;
202 int phi_int =
static_cast<int>(std::round(loc));
207 double phi =
static_cast<double>(
bits);
208 phi = (phi * 360./576.) + (180./576.);
222 val = (val - 180./576.) / (360./576.);
223 int gmt_phi =
static_cast<int>(std::round(val));
int calc_eta_GMT(double val)
int calc_chamber(int station, int sector, int subsector, int ring, int csc_ID)
double calc_phi_glob_rad(double loc, int sector)
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision bits
Geom::Theta< T > theta() const
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)
double calc_phi_loc_rad(int bits)
double calc_theta_deg_from_eta(double eta)
int calc_theta_int_rpc(double theta, int endcap)
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)
Tan< T >::type tan(const T &t)
int calc_phi_loc_int_rpc(double glob, int sector)
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)
double range_phi_rad(double rad)
double range_theta_rad(double rad)
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)
double calc_phi_GMT_deg(int bits)
double rad_to_deg(double rad)
double range_theta_deg(double deg)
double calc_phi_GMT_rad(int bits)
double calc_eta(int bits)
double range_phi_deg(double deg)