ATLAS Offline Software
MuonSegment_v1.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 
6 // EDM include(s):
8 
9 // Local include(s):
11 
12 namespace xAOD {
13 
15  : SG::AuxElement() {
16  }
17 
21 
22  void MuonSegment_v1::setPosition(float x, float y, float z) {
23  static const Accessor< float > acc1( "x" );
24  acc1( *this ) = x;
25  static const Accessor< float > acc2( "y" );
26  acc2( *this ) = y;
27  static const Accessor< float > acc3( "z" );
28  acc3( *this ) = z;
29  }
30 
34 
35  void MuonSegment_v1::setDirection(float px, float py, float pz) {
36  static const Accessor< float > acc1( "px" );
37  acc1( *this ) = px;
38  static const Accessor< float > acc2( "py" );
39  acc2( *this ) = py;
40  static const Accessor< float > acc3( "pz" );
41  acc3( *this ) = pz;
42  }
43 
45  AUXSTORE_PRIMITIVE_GETTER( MuonSegment_v1, float, t0error )
46 
47  void MuonSegment_v1::setT0Error(float t0, float t0error) {
48  static const Accessor< float > acc1( "t0" );
49  acc1( *this ) = t0;
50  static const Accessor< float > acc2( "t0error" );
51  acc2( *this ) = t0error;
52  }
53 
55  AUXSTORE_PRIMITIVE_GETTER( MuonSegment_v1, float, numberDoF )
56 
57  void MuonSegment_v1::setFitQuality(float chiSquared, float numberDoF) {
58  static const Accessor< float > acc1( "chiSquared" );
59  acc1( *this ) = chiSquared;
60  static const Accessor< float > acc2( "numberDoF" );
61  acc2( *this ) = numberDoF;
62  }
63 
68 
69  void MuonSegment_v1::setIdentifier(int sector, Muon::MuonStationIndex::ChIndex chamberIndex, int etaIndex, Muon::MuonStationIndex::TechnologyIndex technology) {
70  static const Accessor< int > acc1( "sector" );
71  acc1( *this ) = sector;
72  static const Accessor< int > acc2( "chamberIndex" );
73  acc2( *this ) = static_cast<int>(chamberIndex);
74  static const Accessor< int > acc3( "etaIndex" );
75  acc3( *this ) = etaIndex;
76  static const Accessor< int > acc4( "technology" );
77  acc4( *this ) = static_cast<int>(technology);
78  }
79 
80  AUXSTORE_PRIMITIVE_GETTER( MuonSegment_v1, int , nPrecisionHits )
81  AUXSTORE_PRIMITIVE_GETTER( MuonSegment_v1, int , nPhiLayers )
82  AUXSTORE_PRIMITIVE_GETTER( MuonSegment_v1, int , nTrigEtaLayers )
83 
84  void MuonSegment_v1::setNHits(int nPrecisionHits, int nPhiLayers, int nTrigEtaLayers) {
85  static const Accessor< int > acc1( "nPrecisionHits" );
86  acc1( *this ) = nPrecisionHits;
87  static const Accessor< int > acc2( "nPhiLayers" );
88  acc2( *this ) = nPhiLayers;
89  static const Accessor< int > acc3( "nTrigEtaLayers" );
90  acc3( *this ) = nTrigEtaLayers;
91  }
92 
93  #if !(defined(GENERATIONBASE) || defined(XAOD_ANALYSIS))
95  #endif // not XAOD_ANALYSIS or GENERATIONBASE
96 
97 } // namespace xAOD
python.CaloBCIDAvgAlgConfig.acc3
def acc3
Definition: CaloBCIDAvgAlgConfig.py:69
test_pyathena.px
px
Definition: test_pyathena.py:18
SG
Forward declaration.
Definition: CaloCellPacker_400_500.h:32
SG::Accessor< float >
AuxStoreAccessorMacros.h
ALFA_EventTPCnv_Dict::t0
std::vector< ALFA_RawData_p1 > t0
Definition: ALFA_EventTPCnvDict.h:42
xAOD::MuonSegment_v1
Class describing a MuonSegment.
Definition: MuonSegment_v1.h:33
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition: ICaloAffectedTool.h:24
Muon
This class provides conversion from CSC RDO data to CSC Digits.
Definition: TrackSystemController.h:49
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
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
IDTPM::chiSquared
float chiSquared(const U &p)
Definition: TrackParametersHelper.h:136
y
#define y
xAOD::MuonSegment_v1::MuonSegment_v1
MuonSegment_v1()
Default constructor.
Definition: MuonSegment_v1.cxx:14
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