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::SpectrometerSector * | msSector () const |
Returns the associated MS sector. 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... | |
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 | 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()} |
Global position of the segment at the chamber centre. More... | |
Amg::Vector3D | m_globDir {Amg::Vector3D::Zero()} |
Global direction of the segment. More... | |
const SegmentSeed * | m_parent {nullptr} |
Seed from which the segment is stemming. More... | |
MeasVec | m_measurements {} |
List of associated measurements. More... | |
double | m_chi2 {0.} |
unsigned int | m_nDoF {0} |
Number of degrees of freedom in the fit. More... | |
std::optional< double > | m_t0 {std::nullopt} |
Fitted time of arrival at the chamber centre. More... | |
unsigned int | m_nCalls {0} |
Number of calls to reach the minimum. More... | |
SegmentFit::Covariance | m_cov {SegmentFit::Covariance::Identity()} |
Covariance matrix of the fit More... | |
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 31 of file MuonSpectrometer/MuonPhaseII/Event/MuonPatternEvent/MuonPatternEvent/Segment.h.
|
inline |
Returns the chi2 of the segment fit.
Definition at line 51 of file MuonSpectrometer/MuonPhaseII/Event/MuonPatternEvent/MuonPatternEvent/Segment.h.
|
inline |
Returns the uncertainties of the defining parameters.
Definition at line 59 of file MuonSpectrometer/MuonPhaseII/Event/MuonPatternEvent/MuonPatternEvent/Segment.h.
|
inline |
Returns the global segment direction.
Definition at line 49 of file MuonSpectrometer/MuonPhaseII/Event/MuonPatternEvent/MuonPatternEvent/Segment.h.
|
inline |
has the time been fitted
Definition at line 63 of file MuonSpectrometer/MuonPhaseII/Event/MuonPatternEvent/MuonPatternEvent/Segment.h.
Returns the associated measurements.
Definition at line 55 of file MuonSpectrometer/MuonPhaseII/Event/MuonPatternEvent/MuonPatternEvent/Segment.h.
|
inline |
Returns the associated MS sector.
Definition at line 45 of file MuonSpectrometer/MuonPhaseII/Event/MuonPatternEvent/MuonPatternEvent/Segment.h.
|
inline |
Returns the number of degrees of freedom.
Definition at line 53 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 61 of file MuonSpectrometer/MuonPhaseII/Event/MuonPatternEvent/MuonPatternEvent/Segment.h.
|
inline |
Returns the seed out of which the segment was built.
Definition at line 57 of file MuonSpectrometer/MuonPhaseII/Event/MuonPatternEvent/MuonPatternEvent/Segment.h.
|
inline |
Returns the global segment position.
Definition at line 47 of file MuonSpectrometer/MuonPhaseII/Event/MuonPatternEvent/MuonPatternEvent/Segment.h.
|
inline |
Returns the fitted segment time, if there's any.
Definition at line 65 of file MuonSpectrometer/MuonPhaseII/Event/MuonPatternEvent/MuonPatternEvent/Segment.h.
|
inline |
Set how many iteration the fitter needed to reach convergence.
Definition at line 73 of file MuonSpectrometer/MuonPhaseII/Event/MuonPatternEvent/MuonPatternEvent/Segment.h.
|
inline |
Set the uncertainties from the fit.
Definition at line 77 of file MuonSpectrometer/MuonPhaseII/Event/MuonPatternEvent/MuonPatternEvent/Segment.h.
|
inline |
Sets the fitted segment time.
Definition at line 69 of file MuonSpectrometer/MuonPhaseII/Event/MuonPatternEvent/MuonPatternEvent/Segment.h.
|
private |
Definition at line 92 of file MuonSpectrometer/MuonPhaseII/Event/MuonPatternEvent/MuonPatternEvent/Segment.h.
|
private |
Covariance matrix of the fit
Definition at line 100 of file MuonSpectrometer/MuonPhaseII/Event/MuonPatternEvent/MuonPatternEvent/Segment.h.
|
private |
Global direction of the segment.
Definition at line 86 of file MuonSpectrometer/MuonPhaseII/Event/MuonPatternEvent/MuonPatternEvent/Segment.h.
|
private |
Global position of the segment at the chamber centre.
Definition at line 84 of file MuonSpectrometer/MuonPhaseII/Event/MuonPatternEvent/MuonPatternEvent/Segment.h.
|
private |
List of associated measurements.
Definition at line 90 of file MuonSpectrometer/MuonPhaseII/Event/MuonPatternEvent/MuonPatternEvent/Segment.h.
|
private |
Number of calls to reach the minimum.
Definition at line 98 of file MuonSpectrometer/MuonPhaseII/Event/MuonPatternEvent/MuonPatternEvent/Segment.h.
|
private |
Number of degrees of freedom in the fit.
Definition at line 94 of file MuonSpectrometer/MuonPhaseII/Event/MuonPatternEvent/MuonPatternEvent/Segment.h.
|
private |
Seed from which the segment is stemming.
Definition at line 88 of file MuonSpectrometer/MuonPhaseII/Event/MuonPatternEvent/MuonPatternEvent/Segment.h.
|
private |
Fitted time of arrival at the chamber centre.
Definition at line 96 of file MuonSpectrometer/MuonPhaseII/Event/MuonPatternEvent/MuonPatternEvent/Segment.h.