ATLAS Offline Software
SegmentFitterEventData.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef MUONR4_MUONPATTERNEVENT_SEGMENTFITEVENTDATA__H
6 #define MUONR4_MUONPATTERNEVENT_SEGMENTFITEVENTDATA__H
7 
11 
12 
14 namespace MuonR4{
15  class CalibratedSpacePoint;
16  namespace SegmentFit {
19  std::pair<Amg::Vector3D, Amg::Vector3D> makeLine(const Parameters& pars);
20 
21  std::string makeLabel(const Parameters& pars);
22  std::string toString(const Parameters& pars);
23  std::string toString(const ParamDefs par);
27  Amg::Vector3D dirFromTangents(const double tanPhi, const double tanTheta);
31  Amg::Vector3D dirFromAngles(const double phi, const double theta);
32  }
33 
34 
36  SegmentFitResult() = default;
40 
41  using HitType = std::unique_ptr<CalibratedSpacePoint>;
42  using HitVec = std::vector<HitType>;
43 
45  bool timeFit{false};
47  bool hasPhi{false};
51  Covariance segmentParErrs{Covariance::Identity()};
55  std::vector<double> chi2PerMeasurement{};
57  double chi2{0.};
59  int nDoF{0};
61  unsigned int nPhiMeas{0};
63  unsigned int nTimeMeas{0};
65  bool converged{false};
67  unsigned int nIter{0};
68 
72  std::pair<Amg::Vector3D, Amg::Vector3D> makeLine() const {
74  }
75  };
76 
77 }
78 
79 #endif
make_hlt_rep.pars
pars
Definition: make_hlt_rep.py:90
MuonR4::SegmentFit::ParamDefs
ParamDefs
This file defines the parameter enums in the Trk namespace.
Definition: MuonHoughDefs.h:29
MuonR4::SegmentFit::Parameters
AmgVector(toInt(ParamDefs::nPars)) Parameters
Definition: MuonHoughDefs.h:48
MuonR4::SegmentFitResult::hasPhi
bool hasPhi
Does the candidate have phi measurements.
Definition: SegmentFitterEventData.h:47
MuonR4::SegmentFitResult::calibMeasurements
HitVec calibMeasurements
Calibrated measurements used in the fit.
Definition: SegmentFitterEventData.h:53
MuonR4::SegmentFitResult::Covariance
SegmentFit::Covariance Covariance
Definition: SegmentFitterEventData.h:39
MuonR4::SegmentFit::makeLine
std::pair< Amg::Vector3D, Amg::Vector3D > makeLine(const Parameters &pars)
Returns the parsed parameters into an Eigen line parametrization.
Definition: SegmentFitterEventData.cxx:22
MuonR4::SegmentFitResult::HitVec
std::vector< HitType > HitVec
Definition: SegmentFitterEventData.h:42
MuonR4::SegmentFitResult::nDoF
int nDoF
degrees of freedom
Definition: SegmentFitterEventData.h:59
MuonR4::SegmentFit::dirFromTangents
Amg::Vector3D dirFromTangents(const double tanPhi, const double tanTheta)
Constructs a direction vector from tanPhi & tanTheta.
Definition: SegmentFitterEventData.cxx:14
GeoPrimitives.h
MuonR4::SegmentFitResult::Parameters
SegmentFit::Parameters Parameters
Definition: SegmentFitterEventData.h:38
MuonR4::SegmentFitResult::converged
bool converged
Is the fit converged.
Definition: SegmentFitterEventData.h:65
MuonR4::SegmentFitResult::nTimeMeas
unsigned int nTimeMeas
How many measurements give time constaint.
Definition: SegmentFitterEventData.h:63
MuonR4::SegmentFitResult::chi2PerMeasurement
std::vector< double > chi2PerMeasurement
Chis per measurement to identify outliers.
Definition: SegmentFitterEventData.h:55
MuonR4::SegmentFitResult::segmentPars
Parameters segmentPars
Final segment parameters.
Definition: SegmentFitterEventData.h:49
MuonR4::SegmentFit::toString
std::string toString(const Parameters &pars)
Definition: SegmentFitterEventData.cxx:37
ActsGeometryContext
Include the GeoPrimitives which need to be put first.
Definition: ActsGeometryContext.h:27
MuonHoughDefs.h
createCoolChannelIdFile.par
par
Definition: createCoolChannelIdFile.py:29
MuonR4::SegmentFitResult::SegmentFitResult
SegmentFitResult()=default
MuonR4::SegmentFitResult::HitType
std::unique_ptr< CalibratedSpacePoint > HitType
Definition: SegmentFitterEventData.h:41
Amg::Vector3D
Eigen::Matrix< double, 3, 1 > Vector3D
Definition: GeoPrimitives.h:47
MuonR4
This header ties the generic definitions in this package.
Definition: HoughEventData.h:16
MuonR4::SegmentFit::Covariance
AmgSymMatrix(toInt(ParamDefs::nPars)) Covariance
Definition: MuonHoughDefs.h:49
MuonR4::SegmentFitResult::nIter
unsigned int nIter
Number of iterations called to reach the minimum.
Definition: SegmentFitterEventData.h:67
MuonR4::SegmentFitResult::timeFit
bool timeFit
Was the time fitted.
Definition: SegmentFitterEventData.h:45
MuonR4::SegmentFitResult::nPhiMeas
unsigned int nPhiMeas
How many phi measurements.
Definition: SegmentFitterEventData.h:61
MuonR4::SegmentFit::makeLabel
std::string makeLabel(const Parameters &pars)
Definition: SegmentFitterEventData.cxx:28
MuonR4::SegmentFitResult
Definition: SegmentFitterEventData.h:35
MuonR4::SegmentFitResult::chi2
double chi2
chi2 of the fit
Definition: SegmentFitterEventData.h:57
MuonR4::SegmentFit::dirFromAngles
Amg::Vector3D dirFromAngles(const double phi, const double theta)
Constructs a direction vector from the polar theta & phi angles.
Definition: SegmentFitterEventData.cxx:18
MuonR4::SegmentFitResult::segmentParErrs
Covariance segmentParErrs
Uncertainties on the segment parameters.
Definition: SegmentFitterEventData.h:51
generate::Zero
void Zero(TH1D *hin)
Definition: generate.cxx:32
MuonR4::SegmentFitResult::makeLine
std::pair< Amg::Vector3D, Amg::Vector3D > makeLine() const
Returns the defining parameters as a pair of Amg::Vector3D The first part is the position expressed a...
Definition: SegmentFitterEventData.h:72