ATLAS Offline Software
|
Placeholder for what will later be the muon segment EDM representation. More...
#include <Segment.h>
Public Types | |
using | MeasType = std::unique_ptr< CalibratedSpacePoint > |
using | MeasVec = std::vector< MeasType > |
Public Member Functions | |
Segment (Amg::Vector3D &&globPos, Amg::Vector3D &&globDir, const SegmentSeed *parent, MeasVec &&constMeas, double chi2, unsigned int nDoF) | |
Segment constructor. More... | |
const MuonGMR4::MuonChamber * | chamber () const |
Returns the associated chamber. More... | |
const Amg::Vector3D & | position () const |
Returns the global segment position. More... | |
const Amg::Vector3D & | direction () const |
Returns the global segment direction. More... | |
double | chi2 () const |
Returns the chi2 of the segment fit. More... | |
unsigned int | nDoF () const |
Returns the number of degrees of freedom. More... | |
const MeasVec & | measurements () const |
Returns the associated measurements. More... | |
const SegmentSeed * | parent () const |
Returns the seed out of which the segment was built. More... | |
const SegmentFit::Covariance & | covariance () const |
Returns the uncertainties of the defining parameters. More... | |
const std::vector< double > & | chi2PerMeasurement () const |
Returns the chi2 per measurement vector. More... | |
unsigned int | nFitIterations () const |
Returns how many iterations the fitter needed to make the segment converge. More... | |
bool | hasTimeFit () const |
has the time been fitted More... | |
double | segementT0 () const |
Returns the fitted segment time, if there's any. More... | |
void | setSegmentT0 (double t0) |
Sets the fitted segment time. More... | |
void | setChi2PerMeasurement (std::vector< double > &&chi2vals) |
Set the chi2 per measurement. More... | |
void | setCallsToConverge (unsigned int nCalls) |
Set how many iteration the fitter needed to reach convergence. More... | |
void | setParUncertainties (SegmentFit::Covariance &&cov) |
Set the uncertainties from the fit. More... | |
Private Attributes | |
Amg::Vector3D | m_globPos {Amg::Vector3D::Zero()} |
Amg::Vector3D | m_globDir {Amg::Vector3D::Zero()} |
const SegmentSeed * | m_parent {nullptr} |
MeasVec | m_measurements {} |
double | m_chi2 {0.} |
unsigned int | m_nDoF {0} |
std::optional< double > | m_t0 {std::nullopt} |
const MuonGMR4::MuonChamber * | m_chamber {m_parent->chamber()} |
std::vector< double > | m_chi2PerMeasurement {} |
unsigned int | m_nCalls {0} |
SegmentFit::Covariance | m_cov {SegmentFit::Covariance::Identity()} |
Placeholder for what will later be the muon segment EDM representation.
For now, just a plain storage for the dummy fit result, to test the implementation of residuals
Definition at line 19 of file MuonSpectrometer/MuonPhaseII/Event/MuonPatternEvent/MuonPatternEvent/Segment.h.
using MuonR4::Segment::MeasType = std::unique_ptr<CalibratedSpacePoint> |
Definition at line 22 of file MuonSpectrometer/MuonPhaseII/Event/MuonPatternEvent/MuonPatternEvent/Segment.h.
using MuonR4::Segment::MeasVec = std::vector<MeasType> |
Definition at line 23 of file MuonSpectrometer/MuonPhaseII/Event/MuonPatternEvent/MuonPatternEvent/Segment.h.
|
inline |
Segment constructor.
globPos | Global position of the segment expressed at the associated chamber centre |
globDir | Global direction of the segment |
parent | Seed out of which the segment has been built |
constMeas | Measurements building up the segment |
chi2 | Chi2 of the segment fit |
nDoF | Degrees of freedom |
Definition at line 32 of file MuonSpectrometer/MuonPhaseII/Event/MuonPatternEvent/MuonPatternEvent/Segment.h.
|
inline |
Returns the associated chamber.
Definition at line 46 of file MuonSpectrometer/MuonPhaseII/Event/MuonPatternEvent/MuonPatternEvent/Segment.h.
|
inline |
Returns the chi2 of the segment fit.
Definition at line 52 of file MuonSpectrometer/MuonPhaseII/Event/MuonPatternEvent/MuonPatternEvent/Segment.h.
|
inline |
Returns the chi2 per measurement vector.
Definition at line 62 of file MuonSpectrometer/MuonPhaseII/Event/MuonPatternEvent/MuonPatternEvent/Segment.h.
|
inline |
Returns the uncertainties of the defining parameters.
Definition at line 60 of file MuonSpectrometer/MuonPhaseII/Event/MuonPatternEvent/MuonPatternEvent/Segment.h.
|
inline |
Returns the global segment direction.
Definition at line 50 of file MuonSpectrometer/MuonPhaseII/Event/MuonPatternEvent/MuonPatternEvent/Segment.h.
|
inline |
has the time been fitted
Definition at line 66 of file MuonSpectrometer/MuonPhaseII/Event/MuonPatternEvent/MuonPatternEvent/Segment.h.
Returns the associated measurements.
Definition at line 56 of file MuonSpectrometer/MuonPhaseII/Event/MuonPatternEvent/MuonPatternEvent/Segment.h.
|
inline |
Returns the number of degrees of freedom.
Definition at line 54 of file MuonSpectrometer/MuonPhaseII/Event/MuonPatternEvent/MuonPatternEvent/Segment.h.
|
inline |
Returns how many iterations the fitter needed to make the segment converge.
Definition at line 64 of file MuonSpectrometer/MuonPhaseII/Event/MuonPatternEvent/MuonPatternEvent/Segment.h.
|
inline |
Returns the seed out of which the segment was built.
Definition at line 58 of file MuonSpectrometer/MuonPhaseII/Event/MuonPatternEvent/MuonPatternEvent/Segment.h.
|
inline |
Returns the global segment position.
Definition at line 48 of file MuonSpectrometer/MuonPhaseII/Event/MuonPatternEvent/MuonPatternEvent/Segment.h.
|
inline |
Returns the fitted segment time, if there's any.
Definition at line 68 of file MuonSpectrometer/MuonPhaseII/Event/MuonPatternEvent/MuonPatternEvent/Segment.h.
|
inline |
Set how many iteration the fitter needed to reach convergence.
Definition at line 80 of file MuonSpectrometer/MuonPhaseII/Event/MuonPatternEvent/MuonPatternEvent/Segment.h.
|
inline |
Set the chi2 per measurement.
Definition at line 76 of file MuonSpectrometer/MuonPhaseII/Event/MuonPatternEvent/MuonPatternEvent/Segment.h.
|
inline |
Set the uncertainties from the fit.
Definition at line 84 of file MuonSpectrometer/MuonPhaseII/Event/MuonPatternEvent/MuonPatternEvent/Segment.h.
|
inline |
Sets the fitted segment time.
Definition at line 72 of file MuonSpectrometer/MuonPhaseII/Event/MuonPatternEvent/MuonPatternEvent/Segment.h.
|
private |
Definition at line 99 of file MuonSpectrometer/MuonPhaseII/Event/MuonPatternEvent/MuonPatternEvent/Segment.h.
|
private |
Definition at line 94 of file MuonSpectrometer/MuonPhaseII/Event/MuonPatternEvent/MuonPatternEvent/Segment.h.
|
private |
Definition at line 100 of file MuonSpectrometer/MuonPhaseII/Event/MuonPatternEvent/MuonPatternEvent/Segment.h.
|
private |
Definition at line 102 of file MuonSpectrometer/MuonPhaseII/Event/MuonPatternEvent/MuonPatternEvent/Segment.h.
|
private |
Definition at line 91 of file MuonSpectrometer/MuonPhaseII/Event/MuonPatternEvent/MuonPatternEvent/Segment.h.
|
private |
Definition at line 90 of file MuonSpectrometer/MuonPhaseII/Event/MuonPatternEvent/MuonPatternEvent/Segment.h.
|
private |
Definition at line 93 of file MuonSpectrometer/MuonPhaseII/Event/MuonPatternEvent/MuonPatternEvent/Segment.h.
|
private |
Definition at line 101 of file MuonSpectrometer/MuonPhaseII/Event/MuonPatternEvent/MuonPatternEvent/Segment.h.
|
private |
Definition at line 95 of file MuonSpectrometer/MuonPhaseII/Event/MuonPatternEvent/MuonPatternEvent/Segment.h.
|
private |
Definition at line 92 of file MuonSpectrometer/MuonPhaseII/Event/MuonPatternEvent/MuonPatternEvent/Segment.h.
|
private |
Definition at line 97 of file MuonSpectrometer/MuonPhaseII/Event/MuonPatternEvent/MuonPatternEvent/Segment.h.