ATLAS Offline Software
MuonSegment_v1.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 
6 // EDM include(s):
8 
9 // Local include(s):
11 
12 namespace xAOD {
13 
14 
16  return Amg::Vector3D{x(), y(), z()};
17  }
19  return Amg::Vector3D{px(), py(), pz()};
20  }
21 
25 
26  void MuonSegment_v1::setPosition(float x, float y, float z) {
27  static const Accessor< float > acc1( "x" );
28  acc1( *this ) = x;
29  static const Accessor< float > acc2( "y" );
30  acc2( *this ) = y;
31  static const Accessor< float > acc3( "z" );
32  acc3( *this ) = z;
33  }
34 
38 
39  void MuonSegment_v1::setDirection(float px, float py, float pz) {
40  static const Accessor< float > acc1( "px" );
41  acc1( *this ) = px;
42  static const Accessor< float > acc2( "py" );
43  acc2( *this ) = py;
44  static const Accessor< float > acc3( "pz" );
45  acc3( *this ) = pz;
46  }
47 
49  AUXSTORE_PRIMITIVE_GETTER( MuonSegment_v1, float, t0error )
50 
51  void MuonSegment_v1::setT0Error(float t0, float t0error) {
52  static const Accessor< float > acc1( "t0" );
53  acc1( *this ) = t0;
54  static const Accessor< float > acc2( "t0error" );
55  acc2( *this ) = t0error;
56  }
57 
59  AUXSTORE_PRIMITIVE_GETTER( MuonSegment_v1, float, numberDoF )
60 
61  void MuonSegment_v1::setFitQuality(float chiSquared, float numberDoF) {
62  static const Accessor< float > acc1( "chiSquared" );
63  acc1( *this ) = chiSquared;
64  static const Accessor< float > acc2( "numberDoF" );
65  acc2( *this ) = numberDoF;
66  }
67 
72 
73  void MuonSegment_v1::setIdentifier(int sector, Muon::MuonStationIndex::ChIndex chamberIndex, int etaIndex, Muon::MuonStationIndex::TechnologyIndex technology) {
74  static const Accessor< int > acc1( "sector" );
75  acc1( *this ) = sector;
76  static const Accessor< int > acc2( "chamberIndex" );
77  acc2( *this ) = static_cast<int>(chamberIndex);
78  static const Accessor< int > acc3( "etaIndex" );
79  acc3( *this ) = etaIndex;
80  static const Accessor< int > acc4( "technology" );
81  acc4( *this ) = static_cast<int>(technology);
82  }
83 
84  AUXSTORE_PRIMITIVE_GETTER( MuonSegment_v1, int , nPrecisionHits )
85  AUXSTORE_PRIMITIVE_GETTER( MuonSegment_v1, int , nPhiLayers )
86  AUXSTORE_PRIMITIVE_GETTER( MuonSegment_v1, int , nTrigEtaLayers )
87 
88  void MuonSegment_v1::setNHits(int nPrecisionHits, int nPhiLayers, int nTrigEtaLayers) {
89  static const Accessor< int > acc1( "nPrecisionHits" );
90  acc1( *this ) = nPrecisionHits;
91  static const Accessor< int > acc2( "nPhiLayers" );
92  acc2( *this ) = nPhiLayers;
93  static const Accessor< int > acc3( "nTrigEtaLayers" );
94  acc3( *this ) = nTrigEtaLayers;
95  }
96 
97  #if !(defined(GENERATIONBASE) || defined(XAOD_ANALYSIS))
99  #endif // not XAOD_ANALYSIS or GENERATIONBASE
100 
101 } // namespace xAOD
python.CaloBCIDAvgAlgConfig.acc3
def acc3
Definition: CaloBCIDAvgAlgConfig.py:69
xAOD::MuonSegment_v1::x
float x() const
test_pyathena.px
px
Definition: test_pyathena.py:18
xAOD::MuonSegment_v1::direction
Amg::Vector3D direction() const
Returns the direction as Amg::Vector.
Definition: MuonSegment_v1.cxx:18
SG::Accessor< float >
AuxStoreAccessorMacros.h
xAOD::MuonSegment_v1
Class describing a MuonSegment.
Definition: MuonSegment_v1.h:33
xAOD::MuonSegment_v1::pz
float pz() const
Returns the pz.
xAOD::MuonSegment_v1::px
float px() const
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition: ICaloAffectedTool.h:24
Muon
NRpcCablingAlg reads raw condition data and writes derived condition data to the condition store.
Definition: TrackSystemController.h:45
x
#define x
xAOD::py
py
Definition: CompositeParticle_v1.cxx:160
z
#define z
python.CaloBCIDAvgAlgConfig.acc1
def acc1
Definition: CaloBCIDAvgAlgConfig.py:49
xAOD::AUXSTORE_PRIMITIVE_GETTER_WITH_CAST
AUXSTORE_PRIMITIVE_GETTER_WITH_CAST(Muon_v1, uint8_t, Muon_v1::EnergyLossType, energyLossType) AUXSTORE_PRIMITIVE_SETTER_WITH_CAST(Muon_v1
xAOD::MuonSegment_v1::py
float py() const
Returns the py.
Amg::pz
@ pz
Definition: GeoPrimitives.h:40
python.CaloBCIDAvgAlgConfig.acc2
def acc2
Definition: CaloBCIDAvgAlgConfig.py:59
python.LArRecUtilsConfig.acc4
def acc4
Definition: LArRecUtilsConfig.py:196
xAOD::MuonSegment_v1::position
Amg::Vector3D position() const
Returns the position as Amg::Vector.
Definition: MuonSegment_v1.cxx:15
Amg::Vector3D
Eigen::Matrix< double, 3, 1 > Vector3D
Definition: GeoPrimitives.h:47
xAOD::MuonSegment_v1::z
float z() const
Returns the y position.
IDTPM::chiSquared
float chiSquared(const U &p)
Definition: TrackParametersHelper.h:128
y
#define y
xAOD::MuonSegment_v1::y
float y() const
Returns the x position.
AUXSTORE_PRIMITIVE_GETTER
#define AUXSTORE_PRIMITIVE_GETTER(CL, TYPE, NAME)
Macro creating the reader function for a primitive auxiliary property.
Definition: AuxStoreAccessorMacros.h:59
Muon::MuonStationIndex::ChIndex
ChIndex
enum to classify the different chamber layers in the muon spectrometer
Definition: MuonStationIndex.h:15
Muon::MuonStationIndex::TechnologyIndex
TechnologyIndex
enum to classify the different layers in the muon spectrometer
Definition: MuonStationIndex.h:54
MuonSegment_v1.h
xAOD::AUXSTORE_OBJECT_SETTER_AND_GETTER
AUXSTORE_OBJECT_SETTER_AND_GETTER(CaloRings_v1, RingSetLinks, ringSetLinks, setRingSetLinks) unsigned CaloRings_v1
Definition: CaloRings_v1.cxx:27