ATLAS Offline Software
Loading...
Searching...
No Matches
MuonCombinedR4::CombinedStacoAlg Class Reference

Prototype to combine ID + MS tracks using the statistical combination The ID + MS momentum are combined using the inverse of the respective q/p covariance values of the two tracks. More...

#include <CombinedStacoAlg.h>

Inheritance diagram for MuonCombinedR4::CombinedStacoAlg:
Collaboration diagram for MuonCombinedR4::CombinedStacoAlg:

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< StoreGateSvcStoreGateSvc_t

Private Member Functions

double calcELoss (const MuonR4::MuonTag &idTag) const
 Calculate the energy loss that is added to the MS momentum.
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
 specialization for handling Gaudi::Property<SG::VarHandleKey>

Private Attributes

ActsTrk::ContextUtility m_ctxProvider {this}
 Context provider for geometry, magnetic field and calibration contexts.
SG::ReadHandleKey< xAOD::TrackParticleContainerm_msTrackKey {this, "MsTracks", "MsTrackParticlesR4"}
 Input key to the reconstructed MS track particles.
SG::ReadHandleKey< MuonR4::MuonTagContainerm_idTrkKey {this, "IdTrkKey", "MuonInDetCandidates"}
 Input key to the selected ID / ITk track particles.
SG::WriteHandleKey< MuonR4::MuonTagContainerm_stacoKey {this, "writeKey" , "MuonTagsSTACO"}
 Write key of the created STACO tags.
SG::WriteHandleKey< xAOD::TrackParticleContainerm_cmbTrkKey
 Write key of the associated combined track particle container.
Gaudi::Property< float > m_match_dEta {this, "maxDEta", 0.1}
 Upper cut on the delta eta between ID and MS track.
Gaudi::Property< float > m_match_dPhi {this, "maxDPhi", 2.*Gaudi::Units::deg}
 Upper cut on the delat phi between ID and MS track.
Gaudi::Property< bool > m_useMeasELoss {this,"useMeasELoss", true}
 Switch toggling whether the energy loss from the associated calorimeter cluster shall be taken.
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

Detailed Description

Prototype to combine ID + MS tracks using the statistical combination The ID + MS momentum are combined using the inverse of the respective q/p covariance values of the two tracks.

The energy loss in the calorimeter is eiher measured from the associated calorimeter clusters or from the material description given in the calorimter tracking geometry.

Definition at line 25 of file CombinedStacoAlg.h.

Member Typedef Documentation

◆ StoreGateSvc_t

typedef ServiceHandle<StoreGateSvc> AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::StoreGateSvc_t
privateinherited

Definition at line 388 of file AthCommonDataStore.h.

Member Function Documentation

◆ calcELoss()

double MuonCombinedR4::CombinedStacoAlg::calcELoss ( const MuonR4::MuonTag & idTag) const
private

Calculate the energy loss that is added to the MS momentum.

First, it is attempted to use the energy from the associated calo cluster. If not available the momentum of the last track state is compared to the ID pergiee momentum

Parameters
idTagReference to the inner detector track of interest

Aproximate the energy loss as the fitted loss between perigee and the calorimeter exit.

Definition at line 33 of file CombinedStacoAlg.cxx.

33 {
34 const xAOD::TrackParticle* idTrk = idTag.idTrack();
35 const ActsTrk::CaloExtension* caloExt = ActsTrk::getCaloExtension(*idTrk);
36 double eLoss{0.};
37 if (m_useMeasELoss && caloExt) {
38 ATH_MSG_VERBOSE(__func__<<"() "<<__LINE__<<" - Attempt to fetch the energy loss from "
39 <<caloExt->associatedClusters().size()<<" associated clusters. ");
40 for (const xAOD::CaloCluster* clust : caloExt->associatedClusters()) {
41 eLoss += clust->e();
42 }
43 if (!caloExt->associatedClusters().empty()) {
44 ATH_MSG_DEBUG(__func__<<"() "<<__LINE__<<" - Measured E-loss: "<<eLoss);
45 return eLoss;
46 }
47 }
48
49 auto idActsTrk = ActsTrk::getActsTrack(*idTrk);
50 auto caloExitPars = idTag.extrapolatedParsID(caloExitParKey);
51
52 const Acts::BoundTrackParameters idPerigeePars = idActsTrk->createParametersAtReference();
54 eLoss = idPerigeePars.absoluteMomentum() - caloExitPars->absoluteMomentum();
55
56
57 ATH_MSG_VERBOSE(__func__<<"() "<<__LINE__<<" - Track has experienced "<<eLoss<<" [GeV] energy loss. "
58 <<(idPerigeePars.absoluteMomentum() -
59 ActsTrk::lastTrackParameters(*idTrk)->absoluteMomentum())<<" [GeV] were lost in the calorimeter");
60 if(eLoss< 0) {
61 ATH_MSG_WARNING(__func__<<"() "<<__LINE__<<" - ID track has negative E-loss "<<eLoss<<" [GeV]");
62 }
63 return eLoss;
64 }
#define ATH_MSG_VERBOSE(x)
#define ATH_MSG_WARNING(x)
#define ATH_MSG_DEBUG(x)
const ClusterVec_t & associatedClusters() const
Returns the view on the asociated clusters.
Gaudi::Property< bool > m_useMeasELoss
Switch toggling whether the energy loss from the associated calorimeter cluster shall be taken.
std::optional< Acts::BoundTrackParameters > extrapolatedParsID(const Acts::HashedString &parName) const
Returns the cached extrapolated ID track parameters.
Definition MuonTag.cxx:76
const xAOD::TrackParticle * idTrack() const
Returns the id track candidate from which the tag was built.
Definition MuonTag.cxx:17
const CaloExtension * getCaloExtension(const xAOD::TrackParticle &track)
Retrieve a pointer to the CaloExtension linked with the passed TrackParticle.
std::optional< Acts::BoundTrackParameters > lastTrackParameters(const xAOD::TrackParticle &trkPart, const bool skipOutlier=true)
Returns the last MeasurementState in form of Acts::BoundTrackParameters.
std::optional< ActsTrk::TrackContainer::ConstTrackProxy > getActsTrack(const xAOD::TrackParticle &trkPart)
Return the proxy to the Acts track from which the track particle was made frome.
Definition Decoration.cxx:9
CaloCluster_v1 CaloCluster
Define the latest version of the calorimeter cluster class.
TrackParticle_v1 TrackParticle
Reference the current persistent version:

◆ declareGaudiProperty()

Gaudi::Details::PropertyBase & AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareGaudiProperty ( Gaudi::Property< T, V, H > & hndl,
const SG::VarHandleKeyType &  )
inlineprivateinherited

specialization for handling Gaudi::Property<SG::VarHandleKey>

Definition at line 156 of file AthCommonDataStore.h.

158 {
160 hndl.value(),
161 hndl.documentation());
162
163 }
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)

◆ declareProperty()

Gaudi::Details::PropertyBase & AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareProperty ( Gaudi::Property< T, V, H > & t)
inlineinherited

Definition at line 145 of file AthCommonDataStore.h.

145 {
146 typedef typename SG::HandleClassifier<T>::type htype;
148 }
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>

◆ detStore()

const ServiceHandle< StoreGateSvc > & AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::detStore ( ) const
inlineinherited

The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 95 of file AthCommonDataStore.h.

◆ evtStore()

ServiceHandle< StoreGateSvc > & AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::evtStore ( )
inlineinherited

The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 85 of file AthCommonDataStore.h.

◆ execute()

StatusCode MuonCombinedR4::CombinedStacoAlg::execute ( const EventContext & ctx) const
finaloverridevirtual

Now loop over the tags to find the matching candidates

Basic parameter match

Blindly add the energy loss to the momentum

Definition at line 65 of file CombinedStacoAlg.cxx.

