ATLAS Offline Software
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
beamspotman.r
def r
Definition: beamspotman.py:676
RoiUtil::phicheck
double phicheck(double phi)
basic range checkers
Definition: RoiUtil.cxx:123
phi
Scalar phi() const
phi method
Definition: AmgMatrixBasePlugin.h:64
eta
Scalar eta() const
pseudorapidity method
Definition: AmgMatrixBasePlugin.h:79
PixelAthClusterMonAlgCfg.zmin
zmin
Definition: PixelAthClusterMonAlgCfg.py:176
RoiUtil::containsPhi
bool containsPhi(const IRoiDescriptor &roi, double phi)
test whether a stub is contained within the roi
Definition: RoiUtil.cxx:79
RoiUtil::containsZed
bool containsZed(const IRoiDescriptor &roi, double z, double r)
Definition: RoiUtil.cxx:94
operator==
bool operator==(const IRoiDescriptor &roi0, const IRoiDescriptor &roi1)
Definition: RoiUtil.cxx:149
z
#define z
IRoiDescriptor
Describes the API of the Region of Ineterest geometry.
Definition: IRoiDescriptor.h:23
RoiUtil::zedcheck
double zedcheck(double zed)
Definition: RoiUtil.cxx:141
PixelAthClusterMonAlgCfg.zmax
zmax
Definition: PixelAthClusterMonAlgCfg.py:176
TRT::Track::z0
@ z0
Definition: InnerDetector/InDetCalibEvent/TRT_CalibData/TRT_CalibData/TrackInfo.h:63
RoiUtil
Definition: RoiUtil.h:20
RoiUtil::contains_zrange
bool contains_zrange(const IRoiDescriptor &roi, double z0, double dzdr, double zmin, double zmax)
Definition: RoiUtil.cxx:60
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
operator!=
bool operator!=(const IRoiDescriptor &roi0, const IRoiDescriptor &roi1)
Definition: RoiUtil.cxx:190
RoiUtil::etacheck
double etacheck(double eta)
Definition: RoiUtil.cxx:133