ATLAS Offline Software
Loading...
Searching...
No Matches
MuonCombinedInDetCandidateAlg Class Reference

#include <MuonCombinedInDetCandidateAlg.h>

Inheritance diagram for MuonCombinedInDetCandidateAlg:
Collaboration diagram for MuonCombinedInDetCandidateAlg:

Classes

struct  InDetCandidateCache

Public Member Functions

 ~MuonCombinedInDetCandidateAlg ()=default
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

StatusCode create (const EventContext &ctx, InDetCandidateCache &output_cache) const
bool isValidTrackParticle (const Trk::ITrackSelectorTool *currentTrackSelector, const xAOD::TrackParticle *const tp) const
void printTrackParticleInfo (const xAOD::TrackParticle *const tp, const std::string &what) const
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
 specialization for handling Gaudi::Property<SG::VarHandleKey>

Static Private Member Functions

static int getCount (const xAOD::TrackParticle &tp, const xAOD::SummaryType type)

Private Attributes

SG::ReadHandleKeyArray< xAOD::TrackParticleContainerm_indetTrackParticleLocation
SG::ReadHandleKeyArray< CaloExtensionCollectionm_caloExtensionLocation {this, "CaloExtensionLocation", {} }
SG::ReadHandleKey< xAOD::TrackParticleContainerm_indetForwardTrackParticleLocation
SG::ReadDecorHandleKeyArray< xAOD::TrackParticleContainerm_trkLinkKey {this, "TrackLinkKeys", {}}
SG::ReadHandleKey< CaloExtensionCollectionm_caloFwdExtensionLocation {this, "CaloFwdExtensionLocation", ""}
SG::WriteHandleKey< InDetCandidateCollectionm_candidateCollectionName {this, "InDetCandidateLocation", "InDetCandidates"}
ToolHandle< Trk::ITrackSelectorToolm_trackSelector
ToolHandle< Trk::ITrackSelectorToolm_forwardTrackSelector
ToolHandle< Muon::IMuonSystemExtensionToolm_muonSystemExtensionTool {this, "MuonSystemExtensionTool", "", "Muon system extension tool"}
Gaudi::Property< bool > m_doSiliconForwardMuons {this, "DoSiliconAssocForwardMuons", false}
Gaudi::Property< float > m_extThreshold {this, "ExtensionPtThreshold", 2500}
 Minimum pt threshold of the IdCandidate to be extrapolated through the spectrometer.
Gaudi::Property< bool > m_extendSAF {this, "ExtendSAF", false}
 Shall SAF tracks be equiped with a muon system extension used by MuGirl later.
Gaudi::Property< bool > m_extendBulk {this, "ExtendBulk", true}
 Shall ordinary ID tracks be equiped with a muon system extension used by MuGirl later.
Gaudi::Property< bool > m_requireExtension {this, "RequireExtension", true}
 Reject muon candidates without a muon system extension – only effective if the candidate shall actually be extended.
Gaudi::Property< bool > m_waitForTrackLink {this, "WaitForTrackLink", true}
 Schedule the data dependency on the trackLink decoration.
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

Definition at line 21 of file MuonCombinedInDetCandidateAlg.h.

Member Typedef Documentation

◆ StoreGateSvc_t

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

Definition at line 388 of file AthCommonDataStore.h.

Constructor & Destructor Documentation

◆ ~MuonCombinedInDetCandidateAlg()

MuonCombinedInDetCandidateAlg::~MuonCombinedInDetCandidateAlg ( )
default

Member Function Documentation

◆ create()

StatusCode MuonCombinedInDetCandidateAlg::create ( const EventContext & ctx,
InDetCandidateCache & output_cache ) const
private

MuGirl only operates on ID tracks with pt at least this high

Definition at line 69 of file MuonCombinedInDetCandidateAlg.cxx.

