ATLAS Offline Software
Loading...
Searching...
No Matches
TrigTRTHTHCounter.cxx File Reference
#include "TrigTRTHTHCounter.h"
#include "AthenaMonitoringKernel/Monitored.h"
#include "TrigSteeringEvent/TrigRoiDescriptor.h"
#include <cmath>
#include <memory>
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 13 of file TrigTRTHTHCounter.cxx.

13 {
14 float PHI= std::abs(phi1-phi2);
15 return std::abs(R*std::sin(PHI));
16}

◆ hth_eta_match()

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

Definition at line 32 of file TrigTRTHTHCounter.cxx.

32 {
33 return std::abs(caleta)<etaWindow or caleta*trteta>0.;
34}

◆ make_hit()

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

Definition at line 26 of file TrigTRTHTHCounter.cxx.

26 {
27 TRT_hit my_hit={phi,R,isHT};
28 return my_hit;
29}
Scalar phi() const
phi method
double R(const INavigable4Momentum *p1, const double v_eta, const double v_phi)