27 return StatusCode::SUCCESS;
31 return StatusCode::SUCCESS;
41 std::unordered_set<const xAOD::MuonSegment*> filledPreFits{};
43 if (!filledPreFits.insert(seg).second) {
44 return StatusCode::SUCCESS;
77 return m_tree.fill(ctx) ? StatusCode::SUCCESS : StatusCode::FAILURE;
94 ATH_CHECK(fillPrefit((*acc_segLink(*seg))));
102 return StatusCode::SUCCESS;
Scalar phi() const
phi method
Scalar theta() const
theta method
#define ATH_CHECK
Evaluate an expression and check for errors.
ElementLink< xAOD::TruthParticleContainer > Link_t
Handle class for reading a decoration on an object.
ElementLink implementation for ROOT usage.
MuonVal::ScalarBranch< unsigned short > & m_preFitNPrecHits
Number of precision hits before the refit.
SG::ReadHandleKey< xAOD::MuonSegmentContainer > m_postFitKey
Declare the data dependency on the post fit segment container.
MuonVal::ScalarBranch< short > & m_stationSide
+1 for A-, -1 of C-side
MuonVal::ScalarBranch< float > & m_preFitLocY
Local Y before the refit.
MuonVal::ScalarBranch< float > & m_postFitLocY
Local Y after the refit.
MuonVal::MuonTesterTree m_tree
The output muon tester tree.
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
IdHelperSvc to decode the Identifiers.
MuonVal::ScalarBranch< unsigned short > & m_preFitNTrigPhiHits
Number of phi trigger hits before the refit.
MuonVal::ScalarBranch< float > & m_uncertLocY
Uncertainty on the fitted local Y (prefit).
MuonVal::ScalarBranch< unsigned char > & m_goodFit
Flag whether the fit has succeeded or not.
MuonVal::ScalarBranch< unsigned short > & m_preFitNdoF
nDoF of the segment before the refit
MuonVal::ScalarBranch< float > & m_uncertTheta
Uncertainty on the fitted local Theta (prefit).
MuonVal::ScalarBranch< unsigned short > & m_postFitNTrigPhiHits
Number of phi trigger hits before the refit.
MuonVal::ScalarBranch< float > & m_preFitTheta
Local Theta before the refit.
MuonVal::ScalarBranch< float > & m_uncertPhi
Uncertainty on the fitted local Phi (prefit).
virtual StatusCode initialize() override final
MuonVal::ScalarBranch< int > & m_chamberIndex
chamber index field
MuonVal::ScalarBranch< float > & m_seedFitPhi
Local Phi after the refit.
MuonVal::ScalarBranch< float > & m_postFitLocX
Local X after the refit.
MuonVal::ScalarBranch< float > & m_seedFitTheta
Local Theta after the refit.
MuonVal::ScalarBranch< float > & m_postFitPhi
Local Phi after the refit.
MuonVal::ScalarBranch< unsigned short > & m_postFitNPrecHits
Number of precision hits after the refit.
MuonVal::ScalarBranch< float > & m_postFitChi2
Chi2 of the segment after the refit.
MuonVal::ScalarBranch< float > & m_uncertLocX
Uncertainty on the fitted local X (prefit).
MuonVal::ScalarBranch< float > & m_preFitLocX
Local X before the refit.
MuonVal::ScalarBranch< unsigned short > & m_postFitNdoF
nDoF of the segment after the refit
SG::ReadDecorHandleKey< xAOD::MuonSegmentContainer > m_linkKey
Construct a link from the refitted segment to the input segment.
MuonVal::ScalarBranch< unsigned short > & m_preFitNTrigEtaHits
Number of eta trigger hits before the refit.
MuonVal::ScalarBranch< float > & m_seedFitLocX
Local X after the refit.
MuonVal::ScalarBranch< float > & m_postFitTheta
Local Theta after the refit.
MuonVal::ScalarBranch< int > & m_stationPhi
phi index of the station
MuonVal::ScalarBranch< float > & m_seedFitLocY
Local Y after the refit.
virtual StatusCode finalize() override final
MuonVal::ScalarBranch< float > & m_preFitChi2
Chi2 of the segment before the refit.
SG::ReadHandleKey< xAOD::MuonSegmentContainer > m_preFitKey
Declare the data dependency on the standard Mdt+Rpc+Tgc segment container.
MuonVal::ScalarBranch< float > & m_preFitPhi
Local Phi before the refit.
virtual StatusCode execute(const EventContext &ctx) override final
Execute method.
MuonVal::ScalarBranch< unsigned short > & m_postFitNTrigEtaHits
Number of eta trigger hits before the refit.
Handle class for reading a decoration on an object.
This class is not to needed in AthSimulation.
double error(const Amg::MatrixX &mat, int index)
return diagonal error of the matrix caller should ensure the matrix is symmetric and the index is in ...
std::optional< Covariance > localSegmentCov(const xAOD::MuonSegment &seg)
Returns the localCovariance decoration from a xAOD::MuonSegment.
SeedingAux::FitParIndex ParamDefs
Use the same parameter indices as used by the CompSpacePointAuxiliaries.
Parameters localSegmentPars(const xAOD::MuonSegment &seg)
Returns the localSegPars decoration from a xAODMuon::Segment.
Lightweight algorithm to read xAOD MDT sim hits and (fast-digitised) drift circles from SG and fill a...
const T * get(const ReadCondHandleKey< T > &key, const EventContext &ctx)
Convenience function to retrieve an object given a ReadCondHandleKey.
SG::AuxElement::Accessor< std::array< float, N > > PosAccessor
xAOD Accessor to the position
MuonSegmentContainer_v1 MuonSegmentContainer
Definition of the current "MuonSegment container version".
MuonSegment_v1 MuonSegment
Reference the current persistent version: