ATLAS Offline Software
Loading...
Searching...
No Matches
RpcDigitCuts Struct Reference

#include <RpcDigitCuts.h>

Collaboration diagram for RpcDigitCuts:

Public Member Functions

bool accepts (bool phi, double time, double tot, bool oppositeSide) const

Public Attributes

bool showEta = true
bool showPhi = true
bool showPrimarySide = true
bool showOppositeSide = true
bool keepMissingToT = true
VP1Interval timeRange {-VP1Interval::inf(), VP1Interval::inf()}
VP1Interval totRange {-VP1Interval::inf(), VP1Interval::inf()}

Detailed Description

Definition at line 11 of file RpcDigitCuts.h.

Member Function Documentation

◆ accepts()

bool RpcDigitCuts::accepts ( bool phi,
double time,
double tot,
bool oppositeSide ) const
inline

Definition at line 21 of file RpcDigitCuts.h.

22 {
23 if ((phi ? !showPhi : !showEta) ||
24 (oppositeSide ? !showOppositeSide : !showPrimarySide))
25 return false;
26 if (!std::isfinite(time) || !std::isfinite(tot) ||
27 timeRange.isEmpty() || totRange.isEmpty() || !timeRange.contains(time))
28 return false;
29 return tot < 0 ? keepMissingToT : totRange.contains(tot);
30 }
Scalar phi() const
phi method
VP1Interval totRange
VP1Interval timeRange
bool showPrimarySide
bool keepMissingToT
bool showOppositeSide

Member Data Documentation

◆ keepMissingToT

bool RpcDigitCuts::keepMissingToT = true

Definition at line 16 of file RpcDigitCuts.h.

◆ showEta

bool RpcDigitCuts::showEta = true

Definition at line 12 of file RpcDigitCuts.h.

◆ showOppositeSide

bool RpcDigitCuts::showOppositeSide = true

Definition at line 15 of file RpcDigitCuts.h.

◆ showPhi

bool RpcDigitCuts::showPhi = true

Definition at line 13 of file RpcDigitCuts.h.

◆ showPrimarySide

bool RpcDigitCuts::showPrimarySide = true

Definition at line 14 of file RpcDigitCuts.h.

◆ timeRange

VP1Interval RpcDigitCuts::timeRange {-VP1Interval::inf(), VP1Interval::inf()}

Definition at line 17 of file RpcDigitCuts.h.

static double inf()
Definition VP1Interval.h:25

◆ totRange

VP1Interval RpcDigitCuts::totRange {-VP1Interval::inf(), VP1Interval::inf()}

Definition at line 18 of file RpcDigitCuts.h.


The documentation for this struct was generated from the following file: