ATLAS Offline Software
MuonSpectrometer
MuonCalib
MuonCalibExtraTree
MuonCalibExtraUtils
src
MuonCalibSimpleGeometry.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
MuonCalibExtraUtils/MuonCalibSimpleGeometry.h
"
6
7
#include <iostream>
8
9
namespace
{
10
constexpr
double
z_match_tol = 0.00001;
11
}
12
namespace
MuonCalib
{
13
14
bool
MuonCalibDisk::inBounds
(
const
Amg::Vector3D
&
pos
,
double
tolerance
)
const
{
15
// check whether at same z
16
if
(std::abs(
pos
.z() -
zPos
) > z_match_tol)
return
false
;
17
18
// check radius distance
19
if
(
pos
.perp() -
radius
>
tolerance
)
return
false
;
20
21
return
true
;
22
}
23
24
bool
MuonCalibCylinder::inBounds
(
const
Amg::Vector3D
&
pos
,
double
tolerance
)
const
{
25
// check radius distance
26
if
(std::abs(
pos
.perp() -
radius
) > z_match_tol)
return
false
;
27
28
// check whether at same z
29
if
(std::abs(
pos
.z()) -
lenght
>
tolerance
)
return
false
;
30
31
return
true
;
32
}
33
34
}
// namespace MuonCalib
MuonCalib::MuonCalibCylinder::radius
double radius
Definition:
MuonCalibSimpleGeometry.h:30
MuonCalib::MuonCalibCylinder::lenght
double lenght
Definition:
MuonCalibSimpleGeometry.h:31
MuonCalib
CscCalcPed - algorithm that finds the Cathode Strip Chamber pedestals from an RDO.
Definition:
CscCalcPed.cxx:22
MuonCalib::MuonCalibCylinder::inBounds
bool inBounds(const Amg::Vector3D &pos, double tolerance=0.) const
Definition:
MuonCalibSimpleGeometry.cxx:24
tolerance
Definition:
suep_shower.h:17
MuonCalib::MuonCalibDisk::radius
double radius
Definition:
MuonCalibSimpleGeometry.h:23
Amg::Vector3D
Eigen::Matrix< double, 3, 1 > Vector3D
Definition:
GeoPrimitives.h:47
python.LumiBlobConversion.pos
pos
Definition:
LumiBlobConversion.py:18
MuonCalib::MuonCalibDisk::inBounds
bool inBounds(const Amg::Vector3D &pos, double tolerance=0.) const
Definition:
MuonCalibSimpleGeometry.cxx:14
MuonCalib::MuonCalibDisk::zPos
double zPos
Definition:
MuonCalibSimpleGeometry.h:22
MuonCalibSimpleGeometry.h
Generated on Sun Dec 22 2024 21:14:57 for ATLAS Offline Software by
1.8.18