31 static const Accessor<float> accX(
"x" );
32 static const Accessor<float> accY(
"y" );
33 static const Accessor<float> accZ(
"z" );
45 static const Accessor<float> accX(
"px" );
46 static const Accessor<float> accY(
"py" );
47 static const Accessor<float> accZ(
"pz" );
57 static const Accessor<float> acc1(
"t0");
58 static const Accessor<float> acc2(
"t0error");
67 static const Accessor<float> acc1(
"chiSquared" );
68 static const Accessor<float> acc2(
"numberDoF" );
82 static const Accessor<int> acc1(
"sector" );
83 static const Accessor<int> acc2(
"chamberIndex" );
84 static const Accessor<int> acc3(
"etaIndex" );
85 static const Accessor<int> acc4(
"technology" );
99 static const Accessor<int> acc1{
"nPrecisionHits"};
100 static const Accessor<int> acc2{
"nPhiLayers"};
101 static const Accessor<int> acc3{
"nTrigEtaLayers"};
110 const std::uint8_t nTrigPhiOutliers,
111 const std::uint8_t nTrigEtaOutliers) {
113 static const Accessor<std::uint8_t> acc_prec{
"nPrecisionOutliers"};
114 static const Accessor<std::uint8_t> acc_trigEta{
"nTriggerPhiOutliers"};
115 static const Accessor<std::uint8_t> acc_trigPhi{
"nTriggerEtaOutliers"};
117 acc_prec(*
this) = nPrecOutliers;
118 acc_trigEta(*
this) = nTrigEtaOutliers;
119 acc_trigPhi(*
this) = nTrigPhiOutliers;
123 const std::uint8_t nTrigPhiHoles,
124 const std::uint8_t nTrigEtaHoles) {
125 static const Accessor<std::uint8_t> acc_prec{
"nPrecisionHoles"};
126 static const Accessor<std::uint8_t> acc_trigEta{
"nTriggerPhiHoles"};
127 static const Accessor<std::uint8_t> acc_trigPhi{
"nTriggerEtaHoles"};
129 acc_prec(*
this) = nPrecHoles;
130 acc_trigEta(*
this) = nTrigEtaHoles;
131 acc_trigPhi(*
this) = nTrigPhiHoles;
143 #if !(defined(GENERATIONBASE) || defined(XAOD_ANALYSIS))
#define AUXSTORE_PRIMITIVE_GETTER_WITH_CAST(CL, PERSTYPE, TRANSTYPE, NAME)
Macro creating a getter function with a type conversion.
#define AUXSTORE_PRIMITIVE_GETTER(CL, TYPE, NAME)
Macro creating the reader function for a primitive auxiliary property.
#define AUXSTORE_OBJECT_SETTER_AND_GETTER(CL, TYPE, NAME, SETTER)
Macro creating the accessors of complex auxiliary properties.
ElementLink implementation for ROOT usage.
Class to describe a Segment reconstructed in the MuonSpectrometer.
void setDirection(float px, float py, float pz)
Sets the direction.
float y() const
Returns the x position.
std::uint8_t nTrigEtaLayers() const
Returns the number of trigger eta hits.
float pz() const
Returns the pz.
float numberDoF() const
Returns the numberDoF.
MuonSegment_v1()=default
Default constructor.
void setFitQuality(float chiSquared, float numberDoF)
Set the 'Fit Quality' information.
Amg::Vector3D direction() const
Returns the direction as Amg::Vector.
void setT0Error(float t0, float t0Error)
Sets the time error.
void setNHits(const std::uint8_t nPrecisionHits, const std::uint8_t nPhiLayers, const std::uint8_t nTrigEtaLayers)
Assign the segment hit summary.
void setNOutliers(const std::uint8_t nPrecOutliers, const std::uint8_t nTrigPhiOutliers, const std::uint8_t nTrigEtaOutliers)
Assign the number of hits with a large pull per hit category.
void setNHoles(const std::uint8_t nPrecHoles, const std::uint8_t nTrigPhiHoles, const std::uint8_t nTrigEtaHoles)
Assign the number of expected but missing hits.
std::uint8_t nPrecisionHits() const
Returns the number of precision hits.
float py() const
Returns the py.
void setPosition(float x, float y, float z)
Sets the global position.
::Muon::MuonStationIndex::TechnologyIndex technology() const
Returns the main technology of the segment.
void setIdentifier(const std::uint8_t sector, const ::Muon::MuonStationIndex::ChIndex chamberIndex, const std::int8_t etaIndex, const ::Muon::MuonStationIndex::TechnologyIndex technology)
Set the Identifier fields of the Segment.
::Muon::MuonStationIndex::ChIndex chamberIndex() const
Returns the chamber index.
Amg::Vector3D position() const
Returns the position as Amg::Vector.
int etaIndex() const
Returns the eta index, which corresponds to stationEta in the offline identifiers (and the ).
float t0error() const
Returns the time error.
std::uint8_t nPhiLayers() const
Returns the number of trigger phi hits.
float z() const
Returns the y position.
Eigen::Matrix< double, 3, 1 > Vector3D
TechnologyIndex
enum to classify the different layers in the muon spectrometer
constexpr int toInt(const EnumType enumVal)
ChIndex
enum to classify the different chamber layers in the muon spectrometer
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.