ATLAS Offline Software
MuonSegmentFittingAlg.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__SEGMENTFITTINGALG__H
6 #define MUONR4__SEGMENTFITTINGALG__H
7 
11 
15 #include "Gaudi/Property.h"
16 
17 // muon includes
18 
19 
20 namespace MuonR4{
21 
26  public:
27  MuonSegmentFittingAlg(const std::string& name, ISvcLocator* pSvcLocator);
28  virtual ~MuonSegmentFittingAlg() = default;
29  virtual StatusCode initialize() override;
30  virtual StatusCode execute(const EventContext& ctx) const override;
31 
32  private:
33 
36  template <class ContainerType> StatusCode retrieveContainer(const EventContext& ctx,
38  const ContainerType* & contToPush) const;
39  StatusCode prepareEventData(const EventContext & ctx, MuonSegmentFitterEventData & data) const;
40 
43 
45 
46  // read handle key for the input maxima (from a previous eta-transform)
47  SG::ReadHandleKey<MuonR4::StationHoughSegmentSeedContainer> m_inHoughSegmentSeedKey{this, "StationHoughSegmentSeedContainer", "MuonHoughStationSegmentSeeds"};
48  // write handle key for the output segment seeds
49  SG::WriteHandleKey<MuonSegmentContainer> m_outSegments{this, "MuonSegmentContainer", "R4MuonSegments"};
50 
51  // access to the ACTS geometry context
52  SG::ReadHandleKey<ActsGeometryContext> m_geoCtxKey{this, "AlignmentKey", "ActsAlignment", "cond handle key"};
53 
54  // data members
55  };
56 }
57 
58 
59 #endif
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
data
char data[hepevt_bytes_allocation_ATLAS]
Definition: HepEvt.cxx:11
MuonR4::MuonSegmentFittingAlg::buildSegment
MuonR4::MuonSegment buildSegment(MuonSegmentFitterEventData &data) const
Definition: MuonSegmentFittingAlg.cxx:121
MuonR4::MuonSegment
Placeholder for what will later be the muon segment EDM representation.
Definition: MuonSpectrometer/MuonPhaseII/MuonPatternRecognition/MuonPatternEvent/MuonPatternEvent/MuonSegment.h:18
MuonR4::MuonSegmentFittingAlg::MuonSegmentFittingAlg
MuonSegmentFittingAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition: MuonSegmentFittingAlg.cxx:12
MuonR4::MuonSegmentFittingAlg::m_inHoughSegmentSeedKey
SG::ReadHandleKey< MuonR4::StationHoughSegmentSeedContainer > m_inHoughSegmentSeedKey
Definition: MuonSegmentFittingAlg.h:47
MuonR4::MuonSegmentFittingAlg::~MuonSegmentFittingAlg
virtual ~MuonSegmentFittingAlg()=default
MuonR4::MuonSegmentFittingAlg::initialize
virtual StatusCode initialize() override
Definition: MuonSegmentFittingAlg.cxx:16
SG::ReadHandleKey< ContainerType >
MuonR4::MuonSegmentFitterEventData_impl
Definition: MuonSegmentFitterEventData.h:14
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
MuonR4::MuonSegmentFittingAlg::retrieveContainer
StatusCode retrieveContainer(const EventContext &ctx, const SG::ReadHandleKey< ContainerType > &key, const ContainerType *&contToPush) const
Helper method to fetch data from StoreGate.
Definition: MuonSegmentFittingAlg.cxx:48
SG::WriteHandleKey< MuonSegmentContainer >
MuonSegment.h
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
MuonR4::MuonSegmentFittingAlg::m_geoCtxKey
SG::ReadHandleKey< ActsGeometryContext > m_geoCtxKey
Definition: MuonSegmentFittingAlg.h:52
MuonR4::MuonSegmentFittingAlg::m_outSegments
SG::WriteHandleKey< MuonSegmentContainer > m_outSegments
Definition: MuonSegmentFittingAlg.h:49
MuonR4::MuonSegmentFittingAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override
Definition: MuonSegmentFittingAlg.cxx:24
MuonR4::MuonSegmentFittingAlg
Algorithm to handle segment fits
Definition: MuonSegmentFittingAlg.h:25
AthReentrantAlgorithm.h
WriteHandleKey.h
Property holding a SG store/key/clid from which a WriteHandle is made.
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
MuonR4::MuonSegmentFittingAlg::prepareSegmentFit
StatusCode prepareSegmentFit(const HoughSegmentSeed &seed, MuonSegmentFitterEventData &data) const
Definition: MuonSegmentFittingAlg.cxx:63
MuonR4
The CsvMuonSimHitDumper reads a Simulation Hit container for muons and dumps information to csv files...
Definition: MuonSpacePoint.h:11
MuonR4::MuonSegmentFittingAlg::fitSegment
StatusCode fitSegment(MuonSegmentFitterEventData &data) const
Definition: MuonSegmentFittingAlg.cxx:95
MuonSegmentFitterEventData.h
StationHoughMaxContainer.h
MuonR4::HoughSegmentSeed_impl
Representation of a segment seed (a fully processed hough maximum) produced by the hough transform.
Definition: HoughSegmentSeed.h:13
mapkey::key
key
Definition: TElectronEfficiencyCorrectionTool.cxx:37
MuonR4::MuonSegmentFittingAlg::prepareEventData
StatusCode prepareEventData(const EventContext &ctx, MuonSegmentFitterEventData &data) const
Definition: MuonSegmentFittingAlg.cxx:88