ATLAS Offline Software
Loading...
Searching...
No Matches
TrigTRTHTHCounter.cxx File Reference
Include dependency graph for TrigTRTHTHCounter.cxx:

Go to the source code of this file.

Classes

struct  TRT_hit

Functions

float dist2COR (float R, float phi1, float phi2)
TRT_hit make_hit (float phi, float R, bool isHT)
bool hth_eta_match (float caleta, float trteta, float etaWindow)

Function Documentation

◆ dist2COR()

float dist2COR ( float R,
float phi1,
float phi2 )

Definition at line 9 of file TrigTRTHTHCounter.cxx.

9 {
10 float PHI= std::abs(phi1-phi2);
11 return std::abs(R*std::sin(PHI));
12}

◆ hth_eta_match()

bool hth_eta_match ( float caleta,
float trteta,
float etaWindow )

Definition at line 28 of file TrigTRTHTHCounter.cxx.

28 {
29 return std::abs(caleta)<etaWindow or caleta*trteta>0.;
30}

◆ make_hit()

TRT_hit make_hit ( float phi,
float R,
bool isHT )

Definition at line 22 of file TrigTRTHTHCounter.cxx.

22 {
23 TRT_hit my_hit={phi,R,isHT};
24 return my_hit;
25}
Scalar phi() const
phi method
double R(const INavigable4Momentum *p1, const double v_eta, const double v_phi)