 |
ATLAS Offline Software
|
Go to the documentation of this file.
7 #ifdef BITWISE_SIMULATION
9 typedef long long int IntOrFloat;
10 const IntOrFloat
PI = 32;
11 const IntOrFloat R2PAR = 16;
12 #elif defined(FLOATING_POINT_SIMULATION)
15 typedef float IntOrFloat;
16 const IntOrFloat
PI = 3.14159265;
17 const IntOrFloat R2PAR = 0.16;
19 #error "Simulation type not defined. Define either BITWISE_SIMULATION or FLOATING_POINT_SIMULATION."
23 static void SortByPt(std::vector<T>&
list)
26 [](
const T &
a,
const T &
b)
28 return a.pt() > b.pt();
38 IntOrFloat
pt()
const {
return m_pt;};
44 IntOrFloat
m()
const {
return m_m;};
62 new_obj.
m_pt = this->
pt() + obj.
pt();
65 new_obj.
m_m = this->
m();
94 IntOrFloat d_eta_tmp =
d_eta(
o2);
95 IntOrFloat
tmp = (d_phi * d_phi) + (d_eta_tmp * d_eta_tmp);
100 auto dR2 = this->
dR2(tower);
106 WTAJet (IntOrFloat
pt = 0, IntOrFloat
eta = 0, IntOrFloat
phi = 0, IntOrFloat
m = 0, IntOrFloat jet_dr2 = R2PAR) :
125 this->
pt(this->
pt() + tower.
pt());
131 this->
pt(this->
pt() + tower->
pt());
138 this->
pt(this->
pt() + tmptower.
pt());
147 this->
pt(this->
pt() - lastconst.
pt());
void MergeWTAJet(WTAJet &targetjet)
unsigned int GetConstituentCount() const
void stable_sort(std::reverse_iterator< DataModel_detail::iterator< DVL > > beg, std::reverse_iterator< DataModel_detail::iterator< DVL > > end, Compare comp)
Specialization of stable_sort for DataVector/List.
bool IsAssocdR(WTATrigObj &tower, IntOrFloat dr2)
std::vector< WTATrigObj > m_ConstituentList
IntOrFloat d_phi_0_2PI(WTATrigObj o2)
WTATrigObj operator+(const WTATrigObj &obj)
void MergeConstituent(WTATrigObj &tower)
IntOrFloat d_eta(WTATrigObj o2)
void PopOutLastConstituent()
IntOrFloat dR2(WTATrigObj o2)
friend bool operator>(const WTATrigObj &o1, const WTATrigObj &o2)
friend bool operator<(const WTATrigObj &o1, const WTATrigObj &o2)
const std::vector< WTATrigObj > & GetConstituentList() const
IntOrFloat d_phi_MPI_PI(WTATrigObj o2)
friend bool operator<=(const WTATrigObj &o1, const WTATrigObj &o2)
WTATrigObj(IntOrFloat pt=0, IntOrFloat eta=0, IntOrFloat phi=0, IntOrFloat m=0)
WTAJet(IntOrFloat pt=0, IntOrFloat eta=0, IntOrFloat phi=0, IntOrFloat m=0, IntOrFloat jet_dr2=R2PAR)
friend bool operator>=(const WTATrigObj &o1, const WTATrigObj &o2)