ATLAS Offline Software
Loading...
Searching...
No Matches
MuonAccessors_v1.icc
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
4
5
6// System include(s):
7#include <iostream>
8// #include "MuonAccessors_v1.h"
9/// Helper macro for managing cluster moment Accessor objects
10#define DEFINE_ACCESSOR(TYPE, NAME ) \
11 case xAOD::Muon_v1::NAME: \
12 { \
13 static const SG::Accessor< TYPE > a( #NAME ); \
14 return &a; \
15 } \
16 break;
17
18namespace xAOD {
19
20
21 template<>
22 const SG::Accessor< float >*
23 parameterAccessorV1<float>( Muon_v1::ParamDef type ) {
24 switch( type ) {
25 DEFINE_ACCESSOR( float, spectrometerFieldIntegral );
26 DEFINE_ACCESSOR( float, scatteringCurvatureSignificance );
27 DEFINE_ACCESSOR( float, scatteringNeighbourSignificance );
28 DEFINE_ACCESSOR( float, momentumBalanceSignificance );
29 DEFINE_ACCESSOR( float, segmentDeltaEta );
30 DEFINE_ACCESSOR( float, segmentDeltaPhi );
31 DEFINE_ACCESSOR( float, segmentChi2OverDoF );
32 DEFINE_ACCESSOR( float, t0 );
33 DEFINE_ACCESSOR( float, beta );
34 DEFINE_ACCESSOR( float, annBarrel );
35 DEFINE_ACCESSOR( float, annEndCap );
36 DEFINE_ACCESSOR( float, innAngle );
37 DEFINE_ACCESSOR( float, midAngle );
38 DEFINE_ACCESSOR( float, msInnerMatchChi2 );
39 DEFINE_ACCESSOR( float, msOuterMatchChi2 );
40 DEFINE_ACCESSOR( float, meanDeltaADCCountsMDT );
41 DEFINE_ACCESSOR( float, CaloLRLikelihood );
42 DEFINE_ACCESSOR( float, CaloMuonScore );
43 DEFINE_ACCESSOR( float, FSR_CandidateEnergy );
44 DEFINE_ACCESSOR( float, EnergyLoss );
45 DEFINE_ACCESSOR( float, ParamEnergyLoss );
46 DEFINE_ACCESSOR( float, MeasEnergyLoss );
47 DEFINE_ACCESSOR( float, EnergyLossSigma );
48 DEFINE_ACCESSOR( float, ParamEnergyLossSigmaPlus );
49 DEFINE_ACCESSOR( float, ParamEnergyLossSigmaMinus );
50 DEFINE_ACCESSOR( float, MeasEnergyLossSigma );
51 default:
52 std::cerr << "xAOD::Muon::parameterAccessorV1 ERROR Unknown float ParamDef ("
53 << type << ") requested.";
54 if (type == Muon_v1::msInnerMatchDOF || type == Muon_v1::msOuterMatchDOF || type == Muon_v1::CaloMuonIDTag)
55 std::cerr << " (This type is actually int)"<<std::endl;
56 std::cerr << std::endl;
57 return 0;
58 }
59 }
60
61 template<>
62 const SG::Accessor< int >*
63 parameterAccessorV1<int>( Muon_v1::ParamDef type ) {
64 switch( type ) {
65 DEFINE_ACCESSOR( int, msInnerMatchDOF );
66 DEFINE_ACCESSOR( int, msOuterMatchDOF );
67 DEFINE_ACCESSOR( int, CaloMuonIDTag );
68 default:
69 std::cerr << "xAOD::Muon::parameterAccessorV1 ERROR Unknown integer ParamDef ("
70 << type << ") requested." << std::endl;
71 return 0;
72 }
73 }
74
75} // namespace xAOD