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 (const std::string &name, ISvcLocator *pSvcLocator)
 ~MuonCombinedInDetCandidateAlg ()=default
StatusCode initialize () override
StatusCode execute (const EventContext &ctx) const override
virtual StatusCode sysInitialize () override
 Override sysInitialize.
virtual bool isClonable () const override
 Specify if the algorithm is clonable.
virtual unsigned int cardinality () const override
 Cardinality (Maximum number of clones that can exist) special value 0 means that algorithm is reentrant.
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
virtual void setFilterPassed (bool state, const EventContext &ctx) const
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
int getCount (const xAOD::TrackParticle &tp, xAOD::SummaryType type) const
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
 specialization for handling Gaudi::Property<SG::VarHandleKey>

Private Attributes

SG::ReadHandleKeyArray< xAOD::TrackParticleContainerm_indetTrackParticleLocation
SG::ReadHandleKeyArray< CaloExtensionCollectionm_caloExtensionLocation
SG::ReadHandleKey< xAOD::TrackParticleContainerm_indetForwardTrackParticleLocation
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.
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 ( const std::string & name,
ISvcLocator * pSvcLocator )

Definition at line 14 of file MuonCombinedInDetCandidateAlg.cxx.

14 :
15 AthReentrantAlgorithm(name, pSvcLocator) {}

◆ ~MuonCombinedInDetCandidateAlg()

MuonCombinedInDetCandidateAlg::~MuonCombinedInDetCandidateAlg ( )
default

Member Function Documentation

◆ cardinality()

unsigned int AthCommonReentrantAlgorithm< Gaudi::Algorithm >::cardinality ( ) const
overridevirtualinherited

Cardinality (Maximum number of clones that can exist) special value 0 means that algorithm is reentrant.

Override this to return 0 for reentrant algorithms.

Definition at line 75 of file AthCommonReentrantAlgorithm.cxx.

64{
65 return 0;
66}

◆ 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 84 of file MuonCombinedInDetCandidateAlg.cxx.

84 {
85 ATH_MSG_DEBUG("Producing InDetCandidates for " << output_cache.inDetContainer->size());
86 for (const xAOD::TrackParticle* tp : *output_cache.inDetContainer) {
87 if (!isValidTrackParticle(output_cache.trackSelector, tp)) continue;
88
89 ElementLink<xAOD::TrackParticleContainer> link(*output_cache.inDetContainer, tp->index());
90 if (!link.isValid()) {
91 ATH_MSG_WARNING("Bad element link ");
92 continue;
93 } else if (*link != tp) {
94 ATH_MSG_WARNING("Dereferenced Link not equal to TrackParticle, skipping track ");
95 continue;
96 }
97 link.toPersistent();
98 printTrackParticleInfo(tp, "Creating");
99
100 if (msgLvl(MSG::VERBOSE)) {
102 if (truth_part) {
103 static const SG::ConstAccessor<int> truthTypeAcc("truthType");
104 static const SG::ConstAccessor<int> truthOriginAcc("truthOrigin");
105 ATH_MSG_VERBOSE(" Truth particle: pdgId " << truth_part->pdgId() << " type " << truthTypeAcc(*tp) << " origin "
106 << truthOriginAcc(*tp) << " pt " << truth_part->pt() << " eta "
107 << truth_part->eta() << " phi " << truth_part->phi());
108 }
109 }
110 Muon::IMuonSystemExtensionTool::SystemExtensionCache cache;
111 cache.extensionContainer = output_cache.extensionContainer;
112 cache.candidate = std::make_unique<InDetCandidate>(link);
113 cache.candidate->setSiliconAssociated(output_cache.flagAsSAF); // Si-associated candidates don't need these
114 cache.useHitSectors = false;
119 if (!m_muonSystemExtensionTool->muonSystemExtension(ctx, cache)) continue;
120 output_cache.outputContainer->push_back(std::move(cache.candidate));
121 }
122 ATH_MSG_DEBUG("InDetCandidates selected " << output_cache.outputContainer->size());
123 return StatusCode::SUCCESS;
124}
#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
bool isSiliconAssociated() const
Returns true if this candidate was formed from a special far forward InDet track.
void setSiliconAssociated(bool)
Pass true if this candiate was created from a special far forward InDet track.
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.
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.
bool requireSystemExtension
Require that the muon system extension was successful.
bool createSystemExtension
Try to create the muon system extension.
bool useHitSectors
Switch to restrict the intersection search only to the sectors with hits.
const CaloExtensionCollection * extensionContainer
Cache of the CaloExtensions.
std::unique_ptr< MuonCombined::InDetCandidate > candidate
Inner detector candidate.

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

Definition at line 34 of file MuonCombinedInDetCandidateAlg.cxx.

