ATLAS Offline Software
Classes | Functions
TrigTRTHTHCounter.cxx File Reference
#include "TrigTRTHTHCounter.h"
#include "AthenaMonitoringKernel/Monitored.h"
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 }
phi
Scalar phi() const
phi method
Definition: AmgMatrixBasePlugin.h:67
RoiUtil::PHI
@ PHI
Definition: RoiSerialise.cxx:31
TRT_hit
Definition: TrigTRTHTHCounter.cxx:15
AnalysisUtils::Delta::R
double R(const INavigable4Momentum *p1, const double v_eta, const double v_phi)
Definition: AnalysisMisc.h:49
drawFromPickle.sin
sin
Definition: drawFromPickle.py:36