ATLAS Offline Software
Loading...
Searching...
No Matches
MuonCalibHit_E.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3*/
4
5#include <utility>
6
8
9namespace MuonCalib {
10 MuonCalibHit_E::MuonCalibHit_E(const MuonFixedId& id, definePars pars) : m_id{id}, m_pars{std::move(pars)} {}
11
12 const MuonFixedId& MuonCalibHit_E::identify() const { return m_id; }
13 const Amg::Vector3D& MuonCalibHit_E::position() const { return m_pars.pos; }
14 float MuonCalibHit_E::driftRadius() const { return m_pars.driftRadius; }
15 float MuonCalibHit_E::error() const { return m_pars.error; }
16 float MuonCalibHit_E::residual() const { return m_pars.resi; }
17 float MuonCalibHit_E::pull() const { return m_pars.pull; }
18 int MuonCalibHit_E::type() const { return m_pars.measType; }
19
20 void MuonCalibHit_E::setId(const MuonFixedId& id) { m_id = id; }
21 void MuonCalibHit_E::setPosition(const Amg::Vector3D& pos) { m_pars.pos = pos; }
22
24 void MuonCalibHit_E::setError(float error) { m_pars.error = error; }
25 void MuonCalibHit_E::setResidual(float res) { m_pars.resi = res; }
26
27 void MuonCalibHit_E::setPull(float pull) { m_pars.pull = pull; }
28 void MuonCalibHit_E::setType(int type) { m_pars.measType = type; }
29
30} // namespace MuonCalib
std::pair< std::vector< unsigned int >, bool > res
const Amg::Vector3D & position() const
return the (global) position of the MuonCalibHit
void setDriftRadius(float driftRadius)
sets the error on the driftradius of the MuonCalibHit
int type() const
return the type of measurement
const MuonFixedId & identify() const
return the MuonCalib::MuonFixedId of the MuonCalibHit
void setPull(float pull)
sets the error on the driftradius of the MuonCalibHit
void setResidual(float res)
sets the error on the driftradius of the MuonCalibHit
MuonCalibHit_E()=default
default constructor
float error() const
return the error on the driftradius of the MuonCalibHit
float residual() const
return the residual
float pull() const
return the pull
MuonFixedId m_id
Identifier of the (athena-independent) type MuonCalib::MuonFixedId.
void setError(float error)
sets the error on the driftradius of the MuonCalibHit
void setId(const MuonFixedId &id)
sets the (global) position of the MuonCalibHit
float driftRadius() const
return the driftradius of the MuonCalibHit
void setPosition(const Amg::Vector3D &pos)
sets the driftradius of the MuonCalibHit
Implements fixed identifiers not dependent upon Athena Identifier for internal use in the calibration...
Definition MuonFixedId.h:50
Eigen::Matrix< double, 3, 1 > Vector3D
CscCalcPed - algorithm that finds the Cathode Strip Chamber pedestals from an RDO.
STL namespace.