65 {
66 TrackCont_t stacoTracks{};
67 StacoCont_t stacoTags{};
68
69 const MuonR4::MuonTagContainer* idTracks{nullptr};
70 const xAOD::TrackParticleContainer *msTracks{nullptr};
71 ATH_CHECK(SG::get(idTracks, m_idTrkKey, ctx));
72 ATH_CHECK(SG::get(msTracks, m_msTrackKey, ctx));
73
74 for (const MuonR4::MuonTag* idTag : *idTracks) {
75 auto caloExitPars = idTag->extrapolatedParsID(caloExitParKey);
76 if (!caloExitPars) {
77 ATH_MSG_VERBOSE(__func__<<"() "<<__LINE__<<" - Track has no calo exit pars");
78 continue;
79 }
80 ATH_MSG_DEBUG(__func__<<"() "<<__LINE__<<" - Calorimeter exit parameters: "<<(*caloExitPars));
81 const double eLoss = calcELoss(*idTag);
82
83 const xAOD::TrackParticle* idTrk = idTag->idTrack();
84
86 for (const xAOD::TrackParticle* saTag : *msTracks) {
87 const auto msTrk = ActsTrk::getActsTrack(*saTag);
88 const Acts::BoundTrackParameters msPerigeePars = msTrk->createParametersAtReference();
90 using namespace P4Helpers;
91 if (std::abs(Acts::VectorHelpers::eta(msPerigeePars) -
92 Acts::VectorHelpers::eta(*caloExitPars)) > m_match_dEta ||
93 std::abs(deltaPhi(msPerigeePars.phi(), caloExitPars->phi())) > m_match_dPhi) {
94 continue;
95 }
96 ATH_MSG_DEBUG(__func__<<"() "<<__LINE__<<" - Ms track "<<msPerigeePars<<", rel:"<<
97 std::sqrt((*msPerigeePars.covariance())(Acts::eBoundQOverP, Acts::eBoundQOverP)) /
98 msPerigeePars.qOverP());
100 const double msQoverP = std::copysign(1./(msPerigeePars.absoluteMomentum() + eLoss), msPerigeePars.qOverP());
101 const double msCov = 1./(*msPerigeePars.covariance())(Acts::eBoundQOverP, Acts::eBoundQOverP);
102 const double idCov = 1./(*caloExitPars->covariance())(Acts::eBoundQOverP, Acts::eBoundQOverP);
103 const double combCov = msCov + idCov;
104 const double combinedQoverP = (caloExitPars->qOverP()*idCov + msQoverP * msCov) / combCov;
105 ATH_MSG_DEBUG(__func__<<"() "<<__LINE__<<" - ID momentum: "<<caloExitPars->absoluteMomentum()
106 <<"("<<(idCov/combCov)<<"), MS momentum: "<< msPerigeePars.absoluteMomentum()<<", E-loss: "<<eLoss<<" --> "
107 <<" MS momentum + ELoss: "<<std::abs(1./msQoverP)<<"("<< (msCov / combCov)<<") ---> Combined Momentum: "
108 <<std::abs(1./combinedQoverP));
109 auto combinedTrk = stacoTracks->push_back(std::make_unique<xAOD::TrackParticle>());
110 combinedTrk->setDefiningParameters(idTrk->d0(), idTrk->z0(), idTrk->phi0(),
111 idTrk->theta(), combinedQoverP / Gaudi::Units::GeV);
112
113 auto stacoTag = stacoTags->push_back(std::make_unique<MuonR4::MuonTag>());
114 stacoTag->setAuthor(xAOD::Muon::Author::STACO);
115 stacoTag->setIdTrack(idTrk);
116 stacoTag->setCbTrack(combinedTrk);
117 stacoTag->setMsTrack(saTag);
118 stacoTag->setSegments(msTrk->component<std::vector<const xAOD::MuonSegment*>>("muonSegLinks"));
119 }
120 }
121
122 ATH_CHECK(stacoTags.record(m_stacoKey, ctx));
123 ATH_CHECK(stacoTracks.record(m_cmbTrkKey, ctx));
124
125 return StatusCode::SUCCESS;
126 }
Scalar deltaPhi(const MatrixBase< Derived > &vec) const
#define ATH_CHECK
Evaluate an expression and check for errors.
Gaudi::Property< float > m_match_dPhi
Upper cut on the delat phi between ID and MS track.
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_msTrackKey
Input key to the reconstructed MS track particles.
SG::WriteHandleKey< MuonR4::MuonTagContainer > m_stacoKey
Write key of the created STACO tags.
Gaudi::Property< float > m_match_dEta
Upper cut on the delta eta between ID and MS track.
double calcELoss(const MuonR4::MuonTag &idTag) const
Calculate the energy loss that is added to the MS momentum.
SG::WriteHandleKey< xAOD::TrackParticleContainer > m_cmbTrkKey
Write key of the associated combined track particle container.
SG::ReadHandleKey< MuonR4::MuonTagContainer > m_idTrkKey
Input key to the selected ID / ITk track particles.
float z0() const
Returns the parameter.
float theta() const
Returns the parameter, which has range 0 to .
float d0() const
Returns the parameter.
float phi0() const
Returns the parameter, which has range to .
DataVector< MuonTag > MuonTagContainer
Definition MuonTag.h:125
const T * get(const ReadCondHandleKey< T > &key, const EventContext &ctx)
Convenience function to retrieve an object given a ReadCondHandleKey.
TrackParticleContainer_v1 TrackParticleContainer
Definition of the current "TrackParticle container version".

◆ extraDeps_update_handler()

void AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::extraDeps_update_handler ( Gaudi::Details::PropertyBase & ExtraDeps)
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

◆ extraOutputDeps()

const DataObjIDColl & AthCommonAlgorithm< Gaudi::Algorithm >::extraOutputDeps ( ) const
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.

54{
55 // If we didn't find any symlinks to add, just return the collection
56 // from the base class. Otherwise, return the extended collection.
57 if (!m_extendedExtraObjects.empty()) {
59 }
61}
Common base class for algorithms.

◆ filterPassed()

virtual bool AthCommonAlgorithm< Gaudi::Algorithm >::filterPassed ( const EventContext & ctx) const
inlinevirtualinherited

Get filter decision:

Definition at line 93 of file AthCommonAlgorithm.h.

93 {
94 return execState( ctx ).filterPassed();
95 }
virtual bool filterPassed(const EventContext &ctx) const
Get filter decision:

◆ initialize()

StatusCode MuonCombinedR4::CombinedStacoAlg::initialize ( )
finaloverridevirtual

Definition at line 24 of file CombinedStacoAlg.cxx.

24 {
25 ATH_CHECK(m_msTrackKey.initialize());
26 ATH_CHECK(m_idTrkKey.initialize());
27 ATH_CHECK(m_stacoKey.initialize());
28 ATH_CHECK(m_cmbTrkKey.initialize());
29 ATH_CHECK(m_ctxProvider.initialize());
30 return StatusCode::SUCCESS;
31 }
ActsTrk::ContextUtility m_ctxProvider
Context provider for geometry, magnetic field and calibration contexts.

◆ inputHandles()

virtual std::vector< Gaudi::DataHandle * > AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::inputHandles ( ) const
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.

◆ isClonable()

virtual bool AthCommonAlgorithm< Gaudi::Algorithm >::isClonable ( ) const
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.

68 {
69 return true;
70 }

◆ msg()

MsgStream & AthCommonMsg< Gaudi::Algorithm >::msg ( ) const
inlineinherited

Definition at line 24 of file AthCommonMsg.h.

24 {
25 return this->msgStream();
26 }

◆ msgLvl()

bool AthCommonMsg< Gaudi::Algorithm >::msgLvl ( const MSG::Level lvl) const
inlineinherited

Definition at line 30 of file AthCommonMsg.h.

30 {
31 return this->msgLevel(lvl);
32 }

◆ outputHandles()

virtual std::vector< Gaudi::DataHandle * > AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::outputHandles ( ) const
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.

◆ renounce()

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 > AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::renounce ( T & h)
inlineprotectedinherited

Definition at line 380 of file AthCommonDataStore.h.

381 {
382 h.renounce();
384 }
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)

◆ renounceArray()

void AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::renounceArray ( SG::VarHandleKeyArray & handlesArray)
inlineprotectedinherited

remove all handles from I/O resolution

Definition at line 364 of file AthCommonDataStore.h.

364 {
366 }

◆ setFilterPassed()

virtual void AthCommonAlgorithm< Gaudi::Algorithm >::setFilterPassed ( bool state,
const EventContext & ctx ) const
inlinevirtualinherited

Set filter decision:

Reimplemented in AthFilterAlgorithm.

Definition at line 99 of file AthCommonAlgorithm.h.

99 {
101 }
virtual void setFilterPassed(bool state, const EventContext &ctx) const
Set filter decision:

◆ sysExecute()

StatusCode AthCommonAlgorithm< Gaudi::Algorithm >::sysExecute ( const EventContext & ctx)
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.

41{
42 return BaseAlg::sysExecute (ctx);
43}

◆ sysInitialize()

StatusCode AthCommonAlgorithm< Gaudi::Algorithm >::sysInitialize ( )
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.

71 {
73
74 if (sc.isFailure()) {
75 return sc;
76 }
77
78 ServiceHandle<ICondSvc> cs("CondSvc",name());
79 for (auto h : outputHandles()) {
80 if (h->isCondition() && h->mode() == Gaudi::DataHandle::Writer) {
81 // do this inside the loop so we don't create the CondSvc until needed
82 if ( cs.retrieve().isFailure() ) {
83 ATH_MSG_WARNING("no CondSvc found: won't autoreg WriteCondHandles");
85 }
86 if (cs->regHandle(this,*h).isFailure()) {
88 ATH_MSG_ERROR("unable to register WriteCondHandle " << h->fullKey()
89 << " with CondSvc");
90 }
91 }
92 }
93 return sc;
94}
#define ATH_MSG_ERROR(x)
virtual StatusCode sysInitialize() override
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override

