#include <WTAObject.h>
Definition at line 150 of file WTAObject.h.
◆ WTAJet()
| WTAJet::WTAJet |
( |
pt_t | pt = 0, |
|
|
eta_t | eta = 0, |
|
|
phi_t | phi = 0, |
|
|
m_t | m = 0, |
|
|
int | idx = -99, |
|
|
tech_t | jet_dr = R_PAR ) |
|
inline |
Definition at line 152 of file WTAObject.h.
152 :
158 #ifdef FLOATING_POINT_SIMULATION
159 m_ring_n =
static_cast<unsigned int>(jet_dr / 0.1);
160 #else
162 #endif
163 };
std::vector< WTATrigObj > m_ConstituentList
WTATrigObj(pt_t pt=0, eta_t eta=0, phi_t phi=0, m_t m=0, int idx=-99)
◆ CreateERingInfo()
| void WTAJet::CreateERingInfo |
( |
| ) |
|
|
inline |
Definition at line 240 of file WTAObject.h.
240 {
241
242
243
245 std::cerr << "Error: Constituent list is empty. Cannot create ERingInfo." << std::endl;
246 return;
247 }
248
249
250 WTA4JetERingInfo ering_info;
252
254 unsigned int ring_n = this->
GetRingN(tower);
256 switch(ring_n){
257 case 0:
260 break;
261 case 1:
264 break;
265 case 2:
268 break;
269 case 3:
272 break;
273 case 4:
276 break;
277 default:
278 break;
279 }
280 }
281}
WTA4JetERingInfo m_ERingInfo
unsigned int GetRingN(const WTATrigObj &tower) const
◆ d_eta()
| eta_t WTATrigObj::d_eta |
( |
const WTATrigObj & | o2 | ) |
const |
|
inlineinherited |
◆ d_phi_MPI_PI()
| phi_t WTATrigObj::d_phi_MPI_PI |
( |
const WTATrigObj & | o2 | ) |
const |
|
inlineinherited |
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 |
|
inlineinherited |
◆ eta() [2/2]
| void WTATrigObj::eta |
( |
eta_t | eta | ) |
|
|
inlineinherited |
◆ GetConstituentCount()
| tobn_t WTAJet::GetConstituentCount |
( |
| ) |
const |
|
inline |
◆ GetConstituentList()
| const std::vector< WTATrigObj > & WTAJet::GetConstituentList |
( |
| ) |
const |
|
inline |
◆ GetERingInfo()
◆ GetRingN()
| unsigned int WTAJet::GetRingN |
( |
const WTATrigObj & | tower | ) |
const |
|
inline |
Definition at line 231 of file WTAObject.h.
231 {
233 phi_t raw_dphi = abs(int32_t(this->
phi()) - int32_t(tower.
phi()));
234 phi_t d_phi = std::min(raw_dphi, PHI_LEN - raw_dphi);
235 unsigned int ring_n = std::max(
d_eta,
static_cast<eta_t
>(d_phi));
236 return ring_n;
237}
eta_t d_eta(const WTATrigObj &o2) const
◆ GetSeed()
◆ idx() [1/2]
| int WTATrigObj::idx |
( |
| ) |
const |
|
inlineinherited |
◆ idx() [2/2]
| void WTATrigObj::idx |
( |
int | idx | ) |
|
|
inlineinherited |
◆ IsAssocdR()
| bool WTATrigObj::IsAssocdR |
( |
WTATrigObj & | tower, |
|
|
tech_t | dr ) |
|
inlineinherited |
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}
float j(const xAOD::IParticle &, const xAOD::TrackMeasurementValidation &hit, const Eigen::Matrix3d &jab_inv)
◆ m() [1/2]
| m_t WTATrigObj::m |
( |
| ) |
const |
|
inlineinherited |
◆ m() [2/2]
| void WTATrigObj::m |
( |
m_t | m | ) |
|
|
inlineinherited |
◆ MergeConstituent() [1/2]
| void WTAJet::MergeConstituent |
( |
WTATrigObj & | tower | ) |
|
|
inline |
◆ MergeConstituent() [2/2]
| void WTAJet::MergeConstituent |
( |
WTATrigObj * | tower | ) |
|
|
inline |
◆ MergeWTAJet()
| void WTAJet::MergeWTAJet |
( |
WTAJet & | targetjet | ) |
|
|
inline |
Definition at line 199 of file WTAObject.h.
200{
202 this->
pt(this->
pt() + tmptower.pt());
205}
const std::vector< WTATrigObj > & GetConstituentList() const
◆ operator+()
Definition at line 56 of file WTAObject.h.
56 {
61 new_obj.
m_m = this->
m();
62 return new_obj;
63 };
◆ phi() [1/2]
| phi_t WTATrigObj::phi |
( |
| ) |
const |
|
inlineinherited |
◆ phi() [2/2]
| void WTATrigObj::phi |
( |
phi_t | phi | ) |
|
|
inlineinherited |
◆ PopOutLastConstituent()
| void WTAJet::PopOutLastConstituent |
( |
| ) |
|
|
inline |
◆ PrintERingInfo()
| void WTAJet::PrintERingInfo |
( |
| ) |
const |
|
inline |
Definition at line 283 of file WTAObject.h.
283 {
284 std::cout << "WTAJet ERing Info:" << std::endl;
285 std::cout <<
" Raw Jet Et: " << this->
pt() <<
" , Constituent Count: " << this->
GetConstituentCount() << std::endl;
286 std::cout <<
" Total TobN: " <<
m_ERingInfo.total_TobN << std::endl;
287 std::cout <<
" Ring 0: Et = " <<
m_ERingInfo.ring0_Et <<
", TobN = " <<
m_ERingInfo.ring0_TobN << std::endl;
288 std::cout <<
" Ring 1: Et = " <<
m_ERingInfo.ring1_Et <<
", TobN = " <<
m_ERingInfo.ring1_TobN << std::endl;
289 std::cout <<
" Ring 2: Et = " <<
m_ERingInfo.ring2_Et <<
", TobN = " <<
m_ERingInfo.ring2_TobN << std::endl;
290 std::cout <<
" Ring 3: Et = " <<
m_ERingInfo.ring3_Et <<
", TobN = " <<
m_ERingInfo.ring3_TobN << std::endl;
291 std::cout <<
" Ring 4: Et = " <<
m_ERingInfo.ring4_Et <<
", TobN = " <<
m_ERingInfo.ring4_TobN << std::endl;
292}
tobn_t GetConstituentCount() const
◆ pt() [1/2]
| pt_t WTATrigObj::pt |
( |
| ) |
const |
|
inlineinherited |
◆ pt() [2/2]
| void WTATrigObj::pt |
( |
pt_t | pt | ) |
|
|
inlineinherited |
◆ SetERingInfo()
◆ m_ConstituentList
◆ m_ERingInfo
◆ m_eta
◆ m_idx
◆ m_jet_dr
◆ m_m
◆ m_phi
◆ m_pt
◆ m_ring_n
| unsigned int WTAJet::m_ring_n |
|
private |
◆ m_Seed
The documentation for this class was generated from the following file: