![]() |
ATLAS Offline Software
|
The xAODSegmentCnvAlg takes MuonR4::Segments and converts them into a single xAOD::MuonSegmentContainer. More...
#include <xAODSegmentCnvAlg.h>
Classes | |
| struct | PrepDataCollectorShip |
| Auxiliary struct to ship the WriteDecorHandle and writeHandles needed to link the uncalibrated meausrements to the segment. More... | |
| struct | Counter |
| Helper struct to keep track of the number of precision, trigger phi and trigger eta hits. 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 | |
| using | PrdCont_t = xAOD::UncalibratedMeasurementContainer |
| Abrivation to call an uncalibrated measurement container. | |
| using | PrdLink_t = ElementLink<PrdCont_t> |
| Abrivation to call the link to an element inside an uncalibrated measurement container. | |
| using | PrdLinkVec_t = std::vector<PrdLink_t> |
| Abrivation of a collection of Prd links. | |
| using | DecorKey_t = SG::WriteDecorHandleKey<xAOD::MuonSegmentContainer> |
| Abrivation of the extra declared auxVariables. | |
| typedef ServiceHandle< StoreGateSvc > | StoreGateSvc_t |
Private Member Functions | |
| StatusCode | linkMeasurements (const ActsTrk::GeometryContext &gctx, const Segment &inSegment, xAOD::MuonSegment &targetSegment, PrepDataCollectorShip &ship) const |
| Decorate the prd links onto the output muon segment. | |
| void | evaluateSummary (const EventContext &ctx, xAOD::MuonSegment &segment) const |
| Calculate the number of hits, outliers and holes on the segment and set the hit summary fields of the passed segment. | |
| void | findHoles (const EventContext &ctx, const Acts::BoundTrackParameters &startPars, const Acts::Surface *target, const std::unordered_set< Identifier > &geoIdsWithHits, Counter &holeCounter) const |
| Find potential sensitive surfaces crossed by the segment but without contributing measurements. | |
| Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &) |
| specialization for handling Gaudi::Property<SG::VarHandleKey> | |
Private Attributes | |
| ServiceHandle< Muon::IMuonIdHelperSvc > | m_idHelperSvc |
| IdHelperSvc for Identifier printing & manipulation. | |
| SG::ReadHandleKeyArray< SegmentContainer > | m_readKeys {this, "InSegmentKeys", {"R4MuonSegments"}} |
| Input segment container key. | |
| SG::WriteHandleKey< xAOD::MuonSegmentContainer > | m_writeKey {this, "OutSegmentKey", "MuonSegmentsFromR4"} |
| Output segment container key. | |
| ActsTrk::GeoContextReadKey_t | m_geoCtxKey {this, "AlignmentKey", "ActsAlignment", "cond handle key"} |
| Alignment container key. | |
| ServiceHandle< ActsTrk::ITrackingGeometrySvc > | m_trackingGeometrySvc {this, "TrackingGeometrySvc", "ActsTrackingGeometrySvc"} |
| Tracking geometry tool to search for holes. | |
| ToolHandle< ActsTrk::IExtrapolationTool > | m_extrapolationTool {this, "ExtrapolationTool", ""} |
| Acts extrapolation tool to search for holes. | |
| DecorKey_t | m_prdLinkKey {this, "PrdLinkKey", m_writeKey, "prdLinks" } |
| Decoration to the links to the associated Uncalibrated measurements. | |
| DecorKey_t | m_prdStateKey {this, "PrdStateKey", m_writeKey, "prdState"} |
| Decoration to the PrdLink state (I.e. | |
| DecorKey_t | m_localSegParKey {this, "LocalSegParKey", m_writeKey, "localSegPars"} |
| Decoration of the local segment parameters. | |
| DecorKey_t | m_localSegCovKey {this, "LocalCovParKey", m_writeKey, "localSegCov"} |
| Decoration of the local fit covariance parameters. | |
| DecorKey_t | m_parentSegKey {this, "ParentSegmentKey", m_writeKey, "parentSegment"} |
| Decoration of the original segment. | |
| SG::WriteHandleKey< xAOD::CombinedMuonStripContainer > | m_combMeasKey {this, "combinedPrdKey", "CombinedMuonPrds"} |
| Auxiliary container to model two measurements in the same gas gap as a single track state. | |
| ActsTrk::AuxiliaryMeasurementHandler | m_auxMeasProv {this} |
| Handler to parse the auxiliary beam spot constaint. | |
| ActsTrk::ContextUtility | m_ctxProvider {this} |
| Context provider for geometry, magnetic field and calibration contexts. | |
| Gaudi::Property< bool > | m_convertBeamSpot {this, "convertBeamSpot", false} |
| Flag to convert the beamspot constaint as well. | |
| Gaudi::Property< bool > | m_estimateHoles {this, "estimateHoles", true} |
| Flag to tell whether the hole summary shall be written. | |
| Gaudi::Property< double > | m_extraHolePath {this, "extraHolePath", 20.*Gaudi::Units::cm} |
| Extra path length for the propagation after the last surface was crossed. | |
| 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 |
The xAODSegmentCnvAlg takes MuonR4::Segments and converts them into a single xAOD::MuonSegmentContainer.
The segments carry the global segment position and direction, the fit quality in terms of chi2 & nDoF, and the hit, outlier and hole hit count summary. For the latter, the algortihm optionally launches a hole search using the Acts::TrackingGeometry. Further, the local parameters and covariance from the fit are decorated onto the segment. Finally, the ElementLinks to the contributing measurements are attached. Prds from the uncombined space points (mainly Mdt, Mm, BI-RPC, sTGC pad) are directly appended to the list. The eta & phi measurements of Rpc/Tgc/sTgc which are within the same gasgap are combined in a CombindMuonStrip object which itself is then appended to the list. Optionally, the conversion alg can also convert the beamspot measurement into a xAOD::UncalibratedMeasurement. For each measurement, the flag whether it was an outlier or not is also stored.
Definition at line 45 of file xAODSegmentCnvAlg.h.
|
private |
Abrivation of the extra declared auxVariables.
Definition at line 152 of file xAODSegmentCnvAlg.h.
Abrivation to call an uncalibrated measurement container.
Definition at line 54 of file xAODSegmentCnvAlg.h.
|
private |
Abrivation to call the link to an element inside an uncalibrated measurement container.
Definition at line 57 of file xAODSegmentCnvAlg.h.
|
private |
Abrivation of a collection of Prd links.
Definition at line 59 of file xAODSegmentCnvAlg.h.
|
privateinherited |
Definition at line 388 of file AthCommonDataStore.h.
|
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.
|
private |
Calculate the number of hits, outliers and holes on the segment and set the hit summary fields of the passed segment.
| ctx | EventContext to access conditions data and to propagate |
| segment | The segment for which the hit summary shall be evaluated |
Instantiate one counter for hits, outliers, holes
Also write down the geometryIdentifiers of the segment measurements
Calculate the segment start parameters
Definition at line 276 of file xAODSegmentCnvAlg.cxx.
|
inlineinherited |
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
Definition at line 85 of file AthCommonDataStore.h.
|
finaloverridevirtual |
Counter for the reco segment link
Definition at line 64 of file xAODSegmentCnvAlg.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 |
Find potential sensitive surfaces crossed by the segment but without contributing measurements.
The segment line is propagated from the startPars to the target surface + some margin using the Acts::Propagator. The propaator records every surface crossing. The associated SurfacePlacements are then used to determine the ATLAS identifier and then to assign whether there's a hole or not.
| ctx | EventContext to be passed to the extrapolation tool |
| startPars | The start parameters from which the propagation starts. The surface is the bottom boundary surface of the volume where's the first segment measurement. |
| target | The top boundary surface of the volume with the last segment measurement. |
| geoIdsWithHits | The list of ATLAS identifiers with segmen measurements (outlier + hit) |
| holeCounter | Mutable reference to the segment hole counter. |
Surface is already part of the measurement pool
We expect at least one hit in the same sector to avoid that hits in the sector-overlap from the adjacent chamber are marked as holes. While they are not part of the segment by construction
Definition at line 366 of file xAODSegmentCnvAlg.cxx.
|
finaloverridevirtual |
Definition at line 45 of file xAODSegmentCnvAlg.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.
|
private |
Decorate the prd links onto the output muon segment.
Eta & phi measurements are absorbed converted into a CombinedMuonStrip which is a source link linke object carrying a link to both prds. In this way, only one track state is generated later in the track fit from the two measurements. Two assumptions are made for the linking
| gctx | The geometry context to construct the local segment parameters |
| inSegment | The segment from which the space points are collected |
| targetSegment | The xAOD segment onto which all the links are decorated |
| ship | Reference to the auxiliary ship carrying all the write decor handles needed for the linking |
Combine the two prds from the space point to a combined muonstrip and link the latter to the segment.
Size of the bounds purely for visualization purposes
It might be that the segment has anoher 1D-measurement in the same gas gap
The first measurement should always be the eta measurement
Definition at line 133 of file xAODSegmentCnvAlg.cxx.
|
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.
|
inlineprotectedinherited |
Definition at line 380 of file AthCommonDataStore.h.
|
inlineprotectedinherited |
remove all handles from I/O resolution
Definition at line 364 of file AthCommonDataStore.h.
|
inlinevirtualinherited |
Set filter decision:
Reimplemented in AthFilterAlgorithm.
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, AthFilterAlgorithm, 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 308 of file AthCommonDataStore.h.
|
private |
Handler to parse the auxiliary beam spot constaint.
Definition at line 166 of file xAODSegmentCnvAlg.h.
|
private |
Auxiliary container to model two measurements in the same gas gap as a single track state.
Definition at line 164 of file xAODSegmentCnvAlg.h.
|
private |
Flag to convert the beamspot constaint as well.
Definition at line 170 of file xAODSegmentCnvAlg.h.
|
private |
Context provider for geometry, magnetic field and calibration contexts.
Definition at line 168 of file xAODSegmentCnvAlg.h.
|
privateinherited |
Pointer to StoreGate (detector store by default).
Definition at line 393 of file AthCommonDataStore.h.
|
private |
Flag to tell whether the hole summary shall be written.
Definition at line 172 of file xAODSegmentCnvAlg.h.
|
privateinherited |
Pointer to StoreGate (event store by default).
Definition at line 390 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 |
Extra path length for the propagation after the last surface was crossed.
Definition at line 174 of file xAODSegmentCnvAlg.h.
|
private |
Acts extrapolation tool to search for holes.
Definition at line 149 of file xAODSegmentCnvAlg.h.
|
private |
Alignment container key.
Definition at line 145 of file xAODSegmentCnvAlg.h.
|
private |
IdHelperSvc for Identifier printing & manipulation.
Definition at line 138 of file xAODSegmentCnvAlg.h.
|
private |
Decoration of the local fit covariance parameters.
Definition at line 160 of file xAODSegmentCnvAlg.h.
|
private |
|
private |
|
private |
Decoration to the links to the associated Uncalibrated measurements.
Definition at line 154 of file xAODSegmentCnvAlg.h.
|
private |
Decoration to the PrdLink state (I.e.
outlier or valid)
Definition at line 156 of file xAODSegmentCnvAlg.h.
|
private |
Input segment container key.
Definition at line 141 of file xAODSegmentCnvAlg.h.
|
private |
Tracking geometry tool to search for holes.
Definition at line 147 of file xAODSegmentCnvAlg.h.
|
privateinherited |
Definition at line 399 of file AthCommonDataStore.h.
|
privateinherited |
Definition at line 398 of file AthCommonDataStore.h.
|
private |
Output segment container key.
Definition at line 143 of file xAODSegmentCnvAlg.h.