69 {
70 ATH_MSG_DEBUG("Producing InDetCandidates for " << output_cache.inDetContainer->size());
71 for (const xAOD::TrackParticle* tp : *output_cache.inDetContainer) {
72 if (!isValidTrackParticle(output_cache.trackSelector, tp)) continue;
73
74 ElementLink<xAOD::TrackParticleContainer> link(*output_cache.inDetContainer, tp->index());
75 if (!link.isValid()) {
76 ATH_MSG_WARNING("Bad element link ");
77 continue;
78 } else if (*link != tp) {
79 ATH_MSG_WARNING("Dereferenced Link not equal to TrackParticle, skipping track ");
80 continue;
81 }
82 link.toPersistent();
83 printTrackParticleInfo(tp, "Creating");
84
85 if (msgLvl(MSG::VERBOSE)) {
87 if (truth_part) {
88 static const SG::ConstAccessor<int> truthTypeAcc("truthType");
89 static const SG::ConstAccessor<int> truthOriginAcc("truthOrigin");
90 ATH_MSG_VERBOSE(" Truth particle: pdgId " << truth_part->pdgId() << " type " << truthTypeAcc(*tp) << " origin "
91 << truthOriginAcc(*tp) << " pt " << truth_part->pt() << " eta "
92 << truth_part->eta() << " phi " << truth_part->phi());
93 }
94 }
95 Muon::IMuonSystemExtensionTool::SystemExtensionCache cache;
96 cache.extensionContainer = output_cache.extensionContainer;
97 cache.candidate = std::make_unique<InDetCandidate>(link);
98 cache.candidate->setSiliconAssociated(output_cache.flagAsSAF); // Si-associated candidates don't need these
99 cache.useHitSectors = false;
101 cache.createSystemExtension = (tp->pt() >= m_extThreshold) && ((m_extendSAF && cache.candidate->isSiliconAssociated()) ||
102 (m_extendBulk && !cache.candidate->isSiliconAssociated()));
103 cache.requireSystemExtension = m_requireExtension;
104 if (!m_muonSystemExtensionTool->muonSystemExtension(ctx, cache)) continue;
105 output_cache.outputContainer->push_back(std::move(cache.candidate));
106 }
107 ATH_MSG_DEBUG("InDetCandidates selected " << output_cache.outputContainer->size());
108 return StatusCode::SUCCESS;
109}
#define ATH_MSG_VERBOSE(x)
#define ATH_MSG_WARNING(x)
#define ATH_MSG_DEBUG(x)
bool msgLvl(const MSG::Level lvl) const
Gaudi::Property< bool > m_requireExtension
Reject muon candidates without a muon system extension – only effective if the candidate shall actual...
Gaudi::Property< float > m_extThreshold
Minimum pt threshold of the IdCandidate to be extrapolated through the spectrometer.
Gaudi::Property< bool > m_extendBulk
Shall ordinary ID tracks be equiped with a muon system extension used by MuGirl later.
Gaudi::Property< bool > m_extendSAF
Shall SAF tracks be equiped with a muon system extension used by MuGirl later.
ToolHandle< Muon::IMuonSystemExtensionTool > m_muonSystemExtensionTool
void printTrackParticleInfo(const xAOD::TrackParticle *const tp, const std::string &what) const
bool isValidTrackParticle(const Trk::ITrackSelectorTool *currentTrackSelector, const xAOD::TrackParticle *const tp) const
virtual double pt() const override final
The transverse momentum ( ) of the particle.
int pdgId() const
PDG ID code.
virtual double pt() const override final
The transverse momentum ( ) of the particle.
virtual double eta() const override final
The pseudorapidity ( ) of the particle.
virtual double phi() const override final
The azimuthal angle ( ) of the particle.
pointer & link(pointer p) const
Return a reference to the link for an element.
const IIntersectionCache * cache() const
Retrieve the associated cache block, if it exists.
const xAOD::TruthParticle * getTruthParticle(const xAOD::IParticle &p)
Return the truthParticle associated to the given IParticle (if any).
TrackParticle_v1 TrackParticle
Reference the current persistent version:
TruthParticle_v1 TruthParticle
Typedef to implementation.

◆ 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 MuonCombinedInDetCandidateAlg::execute ( const EventContext & ctx) const
finaloverridevirtual

Definition at line 41 of file MuonCombinedInDetCandidateAlg.cxx.

41 {
42 InDetCandidateCache output_cache{};
43 unsigned int counter{0};
44 for (const SG::ReadHandleKey<xAOD::TrackParticleContainer>& key : m_indetTrackParticleLocation) {
45 ATH_CHECK(SG::get(output_cache.inDetContainer, key, ctx));
46 output_cache.trackSelector = !m_trackSelector.empty() ? m_trackSelector.get() : nullptr;
47 if (counter < m_caloExtensionLocation.size()) {
48 ATH_CHECK(SG::get(output_cache.extensionContainer, m_caloExtensionLocation[counter], ctx));
49 } else {
50 output_cache.extensionContainer = nullptr;
51 }
52 ++counter;
53 ATH_CHECK(create(ctx, output_cache));
54 }
56 ATH_CHECK(SG::get(output_cache.inDetContainer, m_indetForwardTrackParticleLocation, ctx));
57 ATH_CHECK(SG::get(output_cache.extensionContainer, m_caloFwdExtensionLocation, ctx));
58 output_cache.trackSelector = !m_forwardTrackSelector.empty() ? m_forwardTrackSelector.get() : nullptr;
59 output_cache.flagAsSAF = true;
60 ATH_CHECK(create(ctx, output_cache));
61 }
62
63 SG::WriteHandle indetCandidateCollection(m_candidateCollectionName, ctx);
64 ATH_CHECK(indetCandidateCollection.record(std::move(output_cache.outputContainer)));
65
66 return StatusCode::SUCCESS;
67}
#define ATH_CHECK
Evaluate an expression and check for errors.
SG::ReadHandleKey< CaloExtensionCollection > m_caloFwdExtensionLocation
SG::ReadHandleKeyArray< xAOD::TrackParticleContainer > m_indetTrackParticleLocation
SG::WriteHandleKey< InDetCandidateCollection > m_candidateCollectionName
ToolHandle< Trk::ITrackSelectorTool > m_trackSelector
ToolHandle< Trk::ITrackSelectorTool > m_forwardTrackSelector
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_indetForwardTrackParticleLocation
StatusCode create(const EventContext &ctx, InDetCandidateCache &output_cache) const
SG::ReadHandleKeyArray< CaloExtensionCollection > m_caloExtensionLocation
const T * get(const ReadCondHandleKey< T > &key, const EventContext &ctx)
Convenience function to retrieve an object given a ReadCondHandleKey.

◆ 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:

◆ getCount()

int MuonCombinedInDetCandidateAlg::getCount ( const xAOD::TrackParticle & tp,
const xAOD::SummaryType type )
staticprivate

Definition at line 134 of file MuonCombinedInDetCandidateAlg.cxx.

134 {
135 uint8_t val{0};
136 if (!tp.summaryValue(val, type)) return 0;
137 return static_cast<int>(val);
138}
bool summaryValue(uint8_t &value, const SummaryType &information) const
Accessor for TrackSummary values.

◆ initialize()

StatusCode MuonCombinedInDetCandidateAlg::initialize ( )
finaloverridevirtual

Definition at line 17 of file MuonCombinedInDetCandidateAlg.cxx.

17 {
18 ATH_CHECK(m_trackSelector.retrieve(DisableTool{m_trackSelector.empty()}));
25 ATH_CHECK(m_forwardTrackSelector.retrieve(DisableTool{!m_doSiliconForwardMuons}));
26 for (const auto& key : m_indetTrackParticleLocation) {
27 m_trkLinkKey.emplace_back(key, "trackLink");
28 }
30 m_trkLinkKey.emplace_back(m_indetForwardTrackParticleLocation, "trackLink");
31 }
33 ATH_MSG_INFO("Successfully initialized using the following configuration -- SAF: "
34 << (m_doSiliconForwardMuons ? "si" : "no") << ", "
35 << "MS extension bulk: " << (m_extendBulk ? "si" : "no")
36 << ", MS extension SAF: " << (m_doSiliconForwardMuons && m_extendSAF ? "si" : "no")
37 << ", Require MS estension: " << (m_requireExtension ? "si" : "no") << " min pT for extension " << m_extThreshold);
38 return StatusCode::SUCCESS;
39}
#define ATH_MSG_INFO(x)
Gaudi::Property< bool > m_waitForTrackLink
Schedule the data dependency on the trackLink decoration.
SG::ReadDecorHandleKeyArray< xAOD::TrackParticleContainer > m_trkLinkKey

◆ 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 }

◆ isValidTrackParticle()

bool MuonCombinedInDetCandidateAlg::isValidTrackParticle ( const Trk::ITrackSelectorTool * currentTrackSelector,
const xAOD::TrackParticle *const tp ) const
private

Definition at line 111 of file MuonCombinedInDetCandidateAlg.cxx.

112 {
113 if (!tp->perigeeParameters().covariance()) {
114 ATH_MSG_WARNING("InDet TrackParticle without perigee! ");
115 return false;
116 }
117 if (!tp->track()) {
118 ATH_MSG_WARNING("The track particle has not an associated track");
119 return false;
120 }
121 if (currentTrackSelector && !currentTrackSelector->decision(*tp)) {
122 if (msgLvl(MSG::VERBOSE) && tp->pt() > 5000.) printTrackParticleInfo(tp, "Discarding");
123 return false;
124 }
125 return true;
126}
virtual bool decision(const Trk::Track &track, const Vertex *vertex=0) const =0
const Trk::Perigee & perigeeParameters() const
Returns the Trk::MeasuredPerigee track parameters.
const Trk::Track * track() const
Returns a pointer (which can be NULL) to the Trk::Track which was used to make this TrackParticle.

◆ 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.

◆ printTrackParticleInfo()

void MuonCombinedInDetCandidateAlg::printTrackParticleInfo ( const xAOD::TrackParticle *const tp,
const std::string & what ) const
private

Definition at line 128 of file MuonCombinedInDetCandidateAlg.cxx.

128 {
129 ATH_MSG_DEBUG(what << " InDet TrackParticle: pt " << tp->pt() << " eta " << tp->eta() << " phi " << tp->phi() << " Pixel "
131 << getCount(*tp, xAOD::numberOfSCTHits) << " TRT " << getCount(*tp, xAOD::numberOfTRTHits));
132}
static int getCount(const xAOD::TrackParticle &tp, const xAOD::SummaryType type)
virtual double phi() const override final
The azimuthal angle ( ) of the particle (has range to .).
virtual double eta() const override final
The pseudorapidity ( ) of the particle.
@ numberOfTRTHits
number of TRT hits [unit8_t].
@ numberOfSCTHits
number of hits in SCT [unit8_t].
@ numberOfInnermostPixelLayerHits
these are the hits in the 0th pixel barrel layer
@ numberOfPixelHits
these are the pixel hits, including the b-layer [unit8_t].

◆ 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_caloExtensionLocation

SG::ReadHandleKeyArray<CaloExtensionCollection> MuonCombinedInDetCandidateAlg::m_caloExtensionLocation {this, "CaloExtensionLocation", {} }
private

Definition at line 32 of file MuonCombinedInDetCandidateAlg.h.

32{this, "CaloExtensionLocation", {} };

◆ m_caloFwdExtensionLocation

SG::ReadHandleKey<CaloExtensionCollection> MuonCombinedInDetCandidateAlg::m_caloFwdExtensionLocation {this, "CaloFwdExtensionLocation", ""}
private

Definition at line 37 of file MuonCombinedInDetCandidateAlg.h.

37{this, "CaloFwdExtensionLocation", ""};

◆ m_candidateCollectionName

SG::WriteHandleKey<InDetCandidateCollection> MuonCombinedInDetCandidateAlg::m_candidateCollectionName {this, "InDetCandidateLocation", "InDetCandidates"}
private

Definition at line 39 of file MuonCombinedInDetCandidateAlg.h.

39{this, "InDetCandidateLocation", "InDetCandidates"};

◆ 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_doSiliconForwardMuons

Gaudi::Property<bool> MuonCombinedInDetCandidateAlg::m_doSiliconForwardMuons {this, "DoSiliconAssocForwardMuons", false}
private

Definition at line 68 of file MuonCombinedInDetCandidateAlg.h.

68{this, "DoSiliconAssocForwardMuons", false};

◆ 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_extendBulk

Gaudi::Property<bool> MuonCombinedInDetCandidateAlg::m_extendBulk {this, "ExtendBulk", true}
private

Shall ordinary ID tracks be equiped with a muon system extension used by MuGirl later.

Definition at line 74 of file MuonCombinedInDetCandidateAlg.h.

74{this, "ExtendBulk", true};

◆ 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_extendSAF

Gaudi::Property<bool> MuonCombinedInDetCandidateAlg::m_extendSAF {this, "ExtendSAF", false}
private

Shall SAF tracks be equiped with a muon system extension used by MuGirl later.

