ATLAS Offline Software
SegmentRefitTest.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3 */
4 #ifndef MUONTRACKFINDINGTEST_SEGMENTREFITTEST_H
5 #define MUONTRACKFINDINGTEST_SEGMENTREFITTEST_H
6 
9 
13 
14 namespace MuonValR4{
19  public:
21  virtual StatusCode initialize() override final;
22  virtual StatusCode execute() override final;
23  virtual StatusCode finalize() override final;
24 
25  private:
27  SG::ReadHandleKey<xAOD::MuonSegmentContainer> m_preFitKey{this, "PreFitContainer", "MuonSegmentsFromR4"};
29  SG::ReadHandleKey<xAOD::MuonSegmentContainer> m_postFitKey{this, "PostFitContainer", "ActsRefitSegments"};
32 
34  ServiceHandle<Muon::IMuonIdHelperSvc> m_idHelperSvc{this, "IdHelperSvc", "Muon::MuonIdHelperSvc/MuonIdHelperSvc"};
35 
37  MuonVal::MuonTesterTree m_tree{"SegmentRefitTree", "SegmentRefitTest"};
60 
72  MuonVal::ScalarBranch<unsigned char>& m_goodFit{m_tree.newScalar<unsigned char>("goodFit", false)};
96  MuonVal::ScalarBranch<unsigned short>& m_postFitNTrigEtaHits{m_tree.newScalar<unsigned short>("postFitNTrigEtaHits", 0)};
98  MuonVal::ScalarBranch<unsigned short>& m_postFitNTrigPhiHits{m_tree.newScalar<unsigned short>("postFitNTrigPhiHits", 0)};
99  };
100 }
101 
102 #endif
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
MuonValR4::SegmentRefitTest::m_preFitNTrigEtaHits
MuonVal::ScalarBranch< unsigned short > & m_preFitNTrigEtaHits
Number of eta trigger hits before the refit.
Definition: SegmentRefitTest.h:68
MuonValR4::SegmentRefitTest::m_uncertLocY
MuonVal::ScalarBranch< float > & m_uncertLocY
Uncertainty on the fitted local Y (prefit)
Definition: SegmentRefitTest.h:55
MuonValR4::SegmentRefitTest::m_uncertLocX
MuonVal::ScalarBranch< float > & m_uncertLocX
Uncertainty on the fitted local X (prefit)
Definition: SegmentRefitTest.h:53
AthHistogramAlgorithm::AthHistogramAlgorithm
AthHistogramAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
Definition: AthHistogramAlgorithm.cxx:31
MuonValR4::SegmentRefitTest::m_seedFitTheta
MuonVal::ScalarBranch< float > & m_seedFitTheta
Local Theta after the refit.
Definition: SegmentRefitTest.h:78
MuonValR4::SegmentRefitTest::m_preFitNdoF
MuonVal::ScalarBranch< unsigned short > & m_preFitNdoF
nDoF of the segment before the refit
Definition: SegmentRefitTest.h:64
MuonValR4::SegmentRefitTest::m_seedFitLocY
MuonVal::ScalarBranch< float > & m_seedFitLocY
Local Y after the refit.
Definition: SegmentRefitTest.h:76
MuonValR4::SegmentRefitTest::m_uncertTheta
MuonVal::ScalarBranch< float > & m_uncertTheta
Uncertainty on the fitted local Theta (prefit)
Definition: SegmentRefitTest.h:57
MuonValR4::SegmentRefitTest::m_postFitNTrigPhiHits
MuonVal::ScalarBranch< unsigned short > & m_postFitNTrigPhiHits
Number of phi trigger hits before the refit.
Definition: SegmentRefitTest.h:98
MuonValR4::SegmentRefitTest::m_goodFit
MuonVal::ScalarBranch< unsigned char > & m_goodFit
Flag whether the fit has succeeded or not.
Definition: SegmentRefitTest.h:72
MuonValR4::SegmentRefitTest::m_preFitTheta
MuonVal::ScalarBranch< float > & m_preFitTheta
Local Theta before the refit.
Definition: SegmentRefitTest.h:49
MuonTesterTree.h
SG::ReadHandleKey< xAOD::MuonSegmentContainer >
MuonValR4::SegmentRefitTest::m_postFitTheta
MuonVal::ScalarBranch< float > & m_postFitTheta
Local Theta after the refit.
Definition: SegmentRefitTest.h:86
MuonValR4::SegmentRefitTest::m_postFitPhi
MuonVal::ScalarBranch< float > & m_postFitPhi
Local Phi after the refit.
Definition: SegmentRefitTest.h:88
MuonValR4::SegmentRefitTest::m_seedFitLocX
MuonVal::ScalarBranch< float > & m_seedFitLocX
Local X after the refit.
Definition: SegmentRefitTest.h:74
MuonValR4::SegmentRefitTest::m_preFitNPrecHits
MuonVal::ScalarBranch< unsigned short > & m_preFitNPrecHits
Number of precision hits before the refit.
Definition: SegmentRefitTest.h:66
MuonSegmentContainer.h
AthHistogramAlgorithm.h
MuonValR4::SegmentRefitTest::initialize
virtual StatusCode initialize() override final
Definition: SegmentRefitTest.cxx:19
MuonValR4::SegmentRefitTest::m_stationPhi
MuonVal::ScalarBranch< int > & m_stationPhi
phi index of the station
Definition: SegmentRefitTest.h:43
MuonValR4::SegmentRefitTest::m_preFitLocY
MuonVal::ScalarBranch< float > & m_preFitLocY
Local Y before the refit.
Definition: SegmentRefitTest.h:47
MuonValR4::SegmentRefitTest
Simple tester class to refit the Mdt segments with the Acts global chi2 fitter In the ideal case,...
Definition: SegmentRefitTest.h:18
MuonVal::MuonTesterTree
Definition: MuonTesterTree.h:30
MuonValR4::SegmentRefitTest::m_postFitKey
SG::ReadHandleKey< xAOD::MuonSegmentContainer > m_postFitKey
Declare the data dependency on the post fit segment container.
Definition: SegmentRefitTest.h:29
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
MuonValR4::SegmentRefitTest::m_preFitLocX
MuonVal::ScalarBranch< float > & m_preFitLocX
Local X before the refit.
Definition: SegmentRefitTest.h:45
MuonValR4::SegmentRefitTest::m_chamberIndex
MuonVal::ScalarBranch< int > & m_chamberIndex
chamber index field
Definition: SegmentRefitTest.h:39
MuonValR4::SegmentRefitTest::m_postFitNTrigEtaHits
MuonVal::ScalarBranch< unsigned short > & m_postFitNTrigEtaHits
Number of eta trigger hits before the refit.
Definition: SegmentRefitTest.h:96
MuonValR4::SegmentRefitTest::m_postFitLocX
MuonVal::ScalarBranch< float > & m_postFitLocX
Local X after the refit.
Definition: SegmentRefitTest.h:82
MuonValR4::SegmentRefitTest::finalize
virtual StatusCode finalize() override final
Definition: SegmentRefitTest.cxx:28
MuonValR4::SegmentRefitTest::m_postFitNPrecHits
MuonVal::ScalarBranch< unsigned short > & m_postFitNPrecHits
Number of precision hits after the refit.
Definition: SegmentRefitTest.h:94
AthHistogramAlgorithm
Definition: AthHistogramAlgorithm.h:32
MuonValR4
Lightweight algorithm to read xAOD MDT sim hits and (fast-digitised) drift circles from SG and fill a...
Definition: IPatternVisualizationTool.h:23
MuonVal::ScalarBranch< int >
MuonValR4::SegmentRefitTest::m_preFitChi2
MuonVal::ScalarBranch< float > & m_preFitChi2
Chi2 of the segment before the refit.
Definition: SegmentRefitTest.h:62
MuonValR4::SegmentRefitTest::m_linkKey
SG::ReadDecorHandleKey< xAOD::MuonSegmentContainer > m_linkKey
Construct a link from the refitted segment to the input segment.
Definition: SegmentRefitTest.h:31
MuonVal::MuonTesterTree::newScalar
ScalarBranch< T > & newScalar(const std::string &name)
MuonValR4::SegmentRefitTest::m_uncertPhi
MuonVal::ScalarBranch< float > & m_uncertPhi
Uncertainty on the fitted local Phi (prefit)
Definition: SegmentRefitTest.h:59
MuonValR4::SegmentRefitTest::m_preFitNTrigPhiHits
MuonVal::ScalarBranch< unsigned short > & m_preFitNTrigPhiHits
Number of phi trigger hits before the refit.
Definition: SegmentRefitTest.h:70
MuonValR4::SegmentRefitTest::m_idHelperSvc
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
IdHelperSvc to decode the Identifiers.
Definition: SegmentRefitTest.h:34
MuonValR4::SegmentRefitTest::m_tree
MuonVal::MuonTesterTree m_tree
The output muon tester tree.
Definition: SegmentRefitTest.h:37
MuonValR4::SegmentRefitTest::m_seedFitPhi
MuonVal::ScalarBranch< float > & m_seedFitPhi
Local Phi after the refit.
Definition: SegmentRefitTest.h:80
MuonValR4::SegmentRefitTest::execute
virtual StatusCode execute() override final
Definition: SegmentRefitTest.cxx:33
MuonValR4::SegmentRefitTest::m_preFitPhi
MuonVal::ScalarBranch< float > & m_preFitPhi
Local Phi before the refit.
Definition: SegmentRefitTest.h:51
MuonValR4::SegmentRefitTest::m_postFitLocY
MuonVal::ScalarBranch< float > & m_postFitLocY
Local Y after the refit.
Definition: SegmentRefitTest.h:84
SG::ReadDecorHandleKey
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
Definition: StoreGate/StoreGate/ReadDecorHandleKey.h:85
MuonValR4::SegmentRefitTest::m_preFitKey
SG::ReadHandleKey< xAOD::MuonSegmentContainer > m_preFitKey
Declare the data dependency on the standard Mdt+Rpc+Tgc segment container.
Definition: SegmentRefitTest.h:27
MuonValR4::SegmentRefitTest::m_postFitChi2
MuonVal::ScalarBranch< float > & m_postFitChi2
Chi2 of the segment after the refit.
Definition: SegmentRefitTest.h:90
IMuonIdHelperSvc.h
MuonValR4::SegmentRefitTest::m_stationSide
MuonVal::ScalarBranch< short > & m_stationSide
+1 for A-, -1 of C-side
Definition: SegmentRefitTest.h:41
MuonValR4::SegmentRefitTest::m_postFitNdoF
MuonVal::ScalarBranch< unsigned short > & m_postFitNdoF
nDoF of the segment after the refit
Definition: SegmentRefitTest.h:92
ServiceHandle< Muon::IMuonIdHelperSvc >