![]() |
ATLAS Offline Software
|
#include <CombinedFitAlg.h>
Classes | |
| struct | DataShip |
| Helper struct to ship the input output data during the combined track fit. More... | |
Public Member Functions | |
| virtual StatusCode | initialize () override final |
| virtual StatusCode | execute (const EventContext &ctx) const override final |
| virtual StatusCode | sysInitialize () override |
| Override sysInitialize. | |
| virtual bool | isClonable () const override |
| Specify if the algorithm is clonable. | |
| virtual StatusCode | sysExecute (const EventContext &ctx) override |
| Execute an algorithm. | |
| virtual const DataObjIDColl & | extraOutputDeps () const override |
| Return the list of extra output dependencies. | |
| virtual bool | filterPassed (const EventContext &ctx) const |
| Get filter decision: | |
| virtual void | setFilterPassed (bool state, const EventContext &ctx) const |
| Set filter decision: | |
| ServiceHandle< StoreGateSvc > & | evtStore () |
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc. | |
| const ServiceHandle< StoreGateSvc > & | detStore () const |
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc. | |
| virtual StatusCode | sysStart () override |
| Handle START transition. | |
| virtual std::vector< Gaudi::DataHandle * > | inputHandles () const override |
| Return this algorithm's input handles. | |
| virtual std::vector< Gaudi::DataHandle * > | outputHandles () const override |
| Return this algorithm's output handles. | |
| Gaudi::Details::PropertyBase & | declareProperty (Gaudi::Property< T, V, H > &t) |
| void | updateVHKA (Gaudi::Details::PropertyBase &) |
| MsgStream & | msg () const |
| bool | msgLvl (const MSG::Level lvl) const |
Protected Member Functions | |
| void | renounceArray (SG::VarHandleKeyArray &handlesArray) |
| remove all handles from I/O resolution | |
| std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > | renounce (T &h) |
| void | extraDeps_update_handler (Gaudi::Details::PropertyBase &ExtraDeps) |
| Add StoreName to extra input/output deps as needed. | |
Private Types | |
| typedef ServiceHandle< StoreGateSvc > | StoreGateSvc_t |
Private Member Functions | |
| StatusCode | prepareDataShip (const EventContext &ctx, DataShip &ship) const |
| Load the input containers from store gate and setup the write Handles for the output. | |
| MuonR4::MuonTag * | fitMuonTag (const MuonR4::MuonTag &tag, DataShip &ship) const |
| Attempt to fit the muon tag to a combined track particle. | |
| void | buildMETrack (MuonR4::MuonTag &combinedTag, DataShip &ship) const |
| StatusCode | writeTracksToStoreGate (const EventContext &ctx, const SG::WriteHandleKey< ActsTrk::TrackContainer > &key, const SG::WriteDecorHandleKey< xAOD::TrackParticleContainer > &decorKey, xAOD::TrackParticleContainer &particleContainer, ActsTrk::MutableTrackContainer &&fittedTracks) const |
| Convert the ActsTracks to track particles and write the Acts track container to store gate. | |
| std::vector< Acts::SourceLink > | extractMeasurements (const MuonR4::MuonTag &muonTag) const |
| Retrieve the ID & Muon measurements from the associated ID & MS track particles. | |
| std::vector< Acts::SourceLink > | extractMeasurements (const xAOD::TrackParticle &trackPart) const |
| Retrieve the uncalibrated measurements from the associated Acts::Track. | |
| Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &) |
| specialization for handling Gaudi::Property<SG::VarHandleKey> | |
Private Attributes | |
| ToolHandle< ActsTrk::ITrackToTrackParticleCnvTool > | m_cnvTool {this, "TrackToTrackParticleCnvTool", ""} |
| Conversion tool from Acts -> xAOD:TrackParticle. | |
| ToolHandle< ActsTrk::IFitterTool > | m_trackFitTool {this, "FittingTool", ""} |
| Track fitting tool. | |
| ToolHandle< ActsTrk::IExtrapolationTool > | m_extrapolationTool {this, "ExtrapolationTool" ,"" } |
| Track extrapolation tool. | |
| ActsTrk::ContextUtility | m_ctxProvider {this} |
| Context provider for geometry, magnetic field and calibration contexts. | |
| SG::ReadHandleKey< MuonR4::MuonTagContainer > | m_stacoKey {this, "StacoKey", "MuonTagsSTACO"} |
| Use STACO as input to the MuidCo chain as the track pair is already done upstream. | |
| SG::WriteHandleKey< MuonR4::MuonTagContainer > | m_outTagKey {this, "MuonTagKey" , "MuonTagsMuidCo"} |
| Write key of the created combined tags. | |
| SG::ReadHandleKey< xAOD::UncalibratedMeasurementContainer > | m_beamSpotKey {this, "BeamSpotKey", "BeamSpotMeasurements"} |
| Data dependency on the beam spot. | |
| SG::WriteHandleKey< xAOD::TrackParticleContainer > | m_CmbParticleKey |
| Write key of the created combined track particles. | |
| SG::WriteHandleKey< xAOD::TrackParticleContainer > | m_MeParticleKey |
| Write key of the created ME track particles. | |
| SG::WriteHandleKey< ActsTrk::TrackContainer > | m_cmbTrackKey {this, "CombinedTrackKey", "MuonCmbTracks"} |
| Write key to store the fitted Acts combined tracks. | |
| SG::WriteHandleKey< ActsTrk::TrackContainer > | m_meTrackKey {this, "MeTrackKey", "MuonMeTracks"} |
| Write key to store the fitted Acts ME tracks. | |
| SG::WriteDecorHandleKey< xAOD::TrackParticleContainer > | m_cmbTrackLinkKey |
| Element link to the produced extrapolated Acts track. | |
| SG::WriteDecorHandleKey< xAOD::TrackParticleContainer > | m_meTrackLinkKey |
| Gaudi::Property< bool > | m_fitMEtrack {this, "fitMETracks" , false} |
| Toggle whether the ME track is formed after the combined fit. | |
| DataObjIDColl | m_extendedExtraObjects |
| Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks. | |
| StoreGateSvc_t | m_evtStore |
| Pointer to StoreGate (event store by default). | |
| StoreGateSvc_t | m_detStore |
| Pointer to StoreGate (detector store by default). | |
| std::vector< SG::VarHandleKeyArray * > | m_vhka |
| bool | m_varHandleArraysDeclared |
Definition at line 31 of file CombinedFitAlg.h.
|
privateinherited |
Definition at line 376 of file AthCommonDataStore.h.
|
private |
Fetch the combined track from the data ship
Collect the muon measurements from the combined track
Create the output track particle
Definition at line 123 of file CombinedFitAlg.cxx.
|
inlineprivateinherited |
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition at line 156 of file AthCommonDataStore.h.
|
inlineinherited |
Definition at line 145 of file AthCommonDataStore.h.
|
inlineinherited |
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
Definition at line 95 of file AthCommonDataStore.h.
|
inlineinherited |
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
Definition at line 85 of file AthCommonDataStore.h.
|
finaloverridevirtual |
Fill the track particles into the output containers
Definition at line 70 of file CombinedFitAlg.cxx.
|
private |
Retrieve the ID & Muon measurements from the associated ID & MS track particles.
| muonTag | The STACO tag carrying the pointers to the MS & IDtracks to be combined |
Definition at line 189 of file CombinedFitAlg.cxx.
|
private |
Retrieve the uncalibrated measurements from the associated Acts::Track.
| trackPart | Reference to the track particle of interest |
Filter out the auxiliary external constraints
Definition at line 196 of file CombinedFitAlg.cxx.
|
protectedinherited |
Add StoreName to extra input/output deps as needed.
use the logic of the VarHandleKey to parse the DataObjID keys supplied via the ExtraInputs and ExtraOuputs Properties to add the StoreName if it's not explicitly given
|
overridevirtualinherited |
Return the list of extra output dependencies.
This list is extended to include symlinks implied by inheritance relations.
Definition at line 89 of file AthCommonAlgorithm.cxx.
|
inlinevirtualinherited |
Get filter decision:
Definition at line 93 of file AthCommonAlgorithm.h.
|
private |
Attempt to fit the muon tag to a combined track particle.
| tag | The STACO tag to use |
| ship | The dataship to save the output track and track particles |
Use the Id tack parameters as start parameters
Copy the fit result to the output container
Create the output track particle
Definition at line 92 of file CombinedFitAlg.cxx.
|
finaloverridevirtual |
Definition at line 24 of file CombinedFitAlg.cxx.
|
overridevirtualinherited |
Return this algorithm's input handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
|
inlineoverridevirtualinherited |
Specify if the algorithm is clonable.
Only relevant for non-reentrant algorithms. Actual number of clones needs to be set via the "Cardinality" property.
Reimplemented in AFP_DigiTop, AlgB, AlgT, BCM_Digitization, CscDigitBuilder, CscDigitToCscRDO, G4AtlasAlg, G4RunAlg, HGTD_Digitization, HiveAlgBase, InDet::GNNSeedingTrackMaker, InDet::SCT_Clusterization, InDet::SiSPGNNTrackMaker, InDet::SiSPSeededTrackFinder, InDet::SiTrackerSpacePointFinder, ISF::SimKernelMT, ITk::StripDigitization, ITkPixelCablingAlg, ITkStripCablingAlg, LArHitEMapMaker, LArTTL1Maker, LUCID_DigiTop, LVL1::L1TopoSimulation, MergeCalibHits, MergeGenericMuonSimHitColl, MergeHijingPars, MergeMcEventCollection, MergeTrackRecordCollection, MergeTruthJets, MergeTruthParticles, MuonDigitizer, PileUpMTAlg, PixelDigitization, RoIBResultToxAOD, SCT_ByteStreamErrorsTestAlg, SCT_CablingCondAlgFromCoraCool, SCT_CablingCondAlgFromText, SCT_ConditionsParameterTestAlg, SCT_ConditionsSummaryTestAlg, SCT_ConfigurationConditionsTestAlg, SCT_Digitization, SCT_FlaggedConditionTestAlg, SCT_LinkMaskingTestAlg, SCT_MajorityConditionsTestAlg, SCT_ModuleVetoTestAlg, SCT_MonitorConditionsTestAlg, SCT_PrepDataToxAOD, SCT_RawDataToxAOD, SCT_ReadCalibChipDataTestAlg, SCT_ReadCalibDataTestAlg, SCT_RODVetoTestAlg, SCT_SensorsTestAlg, SCT_SiliconConditionsTestAlg, SCT_StripVetoTestAlg, SCT_TdaqEnabledTestAlg, SCT_TestCablingAlg, SCTEventFlagWriter, SCTRawDataProvider, SCTSiLorentzAngleTestAlg, SCTSiPropertiesTestAlg, SGInputLoader, Simulation::BeamEffectsAlg, TileHitVecToCnt, TileMuonFitter, TilePulseForTileMuonReceiver, TileRawChannelMaker, TRTDigitization, and ZDC_DigiTop.
Definition at line 68 of file AthCommonAlgorithm.h.
|
inlineinherited |
Definition at line 24 of file AthCommonMsg.h.
|
inlineinherited |
Definition at line 30 of file AthCommonMsg.h.
|
overridevirtualinherited |
Return this algorithm's output handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
|
private |
Load the input containers from store gate and setup the write Handles for the output.
| ctx | EventContext for StoreGate access |
| ship | DataShip carrying the needed data containers |
Sort the tags by their MS track particle
Sort all candidates per MS track according to their matching chi2
Definition at line 44 of file CombinedFitAlg.cxx.
|
inlineprotectedinherited |
Definition at line 368 of file AthCommonDataStore.h.
|
inlineprotectedinherited |
remove all handles from I/O resolution
Definition at line 352 of file AthCommonDataStore.h.
|
inlinevirtualinherited |
Set filter decision:
Definition at line 99 of file AthCommonAlgorithm.h.
|
overridevirtualinherited |
Execute an algorithm.
We override this in order to work around an issue with the Algorithm base class storing the event context in a member variable that can cause crashes in MT jobs.
Reimplemented in AthAnalysisAlgorithm.
Definition at line 80 of file AthCommonAlgorithm.cxx.
|
overridevirtualinherited |
Override sysInitialize.
Override sysInitialize from the base class.
Loop through all output handles, and if they're WriteCondHandles, automatically register them and this Algorithm with the CondSvc
Scan through all outputHandles, and if they're WriteCondHandles, register them with the CondSvc
Reimplemented from AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >.
Reimplemented in AthAnalysisAlgorithm, AthHistogramAlgorithm, HypoBase, InputMakerBase, and PyAthena::Alg.
Definition at line 60 of file AthCommonAlgorithm.cxx.
|
overridevirtualinherited |
Handle START transition.
We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.
|
inlineinherited |
Definition at line 298 of file AthCommonDataStore.h.
|
private |
Convert the ActsTracks to track particles and write the Acts track container to store gate.
Also establish the link to the track from the filled track particle
| ctx | Event Context to access StoreGate to write the container to create the element links |
| key | The key to write the Acts::Track container to StoreGate |
| decorKey | DecorHandleKey to establish the link to the Acts::Tracks |
| particleContainer | Mutable reference to the track particle which particles are filled with the track information |
| fittedTracks | The fitted track to write to store gate |
Definition at line 160 of file CombinedFitAlg.cxx.
|
private |
Data dependency on the beam spot.
Definition at line 115 of file CombinedFitAlg.h.
|
private |
Write key of the created combined track particles.
Definition at line 117 of file CombinedFitAlg.h.
|
private |
Write key to store the fitted Acts combined tracks.
Definition at line 123 of file CombinedFitAlg.h.
|
private |
Element link to the produced extrapolated Acts track.
Definition at line 128 of file CombinedFitAlg.h.
|
private |
Conversion tool from Acts -> xAOD:TrackParticle.
Definition at line 103 of file CombinedFitAlg.h.
|
private |
Context provider for geometry, magnetic field and calibration contexts.
Definition at line 109 of file CombinedFitAlg.h.
|
privateinherited |
Pointer to StoreGate (detector store by default).
Definition at line 381 of file AthCommonDataStore.h.
|
privateinherited |
Pointer to StoreGate (event store by default).
Definition at line 378 of file AthCommonDataStore.h.
|
privateinherited |
Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.
Empty if no symlinks were found.
Definition at line 108 of file AthCommonAlgorithm.h.
|
private |
Track extrapolation tool.
Definition at line 107 of file CombinedFitAlg.h.
|
private |
Toggle whether the ME track is formed after the combined fit.
Definition at line 134 of file CombinedFitAlg.h.
|
private |
Write key of the created ME track particles.
Definition at line 120 of file CombinedFitAlg.h.
|
private |
Write key to store the fitted Acts ME tracks.
Definition at line 125 of file CombinedFitAlg.h.
|
private |
Definition at line 131 of file CombinedFitAlg.h.
|
private |
Write key of the created combined tags.
Definition at line 113 of file CombinedFitAlg.h.
|
private |
Use STACO as input to the MuidCo chain as the track pair is already done upstream.
Definition at line 111 of file CombinedFitAlg.h.
|
private |
|
privateinherited |
Definition at line 387 of file AthCommonDataStore.h.
|
privateinherited |
Definition at line 386 of file AthCommonDataStore.h.