ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
MuonSpectrometer
MuonPhaseII
Event
MuonSpacePoint
src
SpacePointHelpers.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
#include "
MuonSpacePoint/SpacePointHelpers.h
"
5
#include "
xAODMuonPrepData/sTgcMeasurement.h
"
6
7
namespace
MuonR4
{
8
9
bool
isPrecisionHit
(
const
SpacePoint
&
hit
) {
10
using
enum
xAOD::UncalibMeasType
;
11
return
hit
.type() == MdtDriftCircleType ||
hit
.type() == MMClusterType ||
12
(
hit
.type() == sTgcStripType &&
13
static_cast<
const
xAOD::sTgcMeasurement
*
>
(
hit
.primaryMeasurement())->channelType() ==
14
sTgcIdHelper::sTgcChannelTypes::Strip
);
15
}
16
bool
isGoodHit
(
const
CalibratedSpacePoint
&
hit
) {
17
using
enum
CalibratedSpacePoint::State
;
18
return
hit
.fitState() == Valid;
19
}
20
bool
isPrecisionHit
(
const
CalibratedSpacePoint
&
hit
) {
21
using
enum
xAOD::UncalibMeasType
;
22
if
(
hit
.type() ==
xAOD::UncalibMeasType::Other
){
23
return
false
;
24
}
25
return
isGoodHit
(
hit
) &&
isPrecisionHit
(*
hit
.spacePoint());
26
}
27
28
}
hit
bool hit(const Container &ids, int pdgId)
Definition
JetIRCSafeLabelTool.cxx:64
SpacePointHelpers.h
MuonR4::CalibratedSpacePoint
The calibrated Space point is created during the calibration process.
Definition
CalibratedSpacePoint.h:15
MuonR4::CalibratedSpacePoint::State
State
State flag to distinguish different space point states.
Definition
CalibratedSpacePoint.h:27
MuonR4::SpacePoint
The muon space point is the combination of two uncalibrated measurements one of them measures the eta...
Definition
MuonSpectrometer/MuonPhaseII/Event/MuonSpacePoint/MuonSpacePoint/SpacePoint.h:25
sTgcIdHelper::Strip
@ Strip
Definition
sTgcIdHelper.h:190
MuonR4
This header ties the generic definitions in this package.
Definition
GlobalPattern.h:14
MuonR4::isPrecisionHit
bool isPrecisionHit(const SpacePoint &hit)
Returns whether the uncalibrated spacepoint is a precision hit (Mdt, micromegas, stgc strips).
Definition
SpacePointHelpers.cxx:9
MuonR4::isGoodHit
bool isGoodHit(const CalibratedSpacePoint &hit)
Returns whether the calibrated spacepoint is valid and therefore suitable to be used in the segment f...
Definition
SpacePointHelpers.cxx:16
xAOD::UncalibMeasType
UncalibMeasType
Define the type of the uncalibrated measurement.
Definition
MeasurementDefs.h:24
xAOD::UncalibMeasType::Other
@ Other
Definition
MeasurementDefs.h:25
xAOD::sTgcMeasurement
sTgcMeasurement_v1 sTgcMeasurement
Definition
sTgcMeasurementFwd.h:11
sTgcMeasurement.h
Generated on
for ATLAS Offline Software by
1.17.0