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

#include <MuonCombinedAlg.h>

Inheritance diagram for MuonCombinedAlg:
Collaboration diagram for MuonCombinedAlg:

Public Member Functions

 ~MuonCombinedAlg ()=default
StatusCode execute (const EventContext &ctx) const override
StatusCode initialize () override
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

bool pass_prematching (const MuonCombined::MuonCandidate &muonCandidate, const MuonCombined::InDetCandidate &idCandidate) const
 Checks whether the Id & the muon candidate are compatible to attempt a combination of the two as a single track.
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
 specialization for handling Gaudi::Property<SG::VarHandleKey>

Private Attributes

SG::ReadHandleKey< InDetCandidateCollectionm_indetCandidateCollectionName
SG::ReadHandleKey< MuonCandidateCollectionm_muonCandidateCollectionName
SG::WriteHandleKeyArray< MuonCombined::InDetCandidateToTagMapm_combTagMaps
SG::WriteHandleKey< TrackCollectionm_muidCombinedTracks
SG::WriteHandleKey< TrackCollectionm_muidMETracks {this, "MuidMETracksLocation", "MuidMETracks", "Muidco ME Tracks"}
PublicToolHandle< Muon::MuonEDMPrinterToolm_printer {this, "Printer", "Muon::MuonEDMPrinterTool/MuonEDMPrinterTool"}
ToolHandleArray< MuonCombined::IMuonCombinedTagToolm_muonCombinedTagTools {this, "MuonCombinedTagTools", {}}
PublicToolHandle< Muon::IMuonAlignmentUncertToolm_alignUncertTool {this, "AlignmentUncertTool", ""}
 Use this tool to retrieve the last and first measurments of the ID and MS, respectively.
Gaudi::Property< float > m_deltaEtaPreSelection {this, "DeltaEtaPreSelection", 0.5}
Gaudi::Property< float > m_deltaPhiPreSelection {this, "DeltaPhiPreSelection", 1}
Gaudi::Property< float > m_ptBalance {this, "PtBalancePreSelection", -1.}
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 23 of file MuonCombinedAlg.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

◆ ~MuonCombinedAlg()

MuonCombinedAlg::~MuonCombinedAlg ( )
default

Member Function Documentation

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

Definition at line 22 of file MuonCombinedAlg.cxx.

22 {
23 const InDetCandidateCollection* inDetCandidates{nullptr};
24 ATH_CHECK(SG::get(inDetCandidates, m_indetCandidateCollectionName, ctx));
25
26 const MuonCandidateCollection* muonCandidates{nullptr};
27 ATH_CHECK(SG::get(muonCandidates, m_muonCandidateCollectionName, ctx));
28
29 std::vector<SG::WriteHandle<MuonCombined::InDetCandidateToTagMap> > tagMaps = m_combTagMaps.makeHandles(ctx);
30 std::vector<MuonCombined::InDetCandidateToTagMap*> maps;
31 for (auto& h : tagMaps) {
32 ATH_CHECK(h.record(std::make_unique<MuonCombined::InDetCandidateToTagMap>()));
33 maps.push_back(h.ptr());
34 }
35
36 SG::WriteHandle muidCombTracks(m_muidCombinedTracks, ctx);
37 ATH_CHECK(muidCombTracks.record(std::make_unique<TrackCollection>()));
38
39 SG::WriteHandle muidMETracks(m_muidMETracks, ctx);
40 ATH_CHECK(muidMETracks.record(std::make_unique<TrackCollection>()));
41
42 if (inDetCandidates->empty() || muonCandidates->empty()) {
43 ATH_MSG_DEBUG(__func__<<"() "<<__LINE__<<" - InDetCandidates "<<inDetCandidates->size()
44 <<", MuonCandidates: "<<muonCandidates->size()<<"... One of them is empty");
45 return StatusCode::SUCCESS;
46 }
47
48 for (const MuonCandidate* muonCandidate : *muonCandidates) {
49 const Trk::Track& muonTrack = muonCandidate->extrapolatedTrack() ?
50 *muonCandidate->extrapolatedTrack() :
51 muonCandidate->muonSpectrometerTrack();
52 ATH_MSG_DEBUG("MuonCandidate " << m_printer->print(muonTrack) << std::endl << m_printer->printStations(muonTrack));
53 // preselect ID candidates close to the muon
54 std::vector<const InDetCandidate*> associatedIdCandidates{};
55 associatedIdCandidates.reserve(inDetCandidates->size());
56 std::copy_if(inDetCandidates->begin(),inDetCandidates->end(), std::back_inserter(associatedIdCandidates),
57 [&](const InDetCandidate* assocMe) {
58 return pass_prematching(*muonCandidate, *assocMe);
59 });
60
61
62 if (associatedIdCandidates.empty()) {
63 continue;
64 }
65 ATH_MSG_DEBUG("Associated ID candidates " << associatedIdCandidates.size());
66 // build combined muons
67 unsigned count{0u};
68 for (const auto& tool : m_muonCombinedTagTools) {
69 tool->combine(*muonCandidate, associatedIdCandidates, *tagMaps.at(count), muidCombTracks.ptr(), muidMETracks.ptr(), ctx);
70 ++count;
71 }
72 }
73 return StatusCode::SUCCESS;
74}
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_DEBUG(x)
DataVector< MuonCombined::InDetCandidate > InDetCandidateCollection
This typedef represents a collection of InDetCandidate objects.
DataVector< MuonCombined::MuonCandidate > MuonCandidateCollection
This typedef represents a collection of MuonCandidate objects.
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.
size_type size() const noexcept
Returns the number of elements in the collection.
bool empty() const noexcept
Returns true if the collection is empty.
PublicToolHandle< Muon::MuonEDMPrinterTool > m_printer
SG::ReadHandleKey< MuonCandidateCollection > m_muonCandidateCollectionName
SG::WriteHandleKey< TrackCollection > m_muidMETracks
SG::ReadHandleKey< InDetCandidateCollection > m_indetCandidateCollectionName
SG::WriteHandleKey< TrackCollection > m_muidCombinedTracks
SG::WriteHandleKeyArray< MuonCombined::InDetCandidateToTagMap > m_combTagMaps
ToolHandleArray< MuonCombined::IMuonCombinedTagTool > m_muonCombinedTagTools
int count(std::string s, const std::string &regx)
count how many occurances of a regx are in a string
Definition hcg.cxx:148
const T * get(const ReadCondHandleKey< T > &key, const EventContext &ctx)
Convenience function to retrieve an object given a ReadCondHandleKey.
@ u
Enums for curvilinear frames.
Definition ParamDefs.h:77

◆ 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 MuonCombinedAlg::initialize ( )
override

Definition at line 11 of file MuonCombinedAlg.cxx.

11 {
14 ATH_CHECK(m_combTagMaps.initialize());
15 ATH_CHECK(m_muidCombinedTracks.initialize());
16 ATH_CHECK(m_muidMETracks.initialize());
17 ATH_CHECK(m_printer.retrieve());
19 return StatusCode::SUCCESS;
20}

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

◆ pass_prematching()

bool MuonCombinedAlg::pass_prematching ( const MuonCombined::MuonCandidate & muonCandidate,
const MuonCombined::InDetCandidate & idCandidate ) const
private

Checks whether the Id & the muon candidate are compatible to attempt a combination of the two as a single track.

Use the alignment uncertainty tool to find the last ID measurement and the first MS measurement

One of the two is not found use the old approach as a fallback

The reason is that the IDTrackParticle does not have an associated Trk::Track. That should never happen during reconstruction

Retrieve the position of the ID exit and the MS entrance

Check that both tracklets are actually out of range. That helps us to recover tracks in the endcaps where the MSOE vertex constraint worsens the compability

Definition at line 76 of file MuonCombinedAlg.cxx.

76 {
77 const bool hasExtr = muonCandidate.extrapolatedTrack() != nullptr;
78 const Trk::Track* ms_trk = &muonCandidate.muonSpectrometerTrack();
79 const Trk::Track* msoe_trk = muonCandidate.extrapolatedTrack();
80 const Trk::Track* id_trk = idCandidate.indetTrackParticle().track();
81 if (!ms_trk && !msoe_trk) {
82 ATH_MSG_WARNING("Muon candidate without any Trk::Track");
83 return false;
84 }
85
86 const Trk::TrackParameters* muonPars = (msoe_trk ? msoe_trk : ms_trk)->perigeeParameters();
87 if (!muonPars) {
88 ATH_MSG_WARNING("MuonCandidate without Perigee, skipping");
89 return false;
90 }
91
92 const Trk::TrackStateOnSurface *id_exit{nullptr}, *dummy{nullptr}, *ms_entrance{nullptr}, *msoe_entrance{nullptr};
94 const Trk::CaloExtension* calo_extension = idCandidate.getCaloExtension();
95 const Trk::TrackParameters* id_extension = calo_extension ? calo_extension->muonEntryLayerIntersection() : nullptr;
98 if (!m_alignUncertTool.empty()) {
99 if (id_trk && !id_extension) m_alignUncertTool->get_track_state_measures(id_trk, id_exit, dummy, dummy, dummy);
100 if (ms_trk) m_alignUncertTool->get_track_state_measures(ms_trk, dummy, dummy, dummy, ms_entrance);
101 if (msoe_trk) m_alignUncertTool->get_track_state_measures(msoe_trk, dummy, dummy, dummy, msoe_entrance);
102
103 if (!msoe_entrance) msoe_entrance = ms_entrance;
104 if (!ms_entrance) ms_entrance = msoe_entrance;
105 }
106
108 if ((!id_exit && !id_extension) || !ms_entrance) {
111 if (!id_trk) ATH_MSG_WARNING("Trk::Track not found for InDetTrack candidate!");
112 const Amg::Vector3D muon_p3 = hasExtr ? muonPars->momentum() : muonPars->position();
113 const Amg::Vector3D idtr_p3 = idCandidate.indetTrackParticle().perigeeParameters().momentum();
114
115 const double deltaPhi = std::abs(xAOD::P4Helpers::deltaPhi(muon_p3.phi(), idtr_p3.phi()));
116 if (deltaPhi > m_deltaPhiPreSelection) return false;
117
118 const double deltaEta = std::abs(muon_p3.eta() - idtr_p3.eta());
119 if (deltaEta > m_deltaEtaPreSelection) return false;
120
121 const double muonPt = muon_p3.perp();
122 const double indetPt = idtr_p3.perp();
123 const double ptBal = muonPt > 0. ? std::abs(muonPt - indetPt) / muonPt : 1.;
124 if (m_ptBalance > 0. && ptBal > m_ptBalance) return false;
125 } else {
127 const Amg::Vector3D id_ex_pos = (id_extension ? id_extension : id_exit->trackParameters())->position();
128 const Amg::Vector3D ms_en_pos = ms_entrance->trackParameters()->position();
129 const Amg::Vector3D msoe_en_pos = msoe_entrance->trackParameters()->position();
130
131 const double deltaPhi = std::abs(xAOD::P4Helpers::deltaPhi(id_ex_pos.phi(), ms_en_pos.phi()));
132 const double deltaEta = std::abs(id_ex_pos.eta() - ms_en_pos.eta());
133
134 const double deltaPhiMSOE = std::abs(xAOD::P4Helpers::deltaPhi(id_ex_pos.phi(), msoe_en_pos.phi()));
135 const double deltaEtaMSOE = std::abs(id_ex_pos.eta() - msoe_en_pos.eta());
136
141 (deltaPhiMSOE > m_deltaPhiPreSelection || deltaEtaMSOE > m_deltaEtaPreSelection)
142
143 )
144 return false;
145
146 const double muonPt = muonPars->momentum().perp();
147 const double indetPt = idCandidate.indetTrackParticle().pt();
148 const double ptBal = muonPt > 0. ? std::abs(muonPt - indetPt) / muonPt : 1.;
149 if (m_ptBalance > 0. && ptBal > m_ptBalance) return false;
150 }
151
152 return true;
153}
Scalar deltaPhi(const MatrixBase< Derived > &vec) const
#define ATH_MSG_WARNING(x)
PublicToolHandle< Muon::IMuonAlignmentUncertTool > m_alignUncertTool
Use this tool to retrieve the last and first measurments of the ID and MS, respectively.
Gaudi::Property< float > m_deltaPhiPreSelection
Gaudi::Property< float > m_ptBalance
Gaudi::Property< float > m_deltaEtaPreSelection
const Trk::CaloExtension * getCaloExtension() const
const xAOD::TrackParticle & indetTrackParticle() const
access TrackParticle
const Trk::Track & muonSpectrometerTrack() const
access spectrometer track, always there
const Trk::Track * extrapolatedTrack() const
access extrapolated track, can be zero if back extrapolation failed
const TrackParameters * muonEntryLayerIntersection() const
access to intersection with the muon entry layer return nullptr if the intersection failed
const Amg::Vector3D & momentum() const
Access method for the momentum.
const Amg::Vector3D & position() const
Access method for the position.
const TrackParameters * trackParameters() const
return ptr to trackparameters const overload
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.
virtual double pt() const override final
The transverse momentum ( ) of the particle.
Eigen::Matrix< double, 3, 1 > Vector3D
double deltaEta(const I4Momentum &p1, const I4Momentum &p2)
Computes efficiently .
Definition P4Helpers.h:66
@ perigeeParameters
ParametersBase< TrackParametersDim, Charged > TrackParameters
double deltaPhi(double phiA, double phiB)
delta Phi in range [-pi,pi[

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

PublicToolHandle<Muon::IMuonAlignmentUncertTool> MuonCombinedAlg::m_alignUncertTool {this, "AlignmentUncertTool", ""}
private

Use this tool to retrieve the last and first measurments of the ID and MS, respectively.

Definition at line 53 of file MuonCombinedAlg.h.

53{this, "AlignmentUncertTool", ""};

◆ m_combTagMaps

SG::WriteHandleKeyArray<MuonCombined::InDetCandidateToTagMap> MuonCombinedAlg::m_combTagMaps
private
Initial value:
{
this, "CombinedTagMaps", {"muidcoTagMap", "stacoTagMap"}, "combined muon tag maps"}

Definition at line 42 of file MuonCombinedAlg.h.

42 {
43 this, "CombinedTagMaps", {"muidcoTagMap", "stacoTagMap"}, "combined muon tag maps"};

◆ m_deltaEtaPreSelection

Gaudi::Property<float> MuonCombinedAlg::m_deltaEtaPreSelection {this, "DeltaEtaPreSelection", 0.5}
private

Definition at line 55 of file MuonCombinedAlg.h.

55{this, "DeltaEtaPreSelection", 0.5};

◆ m_deltaPhiPreSelection

Gaudi::Property<float> MuonCombinedAlg::m_deltaPhiPreSelection {this, "DeltaPhiPreSelection", 1}
private

Definition at line 56 of file MuonCombinedAlg.h.

56{this, "DeltaPhiPreSelection", 1};

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

SG::ReadHandleKey<InDetCandidateCollection> MuonCombinedAlg::m_indetCandidateCollectionName
private
Initial value:
{this, "InDetCandidateLocation", "InDetCandidates",
"name of ID candidate collection"}

Definition at line 38 of file MuonCombinedAlg.h.

38 {this, "InDetCandidateLocation", "InDetCandidates",
39 "name of ID candidate collection"};

◆ m_muidCombinedTracks

SG::WriteHandleKey<TrackCollection> MuonCombinedAlg::m_muidCombinedTracks
private
Initial value:
{this, "MuidCombinedTracksLocation", "MuidCombinedTracks",
"Muidco combined Tracks"}

Definition at line 44 of file MuonCombinedAlg.h.

44 {this, "MuidCombinedTracksLocation", "MuidCombinedTracks",
45 "Muidco combined Tracks"};

◆ m_muidMETracks

SG::WriteHandleKey<TrackCollection> MuonCombinedAlg::m_muidMETracks {this, "MuidMETracksLocation", "MuidMETracks", "Muidco ME Tracks"}
private

Definition at line 46 of file MuonCombinedAlg.h.

46{this, "MuidMETracksLocation", "MuidMETracks", "Muidco ME Tracks"};

◆ m_muonCandidateCollectionName

SG::ReadHandleKey<MuonCandidateCollection> MuonCombinedAlg::m_muonCandidateCollectionName
private
Initial value:
{this, "MuonCandidateLocation", "MuonCandidates",
"name of muon candidate collection"}

Definition at line 40 of file MuonCombinedAlg.h.

40 {this, "MuonCandidateLocation", "MuonCandidates",
41 "name of muon candidate collection"};

◆ m_muonCombinedTagTools

ToolHandleArray<MuonCombined::IMuonCombinedTagTool> MuonCombinedAlg::m_muonCombinedTagTools {this, "MuonCombinedTagTools", {}}
private

Definition at line 50 of file MuonCombinedAlg.h.

50{this, "MuonCombinedTagTools", {}};

◆ m_printer

PublicToolHandle<Muon::MuonEDMPrinterTool> MuonCombinedAlg::m_printer {this, "Printer", "Muon::MuonEDMPrinterTool/MuonEDMPrinterTool"}
private

Definition at line 49 of file MuonCombinedAlg.h.

49{this, "Printer", "Muon::MuonEDMPrinterTool/MuonEDMPrinterTool"};

◆ m_ptBalance

Gaudi::Property<float> MuonCombinedAlg::m_ptBalance {this, "PtBalancePreSelection", -1.}
private

Definition at line 57 of file MuonCombinedAlg.h.

57{this, "PtBalancePreSelection", -1.};

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