#include <WTAObject.h>
Definition at line 26 of file WTAObject.h.
◆ WTATrigObj()
| WTATrigObj::WTATrigObj |
( |
pt_t | pt = 0, |
|
|
eta_t | eta = 0, |
|
|
phi_t | phi = 0, |
|
|
m_t | m = 0, |
|
|
int | idx = -99 ) |
|
inline |
◆ d_eta()
| eta_t WTATrigObj::d_eta |
( |
const WTATrigObj & | o2 | ) |
const |
|
inline |
◆ d_phi_MPI_PI()
| phi_t WTATrigObj::d_phi_MPI_PI |
( |
const WTATrigObj & | o2 | ) |
const |
|
inline |
Definition at line 90 of file WTAObject.h.
91{
95 } else {
97 }
98
99
100 if (tmp < -HALF_PHI_LEN)
tmp =
tmp + PHI_LEN;
101 else if (tmp >= HALF_PHI_LEN)
tmp =
tmp - PHI_LEN;
102
104}
◆ eta() [1/2]
| eta_t WTATrigObj::eta |
( |
| ) |
const |
|
inline |
◆ eta() [2/2]
| void WTATrigObj::eta |
( |
eta_t | eta | ) |
|
|
inline |
◆ idx() [1/2]
| int WTATrigObj::idx |
( |
| ) |
const |
|
inline |
◆ idx() [2/2]
| void WTATrigObj::idx |
( |
int | idx | ) |
|
|
inline |
◆ IsAssocdR()
| bool WTATrigObj::IsAssocdR |
( |
WTATrigObj & | tower, |
|
|
tech_t | dr ) |
|
inline |
Definition at line 115 of file WTAObject.h.
115 {
116 assert(tower.
eta() >= 0 &&
"Input tower.eta() must be non-negative");
117 assert(tower.
phi() >= 0 &&
"Input tower.phi() must be non-negative");
118 assert(dr >= 0 && "Input dr must be non-negative");
120 phi_t raw_dphi = abs(int32_t(this->
phi()) - int32_t(tower.
phi()));
121 phi_t d_phi = std::min(raw_dphi, PHI_LEN - raw_dphi);
122 bool assoc = false;
123 for (
unsigned int i = 0;
i <=
dr;
i++){
124 unsigned int max_j = sqrt(static_cast<double>(dr*dr - i*i));
125 for(
unsigned int j = 0;
j <= max_j;
j++){
126 if(
d_eta <= i && d_phi <= j){
127 assoc = true;
128 break;
129 }
130 }
131 }
132 return assoc;
133}
eta_t d_eta(const WTATrigObj &o2) const
float j(const xAOD::IParticle &, const xAOD::TrackMeasurementValidation &hit, const Eigen::Matrix3d &jab_inv)
◆ m() [1/2]
| m_t WTATrigObj::m |
( |
| ) |
const |
|
inline |
◆ m() [2/2]
| void WTATrigObj::m |
( |
m_t | m | ) |
|
|
inline |
◆ operator+()
Definition at line 56 of file WTAObject.h.
56 {
61 new_obj.
m_m = this->
m();
62 return new_obj;
63 };
WTATrigObj(pt_t pt=0, eta_t eta=0, phi_t phi=0, m_t m=0, int idx=-99)
◆ phi() [1/2]
| phi_t WTATrigObj::phi |
( |
| ) |
const |
|
inline |
◆ phi() [2/2]
| void WTATrigObj::phi |
( |
phi_t | phi | ) |
|
|
inline |
◆ pt() [1/2]
| pt_t WTATrigObj::pt |
( |
| ) |
const |
|
inline |
◆ pt() [2/2]
| void WTATrigObj::pt |
( |
pt_t | pt | ) |
|
|
inline |
◆ operator<
◆ operator<=
◆ operator>
◆ operator>=
◆ m_eta
◆ m_idx
◆ m_m
◆ m_phi
◆ m_pt
The documentation for this class was generated from the following file: