ATLAS Offline Software
Loading...
Searching...
No Matches
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
6
7#include <iostream>
8
9namespace {
10 constexpr double z_match_tol = 0.00001;
11}
12namespace 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
bool inBounds(const Amg::Vector3D &pos, double tolerance=0.) const
bool inBounds(const Amg::Vector3D &pos, double tolerance=0.) const
Eigen::Matrix< double, 3, 1 > Vector3D
CscCalcPed - algorithm that finds the Cathode Strip Chamber pedestals from an RDO.