#include <CscRegUtils.h>
|
| UtilTools () |
|
double | calc_theta (double eta) const |
|
double | calc_theta (double x, double y, double z) const |
|
double | calc_eta (double x, double y, double z) const |
|
double | calc_phi (double x, double y) const |
|
double | calc_dphi (double phi1, double phi2) const |
|
double | calc_sumsq (double x, double y) const |
|
double | calc_sumsq (double x, double y, double z) const |
|
double | cotan (double theta) const |
|
double | relative_error (double measured, double reference) const |
|
double | average_phi (double phi1, double phi2) const |
|
Definition at line 25 of file CscRegUtils.h.
◆ UtilTools()
TrigL2MuonSA::UtilTools::UtilTools |
( |
| ) |
|
|
inline |
◆ average_phi()
double TrigL2MuonSA::UtilTools::average_phi |
( |
double |
phi1, |
|
|
double |
phi2 |
|
) |
| const |
Definition at line 243 of file CscRegUtils.cxx.
247 if (phi1*phi2<0. && std::abs(phi1)>
M_PI/2.){
249 double tmp1 = (phi1>0.) ? phi1 -
M_PI : phi1 +
M_PI;
258 phi = (phi1+phi2)/2.;
◆ calc_dphi()
double TrigL2MuonSA::UtilTools::calc_dphi |
( |
double |
phi1, |
|
|
double |
phi2 |
|
) |
| const |
◆ calc_eta()
double TrigL2MuonSA::UtilTools::calc_eta |
( |
double |
x, |
|
|
double |
y, |
|
|
double |
z |
|
) |
| const |
|
inline |
◆ calc_phi()
double TrigL2MuonSA::UtilTools::calc_phi |
( |
double |
x, |
|
|
double |
y |
|
) |
| const |
Definition at line 207 of file CscRegUtils.cxx.
209 double abs_y=std::abs(
y);
210 double abs_sine=abs_y/std::sqrt(
x*
x+
y*
y);
214 return std::asin(abs_sine);
215 }
else if(x<=0 && y>0){
216 return M_PI-std::asin(abs_sine);
217 }
else if(
x<0 &&
y<=0){
218 return M_PI+std::asin(abs_sine)-2*
M_PI;
219 }
else if(
x>=0 &&
y<0){
220 return 2*
M_PI-std::asin(abs_sine)-2*
M_PI;
◆ calc_sumsq() [1/2]
double TrigL2MuonSA::UtilTools::calc_sumsq |
( |
double |
x, |
|
|
double |
y |
|
) |
| const |
|
inline |
◆ calc_sumsq() [2/2]
double TrigL2MuonSA::UtilTools::calc_sumsq |
( |
double |
x, |
|
|
double |
y, |
|
|
double |
z |
|
) |
| const |
|
inline |
◆ calc_theta() [1/2]
double TrigL2MuonSA::UtilTools::calc_theta |
( |
double |
eta | ) |
const |
|
inline |
◆ calc_theta() [2/2]
double TrigL2MuonSA::UtilTools::calc_theta |
( |
double |
x, |
|
|
double |
y, |
|
|
double |
z |
|
) |
| const |
|
inline |
◆ cotan()
double TrigL2MuonSA::UtilTools::cotan |
( |
double |
theta | ) |
const |
|
inline |
◆ relative_error()
double TrigL2MuonSA::UtilTools::relative_error |
( |
double |
measured, |
|
|
double |
reference |
|
) |
| const |
|
inline |
The documentation for this class was generated from the following files: