 |
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;};
64 new_obj.
m_pt = this->
pt() + obj.
pt();
67 new_obj.
m_m = this->
m();
97 IntOrFloat d_eta_tmp =
d_eta(
o2);
98 IntOrFloat
tmp = (d_phi * d_phi) + (d_eta_tmp * d_eta_tmp);
103 auto dR2 = this->
dR2(tower);
109 WTAJet (IntOrFloat
pt = 0, IntOrFloat
eta = 0, IntOrFloat
phi = 0, IntOrFloat
m = 0,
int idx = -99, IntOrFloat jet_dr2 = R2PAR) :
133 this->
pt(this->
pt() + tower.
pt());
139 this->
pt(this->
pt() + tower->
pt());
146 this->
pt(this->
pt() + tmptower.
pt());
154 this->
pt(this->
pt() - lastconst.
pt());
void MergeWTAJet(WTAJet &targetjet)
IntOrFloat d_eta(const WTATrigObj &o2)
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 dR2(const WTATrigObj &o2)
WTATrigObj operator+(const WTATrigObj &obj)
void MergeConstituent(WTATrigObj &tower)
void PopOutLastConstituent()
WTAJet(IntOrFloat pt=0, IntOrFloat eta=0, IntOrFloat phi=0, IntOrFloat m=0, int idx=-99, IntOrFloat jet_dr2=R2PAR)
WTATrigObj(IntOrFloat pt=0, IntOrFloat eta=0, IntOrFloat phi=0, IntOrFloat m=0, int idx=-99)
IntOrFloat d_phi_MPI_PI(const WTATrigObj &o2)
IntOrFloat d_phi_0_2PI(const 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
friend bool operator<=(const WTATrigObj &o1, const WTATrigObj &o2)
const WTATrigObj & GetSeed() const
friend bool operator>=(const WTATrigObj &o1, const WTATrigObj &o2)