Definition at line 72 of file MuonCombinedInDetCandidateAlg.h.

72{this, "ExtendSAF", false};

◆ m_extThreshold

Gaudi::Property<float> MuonCombinedInDetCandidateAlg::m_extThreshold {this, "ExtensionPtThreshold", 2500}
private

Minimum pt threshold of the IdCandidate to be extrapolated through the spectrometer.

Definition at line 70 of file MuonCombinedInDetCandidateAlg.h.

70{this, "ExtensionPtThreshold", 2500};

◆ m_forwardTrackSelector

ToolHandle<Trk::ITrackSelectorTool> MuonCombinedInDetCandidateAlg::m_forwardTrackSelector
private
Initial value:
{
this, "InDetForwardTrackSelector", "InDet::InDetDetailedTrackSelectorTool/MuonCombinedInDetDetailedForwardTrackSelectorTool",
"Forward track selector tool"}

Definition at line 43 of file MuonCombinedInDetCandidateAlg.h.

43 {
44 this, "InDetForwardTrackSelector", "InDet::InDetDetailedTrackSelectorTool/MuonCombinedInDetDetailedForwardTrackSelectorTool",
45 "Forward track selector tool"};

◆ m_indetForwardTrackParticleLocation

SG::ReadHandleKey<xAOD::TrackParticleContainer> MuonCombinedInDetCandidateAlg::m_indetForwardTrackParticleLocation
private
Initial value:
{this, "ForwardParticleLocation",
"InDetForwardTrackParticles"}

Definition at line 33 of file MuonCombinedInDetCandidateAlg.h.

33 {this, "ForwardParticleLocation",
34 "InDetForwardTrackParticles"};

◆ m_indetTrackParticleLocation

SG::ReadHandleKeyArray<xAOD::TrackParticleContainer> MuonCombinedInDetCandidateAlg::m_indetTrackParticleLocation
private
Initial value:
{
this, "TrackParticleLocation", {"InDetTrackParticles"}}

Definition at line 30 of file MuonCombinedInDetCandidateAlg.h.

30 {
31 this, "TrackParticleLocation", {"InDetTrackParticles"}};

◆ m_muonSystemExtensionTool

ToolHandle<Muon::IMuonSystemExtensionTool> MuonCombinedInDetCandidateAlg::m_muonSystemExtensionTool {this, "MuonSystemExtensionTool", "", "Muon system extension tool"}
private

Definition at line 46 of file MuonCombinedInDetCandidateAlg.h.

46{this, "MuonSystemExtensionTool", "", "Muon system extension tool"};

◆ m_requireExtension

Gaudi::Property<bool> MuonCombinedInDetCandidateAlg::m_requireExtension {this, "RequireExtension", true}
private

Reject muon candidates without a muon system extension – only effective if the candidate shall actually be extended.

Definition at line 76 of file MuonCombinedInDetCandidateAlg.h.

76{this, "RequireExtension", true};

◆ m_trackSelector

ToolHandle<Trk::ITrackSelectorTool> MuonCombinedInDetCandidateAlg::m_trackSelector
private
Initial value:
{
this, "TrackSelector", "InDet::InDetDetailedTrackSelectorTool/MuonCombinedInDetDetailedTrackSelectorTool", "Track selector tool"}

Definition at line 41 of file MuonCombinedInDetCandidateAlg.h.

41 {
42 this, "TrackSelector", "InDet::InDetDetailedTrackSelectorTool/MuonCombinedInDetDetailedTrackSelectorTool", "Track selector tool"};

◆ m_trkLinkKey

SG::ReadDecorHandleKeyArray<xAOD::TrackParticleContainer> MuonCombinedInDetCandidateAlg::m_trkLinkKey {this, "TrackLinkKeys", {}}
private

Definition at line 36 of file MuonCombinedInDetCandidateAlg.h.

36{this, "TrackLinkKeys", {}};

◆ 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.

◆ m_waitForTrackLink

Gaudi::Property<bool> MuonCombinedInDetCandidateAlg::m_waitForTrackLink {this, "WaitForTrackLink", true}
private

Schedule the data dependency on the trackLink decoration.

Definition at line 78 of file MuonCombinedInDetCandidateAlg.h.

78{this, "WaitForTrackLink", true};

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