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 #include <xAODMuon/MuonSegment.h>
12 
14 namespace MuonR4{
15  class CalibratedSpacePoint;
16  class Segment;
17 
20  double houghTanTheta(const Amg::Vector3D& v);
23  double houghTanPhi(const Amg::Vector3D& v);
24  namespace SegmentFit {
27  std::pair<Amg::Vector3D, Amg::Vector3D> makeLine(const Parameters& pars);
28 
29  std::string makeLabel(const Parameters& pars);
30  std::string toString(const Parameters& pars);
31  std::string toString(const ParamDefs par);
35  Amg::Vector3D dirFromTangents(const double tanPhi, const double tanTheta);
42  const Segment& segment);
43  }
44 
45 
47  SegmentFitResult() = default;
51 
52  using HitType = std::unique_ptr<CalibratedSpacePoint>;
53  using HitVec = std::vector<HitType>;
54 
56  bool timeFit{false};
58  bool hasPhi{false};
62  Covariance segmentParErrs{Covariance::Identity()};
66  double chi2{0.};
68  int nDoF{0};
70  unsigned int nPhiMeas{0};
72  unsigned int nTimeMeas{0};
74  bool converged{false};
76  unsigned int nIter{0};
77 
81  std::pair<Amg::Vector3D, Amg::Vector3D> makeLine() const {
83  }
84  };
85 
86 }
87 
88 #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
Trk::TrackState::Segment
@ Segment
Definition: TrackStateDefs.h:37
MuonR4::SegmentFitResult::hasPhi
bool hasPhi
Does the candidate have phi measurements.
Definition: SegmentFitterEventData.h:58
MuonR4::SegmentFitResult::calibMeasurements
HitVec calibMeasurements
Calibrated measurements used in the fit.
Definition: SegmentFitterEventData.h:64
MuonSegment.h
MuonR4::SegmentFitResult::Covariance
SegmentFit::Covariance Covariance
Definition: SegmentFitterEventData.h:50
xAOD::MuonSegment_v1
Class describing a MuonSegment.
Definition: MuonSegment_v1.h:33
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:26
MuonR4::SegmentFitResult::HitVec
std::vector< HitType > HitVec
Definition: SegmentFitterEventData.h:53
MuonR4::SegmentFitResult::nDoF
int nDoF
degrees of freedom
Definition: SegmentFitterEventData.h:68
MuonR4::houghTanPhi
double houghTanPhi(const Amg::Vector3D &v)
: Returns the hough tanPhi [x] / [z]
Definition: SegmentFitterEventData.cxx:18
MuonR4::SegmentFit::dirFromTangents
Amg::Vector3D dirFromTangents(const double tanPhi, const double tanTheta)
Constructs a direction vector from tanPhi & tanTheta.
Definition: SegmentFitterEventData.cxx:23
GeoPrimitives.h
MuonR4::SegmentFitResult::Parameters
SegmentFit::Parameters Parameters
Definition: SegmentFitterEventData.h:49
MuonR4::SegmentFitResult::converged
bool converged
Is the fit converged.
Definition: SegmentFitterEventData.h:74
MuonR4::SegmentFitResult::nTimeMeas
unsigned int nTimeMeas
How many measurements give time constaint.
Definition: SegmentFitterEventData.h:72
MuonR4::SegmentFitResult::segmentPars
Parameters segmentPars
Final segment parameters.
Definition: SegmentFitterEventData.h:60
MuonR4::SegmentFit::toString
std::string toString(const Parameters &pars)
Definition: SegmentFitterEventData.cxx:59
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:52
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
python.PyAthena.v
v
Definition: PyAthena.py:154
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:76
MuonR4::SegmentFitResult::timeFit
bool timeFit
Was the time fitted.
Definition: SegmentFitterEventData.h:56
MuonR4::SegmentFitResult::nPhiMeas
unsigned int nPhiMeas
How many phi measurements.
Definition: SegmentFitterEventData.h:70
MuonR4::SegmentFit::makeLabel
std::string makeLabel(const Parameters &pars)
Definition: SegmentFitterEventData.cxx:50
MuonR4::SegmentFit::localSegmentPars
Parameters localSegmentPars(const xAOD::MuonSegment &seg)
Returns the localSegPars decoration from a xAODMuon::Segment.
Definition: SegmentFitterEventData.cxx:32
MuonR4::SegmentFitResult
Definition: SegmentFitterEventData.h:46
MuonR4::SegmentFitResult::chi2
double chi2
chi2 of the fit
Definition: SegmentFitterEventData.h:66
MuonR4::houghTanTheta
double houghTanTheta(const Amg::Vector3D &v)
Returns the hough tanTheta [y] / [z].
Definition: SegmentFitterEventData.cxx:14
MuonR4::SegmentFitResult::segmentParErrs
Covariance segmentParErrs
Uncertainties on the segment parameters.
Definition: SegmentFitterEventData.h:62
generate::Zero
void Zero(TH1D *hin)
Definition: generate.cxx:32
NSWL1::PadTriggerAdapter::segment
Muon::NSW_PadTriggerSegment segment(const NSWL1::PadTrigger &data)
Definition: PadTriggerAdapter.cxx:5
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:81