ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
DetectorDescription
IRegionSelector
IRegionSelector
RoiUtil.h
Go to the documentation of this file.
1
// emacs: this is -*- c++ -*-
2
/*
3
Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
4
*/
5
//
6
// @file RoiUtil.h
7
//
8
// non-member, non friend RoiDescriptor utility functions
9
// to improve encapsulation
10
//
11
//
12
//
13
14
15
#ifndef IREGIONSELECTOR_ROIUTIL_H
16
#define IREGIONSELECTOR_ROIUTIL_H
17
18
class
IRoiDescriptor
;
19
20
namespace
RoiUtil
{
21
23
bool
contains
(
const
IRoiDescriptor
& roi,
double
z0,
double
dzdr );
24
25
bool
contains_zrange
(
const
IRoiDescriptor
& roi,
double
z0,
double
dzdr,
double
zmin,
double
zmax );
26
28
bool
contains
(
const
IRoiDescriptor
& roi,
double
z
,
double
r
,
double
phi
);
29
bool
containsPhi
(
const
IRoiDescriptor
& roi,
double
phi
);
30
bool
containsZed
(
const
IRoiDescriptor
& roi,
double
z
,
double
r
);
31
33
double
phicheck
(
double
phi
);
34
double
etacheck
(
double
eta
);
35
double
zedcheck
(
double
zed);
36
37
}
38
39
bool
operator==
(
const
IRoiDescriptor
& roi0,
const
IRoiDescriptor
& roi1 );
40
bool
operator!=
(
const
IRoiDescriptor
& roi0,
const
IRoiDescriptor
& roi1 );
41
42
43
44
45
#endif
// IREGIONSELECTOR_ROIUTIL_H
eta
Scalar eta() const
pseudorapidity method
Definition
AmgMatrixBasePlugin.h:83
phi
Scalar phi() const
phi method
Definition
AmgMatrixBasePlugin.h:67
operator==
bool operator==(const IRoiDescriptor &roi0, const IRoiDescriptor &roi1)
Definition
RoiUtil.cxx:149
operator!=
bool operator!=(const IRoiDescriptor &roi0, const IRoiDescriptor &roi1)
Definition
RoiUtil.cxx:190
z
#define z
IRoiDescriptor
Describes the API of the Region of Ineterest geometry.
Definition
IRoiDescriptor.h:23
r
int r
Definition
globals.cxx:22
RoiUtil
Definition
RoiUtil.h:20
RoiUtil::zedcheck
double zedcheck(double zed)
Definition
RoiUtil.cxx:141
RoiUtil::etacheck
double etacheck(double eta)
Definition
RoiUtil.cxx:133
RoiUtil::contains_zrange
bool contains_zrange(const IRoiDescriptor &roi, double z0, double dzdr, double zmin, double zmax)
Definition
RoiUtil.cxx:60
RoiUtil::phicheck
double phicheck(double phi)
basic range checkers
Definition
RoiUtil.cxx:123
RoiUtil::containsPhi
bool containsPhi(const IRoiDescriptor &roi, double phi)
test whether a stub is contained within the roi
Definition
RoiUtil.cxx:79
RoiUtil::contains
bool contains(const IRoiDescriptor &roi, double z0, double dzdr)
see whether a segment is contained within the roi in r-z
Definition
RoiUtil.cxx:42
RoiUtil::containsZed
bool containsZed(const IRoiDescriptor &roi, double z, double r)
Definition
RoiUtil.cxx:94
Generated on
for ATLAS Offline Software by
1.17.0