◆ sysStart()

virtual StatusCode AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::sysStart ( )
overridevirtualinherited

Handle START transition.

We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.

◆ updateVHKA()

void AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::updateVHKA ( Gaudi::Details::PropertyBase & )
inlineinherited

Definition at line 308 of file AthCommonDataStore.h.

308 {
309 // debug() << "updateVHKA for property " << p.name() << " " << p.toString()
310 // << " size: " << m_vhka.size() << endmsg;
311 for (auto &a : m_vhka) {
313 for (auto k : keys) {
314 k->setOwner(this);
315 }
316 }
317 }

Member Data Documentation

◆ m_cmbTrkKey

SG::WriteHandleKey<xAOD::TrackParticleContainer> MuonCombinedR4::CombinedStacoAlg::m_cmbTrkKey
private
Initial value:
{this, "writeTrkKey",
"STACOTrackParticles"}

Write key of the associated combined track particle container.

Definition at line 48 of file CombinedStacoAlg.h.

48 {this, "writeTrkKey",
49 "STACOTrackParticles"};

◆ m_ctxProvider

ActsTrk::ContextUtility MuonCombinedR4::CombinedStacoAlg::m_ctxProvider {this}
private

Context provider for geometry, magnetic field and calibration contexts.

Definition at line 40 of file CombinedStacoAlg.h.

40{this};

◆ m_detStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_detStore
privateinherited

Pointer to StoreGate (detector store by default).

Definition at line 393 of file AthCommonDataStore.h.

◆ m_evtStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_evtStore
privateinherited

Pointer to StoreGate (event store by default).

Definition at line 390 of file AthCommonDataStore.h.

◆ m_extendedExtraObjects

DataObjIDColl AthCommonAlgorithm< Gaudi::Algorithm >::m_extendedExtraObjects
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.

◆ m_idTrkKey

SG::ReadHandleKey<MuonR4::MuonTagContainer> MuonCombinedR4::CombinedStacoAlg::m_idTrkKey {this, "IdTrkKey", "MuonInDetCandidates"}
private

Input key to the selected ID / ITk track particles.

Definition at line 44 of file CombinedStacoAlg.h.

44{this, "IdTrkKey", "MuonInDetCandidates"};

◆ m_match_dEta

Gaudi::Property<float> MuonCombinedR4::CombinedStacoAlg::m_match_dEta {this, "maxDEta", 0.1}
private

Upper cut on the delta eta between ID and MS track.

Definition at line 51 of file CombinedStacoAlg.h.

51{this, "maxDEta", 0.1};

◆ m_match_dPhi

Gaudi::Property<float> MuonCombinedR4::CombinedStacoAlg::m_match_dPhi {this, "maxDPhi", 2.*Gaudi::Units::deg}
private

Upper cut on the delat phi between ID and MS track.

Definition at line 53 of file CombinedStacoAlg.h.

53{this, "maxDPhi", 2.*Gaudi::Units::deg};

◆ m_msTrackKey

SG::ReadHandleKey<xAOD::TrackParticleContainer> MuonCombinedR4::CombinedStacoAlg::m_msTrackKey {this, "MsTracks", "MsTrackParticlesR4"}
private

Input key to the reconstructed MS track particles.

Definition at line 42 of file CombinedStacoAlg.h.

42{this, "MsTracks", "MsTrackParticlesR4"};

◆ m_stacoKey

SG::WriteHandleKey<MuonR4::MuonTagContainer> MuonCombinedR4::CombinedStacoAlg::m_stacoKey {this, "writeKey" , "MuonTagsSTACO"}
private

Write key of the created STACO tags.

Definition at line 46 of file CombinedStacoAlg.h.

46{this, "writeKey" , "MuonTagsSTACO"};

◆ m_useMeasELoss

Gaudi::Property<bool> MuonCombinedR4::CombinedStacoAlg::m_useMeasELoss {this,"useMeasELoss", true}
private

Switch toggling whether the energy loss from the associated calorimeter cluster shall be taken.

Definition at line 56 of file CombinedStacoAlg.h.

56{this,"useMeasELoss", true};

◆ m_varHandleArraysDeclared

bool AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_varHandleArraysDeclared
privateinherited

Definition at line 399 of file AthCommonDataStore.h.

◆ m_vhka

std::vector<SG::VarHandleKeyArray*> AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_vhka
privateinherited

Definition at line 398 of file AthCommonDataStore.h.


The documentation for this class was generated from the following files: