ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
graphics
VP1
VP1Systems
VP1RawDataSystems
src
RpcDigitCuts.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef VP1_RPCDIGITCUTS_H
6
#define VP1_RPCDIGITCUTS_H
7
8
#include "
VP1Base/VP1Interval.h
"
9
#include <cmath>
10
11
struct
RpcDigitCuts
{
12
bool
showEta
=
true
;
13
bool
showPhi
=
true
;
14
bool
showPrimarySide
=
true
;
15
bool
showOppositeSide
=
true
;
16
bool
keepMissingToT
=
true
;
17
VP1Interval
timeRange
{-
VP1Interval::inf
(),
VP1Interval::inf
()};
18
VP1Interval
totRange
{-
VP1Interval::inf
(),
VP1Interval::inf
()};
19
20
// Times are in ns; a negative ToT denotes an absent measurement.
21
bool
accepts
(
bool
phi
,
double
time,
double
tot,
bool
oppositeSide)
const
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
}
31
};
32
33
#endif
phi
Scalar phi() const
phi method
Definition
AmgMatrixBasePlugin.h:67
VP1Interval.h
VP1Interval
Definition
VP1Interval.h:23
VP1Interval::inf
static double inf()
Definition
VP1Interval.h:25
RpcDigitCuts
Definition
RpcDigitCuts.h:11
RpcDigitCuts::showEta
bool showEta
Definition
RpcDigitCuts.h:12
RpcDigitCuts::totRange
VP1Interval totRange
Definition
RpcDigitCuts.h:18
RpcDigitCuts::timeRange
VP1Interval timeRange
Definition
RpcDigitCuts.h:17
RpcDigitCuts::accepts
bool accepts(bool phi, double time, double tot, bool oppositeSide) const
Definition
RpcDigitCuts.h:21
RpcDigitCuts::showPrimarySide
bool showPrimarySide
Definition
RpcDigitCuts.h:14
RpcDigitCuts::keepMissingToT
bool keepMissingToT
Definition
RpcDigitCuts.h:16
RpcDigitCuts::showPhi
bool showPhi
Definition
RpcDigitCuts.h:13
RpcDigitCuts::showOppositeSide
bool showOppositeSide
Definition
RpcDigitCuts.h:15
Generated on
for ATLAS Offline Software by
1.17.0