34 {
35 InDetCandidateCache output_cache{};
36 unsigned int counter{0};
37 for (SG::ReadHandle<xAOD::TrackParticleContainer>& readHandle : m_indetTrackParticleLocation.makeHandles(ctx)) {
38 if (!readHandle.isValid()) {
39 ATH_MSG_FATAL("Failed to retrieve " << readHandle.key());
40 return StatusCode::FAILURE;
41 }
42 output_cache.inDetContainer = readHandle.cptr();
43 output_cache.trackSelector = !m_trackSelector.empty() ? m_trackSelector.get() : nullptr;
44 if (counter < m_caloExtensionLocation.size()) {
45 SG::ReadHandle<CaloExtensionCollection> caloExtension{m_caloExtensionLocation[counter], ctx};
46 if (!caloExtension.isValid()) {
47 ATH_MSG_FATAL("Failed to retrieve " << m_caloExtensionLocation[counter].fullKey());
48 return StatusCode::FAILURE;
49 }
50 output_cache.extensionContainer = caloExtension.cptr();
51 } else
52 output_cache.extensionContainer = nullptr;
53 ++counter;
54 ATH_CHECK(create(ctx, output_cache));
55 }
57 SG::ReadHandle<xAOD::TrackParticleContainer> readHandle{m_indetForwardTrackParticleLocation, ctx};
58 if (!readHandle.isValid()) {
59 ATH_MSG_FATAL("Failed to retrieve " << readHandle.key());
60 return StatusCode::FAILURE;
61 }
62 if (!m_caloFwdExtensionLocation.empty()) {
63 SG::ReadHandle<CaloExtensionCollection> caloExtension{m_caloFwdExtensionLocation, ctx};
64 if (!caloExtension.isValid()) {
65 ATH_MSG_FATAL("Failed to retrieve " << m_caloFwdExtensionLocation.fullKey());
66 return StatusCode::FAILURE;
67 }
68 output_cache.extensionContainer = caloExtension.cptr();
69 } else
70 output_cache.extensionContainer = nullptr;
71
72 output_cache.inDetContainer = readHandle.cptr();
73 output_cache.trackSelector = !m_forwardTrackSelector.empty() ? m_forwardTrackSelector.get() : nullptr;
74 output_cache.flagAsSAF = true;
75 ATH_CHECK(create(ctx, output_cache));
76 }
77
78 SG::WriteHandle<InDetCandidateCollection> indetCandidateCollection(m_candidateCollectionName, ctx);
79 ATH_CHECK(indetCandidateCollection.record(std::move(output_cache.outputContainer)));
80
81 return StatusCode::SUCCESS;
82}
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_FATAL(x)
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
virtual bool isValid() override final
Can the handle be successfully dereferenced?
const_pointer_type cptr()
Dereference the pointer.
virtual const std::string & key() const override final
Return the StoreGate ID for the referenced object.

◆ 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 & AthCommonReentrantAlgorithm< 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 94 of file AthCommonReentrantAlgorithm.cxx.

90{
91 // If we didn't find any symlinks to add, just return the collection
92 // from the base class. Otherwise, return the extended collection.
93 if (!m_extendedExtraObjects.empty()) {
95 }
97}
An algorithm that can be simultaneously executed in multiple threads.

◆ filterPassed()

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

Definition at line 96 of file AthCommonReentrantAlgorithm.h.

96 {
97 return execState( ctx ).filterPassed();
98 }
virtual bool filterPassed(const EventContext &ctx) const

◆ getCount()

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

Definition at line 149 of file MuonCombinedInDetCandidateAlg.cxx.

149 {
150 uint8_t val{0};
151 if (!tp.summaryValue(val, type)) return 0;
152 return static_cast<int>(val);
153}

◆ initialize()

StatusCode MuonCombinedInDetCandidateAlg::initialize ( )
override

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 ATH_MSG_INFO("Successfully initialized using the following configuration -- SAF: "
27 << (m_doSiliconForwardMuons ? "si" : "no") << ", "
28 << "MS extension bulk: " << (m_extendBulk ? "si" : "no")
29 << ", MS extension SAF: " << (m_doSiliconForwardMuons && m_extendSAF ? "si" : "no")
30 << ", Require MS estension: " << (m_requireExtension ? "si" : "no") << " min pT for extension " << m_extThreshold);
31 return StatusCode::SUCCESS;
32}
#define ATH_MSG_INFO(x)

◆ 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()

◆ isValidTrackParticle()

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

Definition at line 126 of file MuonCombinedInDetCandidateAlg.cxx.

127 {
128 if (!tp->perigeeParameters().covariance()) {
129 ATH_MSG_WARNING("InDet TrackParticle without perigee! ");
130 return false;
131 }
132 if (!tp->track()) {
133 ATH_MSG_WARNING("The track particle has not an associated track");
134 return false;
135 }
136 if (currentTrackSelector && !currentTrackSelector->decision(*tp)) {
137 if (msgLvl(MSG::VERBOSE) && tp->pt() > 5000.) printTrackParticleInfo(tp, "Discarding");
138 return false;
139 }
140 return true;
141}
virtual bool decision(const Trk::Track &track, const Vertex *vertex=0) const =0

◆ 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 143 of file MuonCombinedInDetCandidateAlg.cxx.

143 {
144 ATH_MSG_DEBUG(what << " InDet TrackParticle: pt " << tp->pt() << " eta " << tp->eta() << " phi " << tp->phi() << " Pixel "
146 << getCount(*tp, xAOD::numberOfSCTHits) << " TRT " << getCount(*tp, xAOD::numberOfTRTHits));
147}
int getCount(const xAOD::TrackParticle &tp, xAOD::SummaryType type) const
@ 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 AthCommonReentrantAlgorithm< Gaudi::Algorithm >::setFilterPassed ( bool state,
const EventContext & ctx ) const
inlinevirtualinherited

Definition at line 100 of file AthCommonReentrantAlgorithm.h.

100 {
102 }
virtual void setFilterPassed(bool state, const EventContext &ctx) const

◆ sysExecute()

StatusCode AthCommonReentrantAlgorithm< 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.

Definition at line 85 of file AthCommonReentrantAlgorithm.cxx.

77{
78 return BaseAlg::sysExecute (ctx);
79}

◆ sysInitialize()

StatusCode AthCommonReentrantAlgorithm< 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 HypoBase, and InputMakerBase.

Definition at line 61 of file AthCommonReentrantAlgorithm.cxx.

107 {
109
110 if (sc.isFailure()) {
111 return sc;
112 }
113
114 ServiceHandle<ICondSvc> cs("CondSvc",name());
115 for (auto h : outputHandles()) {
116 if (h->isCondition() && h->mode() == Gaudi::DataHandle::Writer) {
117 // do this inside the loop so we don't create the CondSvc until needed
118 if ( cs.retrieve().isFailure() ) {
119 ATH_MSG_WARNING("no CondSvc found: won't autoreg WriteCondHandles");
120 return StatusCode::SUCCESS;
121 }
122 if (cs->regHandle(this,*h).isFailure()) {
124 ATH_MSG_ERROR("unable to register WriteCondHandle " << h->fullKey()
125 << " with CondSvc");
126 }
127 }
128 }
129 return sc;
130}
#define ATH_MSG_ERROR(x)
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
private
Initial value:
{
this,
"CaloExtensionLocation",
{},
}

Definition at line 32 of file MuonCombinedInDetCandidateAlg.h.

32 {
33 this,
34 "CaloExtensionLocation",
35 {},
36 };

◆ m_caloFwdExtensionLocation

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

Definition at line 40 of file MuonCombinedInDetCandidateAlg.h.

40{this, "CaloFwdExtensionLocation", ""};

◆ m_candidateCollectionName

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

Definition at line 42 of file MuonCombinedInDetCandidateAlg.h.

42{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 71 of file MuonCombinedInDetCandidateAlg.h.

71{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 77 of file MuonCombinedInDetCandidateAlg.h.

77{this, "ExtendBulk", true};

◆ m_extendedExtraObjects

DataObjIDColl AthCommonReentrantAlgorithm< Gaudi::Algorithm >::m_extendedExtraObjects
privateinherited

Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.

Empty if no symlinks were found.

Definition at line 114 of file AthCommonReentrantAlgorithm.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 75 of file MuonCombinedInDetCandidateAlg.h.

75{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 73 of file MuonCombinedInDetCandidateAlg.h.

73{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 46 of file MuonCombinedInDetCandidateAlg.h.

46 {
47 this, "InDetForwardTrackSelector", "InDet::InDetDetailedTrackSelectorTool/MuonCombinedInDetDetailedForwardTrackSelectorTool",
48 "Forward track selector tool"};

◆ m_indetForwardTrackParticleLocation

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

Definition at line 37 of file MuonCombinedInDetCandidateAlg.h.

37 {this, "ForwardParticleLocation",
38 "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 49 of file MuonCombinedInDetCandidateAlg.h.

49{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 79 of file MuonCombinedInDetCandidateAlg.h.

79{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 44 of file MuonCombinedInDetCandidateAlg.h.

44 {
45 this, "TrackSelector", "InDet::InDetDetailedTrackSelectorTool/MuonCombinedInDetDetailedTrackSelectorTool", "Track selector tool"};

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