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

#include <PhysValExampleGM.h>

Inheritance diagram for PhysValExampleGM:

Public Member Functions

virtual StatusCode initialize () override
virtual 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 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< StoreGateSvc > StoreGateSvc_t

Private Member Functions

void fill (const xAOD::EventInfo &evt) const
void fill (const xAOD::IParticleContainer &particles, const std::string &type, const xAOD::EventInfo &evt) const
void fill (const xAOD::TrackParticleContainer &tracks, const xAOD::VertexContainer &vertices, const xAOD::EventInfo &evt) const
void fill (const xAOD::MissingET &met, const xAOD::EventInfo &evt) const
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
 specialization for handling Gaudi::Property<SG::VarHandleKey>

Private Attributes

ToolHandle< GenericMonitoringTool > m_evtMonTool {this, "EventInfoMonTool", ""}
ToolHandle< GenericMonitoringTool > m_jetMonTool {this, "JetMonTool", ""}
ToolHandle< GenericMonitoringTool > m_eleMonTool {this, "EleMonTool", ""}
ToolHandle< GenericMonitoringTool > m_photonMonTool {this, "PhotonMonTool", ""}
ToolHandle< GenericMonitoringTool > m_muonMonTool {this, "MuonMonTool", ""}
ToolHandle< GenericMonitoringTool > m_tauMonTool {this, "TauMonTool", ""}
ToolHandle< GenericMonitoringTool > m_trkVtxMonTool {this, "TrkVtxMonTool", ""}
ToolHandle< GenericMonitoringTool > m_metMonTool {this, "METMonTool", ""}
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfoKey {this, "EventInfo", "EventInfo"}
SG::ReadHandleKey< xAOD::JetContainer > m_jetKey {this, "JetContainerName", "AntiKt4EMTopoJets"}
SG::ReadHandleKey< xAOD::ElectronContainer > m_eleKey {this, "ElectronContainerName", "Electrons"}
SG::ReadHandleKey< xAOD::PhotonContainer > m_photonKey {this, "PhotonContainerName", "Photons"}
SG::ReadHandleKey< xAOD::MuonContainer > m_muonKey {this, "MuonContainerName", "Muons"}
SG::ReadHandleKey< xAOD::TauJetContainer > m_tauKey {this, "TauContainerName", "TauJets"}
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_trkKey {this, "TrackContainerName", "InDetTrackParticles"}
SG::ReadHandleKey< xAOD::VertexContainer > m_vtxKey {this, "VertexContainerName", "PrimaryVertices"}
SG::ReadHandleKey< xAOD::MissingETContainer > m_metKey {this, "METContainerName", "MET_RefFinal"}
Gaudi::Property< bool > m_doExJet {this, "DoExJet", true}
Gaudi::Property< bool > m_doExMET {this, "DoExMET", true}
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 28 of file PhysValExampleGM.h.

Member Typedef Documentation

◆ StoreGateSvc_t

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

Definition at line 376 of file AthCommonDataStore.h.

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 PhysValExampleGM::execute ( const EventContext & ctx) const
overridevirtual

Definition at line 38 of file PhysValExampleGM.cxx.

38 {
39 SG::ReadHandle<xAOD::EventInfo> eventInfo(m_eventInfoKey, ctx);
40 fill(*eventInfo);
41
42 SG::ReadHandle<xAOD::ElectronContainer> electrons(m_eleKey, ctx);
43 fill(*electrons, "Electron", *eventInfo);
44
45 SG::ReadHandle<xAOD::PhotonContainer> photons(m_photonKey, ctx);
46 fill(*photons, "Photon", *eventInfo);
47
48 SG::ReadHandle<xAOD::MuonContainer> muons(m_muonKey, ctx);
49 fill(*muons, "Muon", *eventInfo);
50
51 SG::ReadHandle<xAOD::TauJetContainer> taus(m_tauKey, ctx);
52 fill(*taus, "Tau", *eventInfo);
53
54 SG::ReadHandle<xAOD::TrackParticleContainer> tracks(m_trkKey, ctx);
55 SG::ReadHandle<xAOD::VertexContainer> vertices(m_vtxKey, ctx);
56 fill(*tracks, *vertices, *eventInfo);
57
58 if(m_doExJet) {
59 SG::ReadHandle<xAOD::JetContainer> jets(m_jetKey, ctx);
60 fill(*jets, "Jet", *eventInfo);
61 }
62
63 if(m_doExMET) {
64 SG::ReadHandle<xAOD::MissingETContainer> met_container(m_metKey, ctx);
65 const xAOD::MissingET* met = (*met_container)["FinalClus"];
66 fill(*met, *eventInfo);
67 }
68
69 return StatusCode::SUCCESS;
70}
static Double_t taus
SG::ReadHandleKey< xAOD::TauJetContainer > m_tauKey
void fill(const xAOD::EventInfo &evt) const
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_trkKey
Gaudi::Property< bool > m_doExJet
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfoKey
Gaudi::Property< bool > m_doExMET
SG::ReadHandleKey< xAOD::PhotonContainer > m_photonKey
SG::ReadHandleKey< xAOD::MuonContainer > m_muonKey
SG::ReadHandleKey< xAOD::VertexContainer > m_vtxKey
SG::ReadHandleKey< xAOD::ElectronContainer > m_eleKey
SG::ReadHandleKey< xAOD::MissingETContainer > m_metKey
SG::ReadHandleKey< xAOD::JetContainer > m_jetKey
MissingET_v1 MissingET
Version control by type defintion.
Definition MissingET.h:15

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

◆ fill() [1/4]

void PhysValExampleGM::fill ( const xAOD::EventInfo & evt) const
private

Definition at line 73 of file PhysValExampleGM.cxx.

73 {
74 const auto weight = evt.beamSpotWeight();
75
76 auto beamSpotWeight = Monitored::Scalar<float>
77 ("EventInfo_beamSpotWeight", weight);
78
79 auto avgIntPerX = Monitored::Scalar<float>
80 ("EventInfo_averageInteractionsPerCrossing", evt.averageInteractionsPerCrossing());
81 auto actualIntPerX = Monitored::Scalar<float>
82 ("EventInfo_actualInteractionsPerCrossing", evt.actualInteractionsPerCrossing());
83 auto beamPosSigmaX = Monitored::Scalar<float>
84 ("EventInfo_beamPosSigmaX", evt.beamPosSigmaX());
85 auto beamPosSigmaY = Monitored::Scalar<float>
86 ("EventInfo_beamPosSigmaY", evt.beamPosSigmaY());
87 auto beamPosSigmaXY = Monitored::Scalar<float>
88 ("EventInfo_beamPosSigmaXY", evt.beamPosSigmaXY());
89 auto beamPosSigmaZ = Monitored::Scalar<float>
90 ("EventInfo_beamPosSigmaZ", evt.beamPosSigmaZ());
91
92 auto mon = Monitored::Group(m_evtMonTool, beamSpotWeight, avgIntPerX, actualIntPerX,
93 beamPosSigmaX, beamPosSigmaY, beamPosSigmaXY, beamPosSigmaZ);
94}
ToolHandle< GenericMonitoringTool > m_evtMonTool

◆ fill() [2/4]

void PhysValExampleGM::fill ( const xAOD::IParticleContainer & particles,
const std::string & type,
const xAOD::EventInfo & evt ) const
private

Definition at line 96 of file PhysValExampleGM.cxx.

98 {
99
100 ToolHandle<GenericMonitoringTool> tool;
101 if(type=="Jet") tool = m_jetMonTool;
102 else if(type=="Electron") tool = m_eleMonTool;
103 else if(type=="Photon") tool = m_photonMonTool;
104 else if(type=="Muon") tool = m_muonMonTool;
105 else if(type=="Tau") tool = m_tauMonTool;
106
107 float weight = evt.beamSpotWeight();
108 auto beamSpotWeight = Monitored::Scalar<float>("beamSpotWeight", weight);
109 // Need a vector for vector plots
110 std::vector<float> weights(particles.size(), weight);
111 auto beamSpotWeights = Monitored::Collection("beamSpotWeights", weights);
112
113 auto n = Monitored::Scalar<int> ( "Summary_"+type+"_n", particles.size() );
114
116 ( "Summary_"+type+"_et", particles,
117 []( const xAOD::IParticle* p ) { return p->pt()/GeV; } );
119 ( "Summary_"+type+"_eta", particles,
120 []( const xAOD::IParticle* p ) { return p->eta(); });
122 ( "Summary_"+type+"_phi", particles,
123 []( const xAOD::IParticle* p ) { return p->phi(); } );
124
125 const xAOD::IParticle* lead = nullptr;
126 for(const auto& part : particles) {
127 if(!lead || part->pt()>lead->pt()) lead = part;
128 }
129
130 if(lead) {
131 auto lead_et = Monitored::Scalar<float>
132 ( "Summary_"+type+"_lead_et", lead->pt()/GeV );
133 auto lead_eta = Monitored::Scalar<float>
134 ( "Summary_"+type+"_lead_eta", lead->eta() );
135 auto lead_phi = Monitored::Scalar<float>
136 ( "Summary_"+type+"_lead_phi", lead->phi() );
137
138 auto mon = Monitored::Group(tool, beamSpotWeight, beamSpotWeights,
139 n, et, eta, phi,
140 lead_et, lead_eta, lead_phi);
141 } else {
142 auto mon = Monitored::Group(tool, beamSpotWeight, beamSpotWeights,
143 n, et, eta, phi);
144 }
145}
Scalar eta() const
pseudorapidity method
Scalar phi() const
phi method
float et(const xAOD::jFexSRJetRoI *j)
ToolHandle< GenericMonitoringTool > m_jetMonTool
ToolHandle< GenericMonitoringTool > m_muonMonTool
ToolHandle< GenericMonitoringTool > m_tauMonTool
ToolHandle< GenericMonitoringTool > m_photonMonTool
ToolHandle< GenericMonitoringTool > m_eleMonTool
ValuesCollection< T > Collection(std::string name, const T &collection)
Declare a monitored (double-convertible) collection.

◆ fill() [3/4]

void PhysValExampleGM::fill ( const xAOD::MissingET & met,
const xAOD::EventInfo & evt ) const
private

Definition at line 175 of file PhysValExampleGM.cxx.

176 {
177
178 float weight = evt.beamSpotWeight();
179 auto beamSpotWeight = Monitored::Scalar<float>("beamSpotWeight", weight);
180
181 auto Ex = Monitored::Scalar<float> ( "Summary_MET_Ex", met.mpx()/GeV );
182 auto Ey = Monitored::Scalar<float> ( "Summary_MET_Ey", met.mpy()/GeV );
183 auto Et = Monitored::Scalar<float> ( "Summary_MET_Et", met.met()/GeV );
184 auto SumEt = Monitored::Scalar<float> ( "Summary_MET_SumEt", met.sumet()/GeV );
185
186 auto mon = Monitored::Group(m_metMonTool, beamSpotWeight, Ex, Ey, Et, SumEt);
187}
ToolHandle< GenericMonitoringTool > m_metMonTool

◆ fill() [4/4]

void PhysValExampleGM::fill ( const xAOD::TrackParticleContainer & tracks,
const xAOD::VertexContainer & vertices,
const xAOD::EventInfo & evt ) const
private

Definition at line 147 of file PhysValExampleGM.cxx.

149 {
150
151 float weight = evt.beamSpotWeight();
152 auto beamSpotWeight = Monitored::Scalar<float>("beamSpotWeight", weight);
153
154 auto ntrk = Monitored::Scalar<int> ( "Summary_TrackAndVertex_ntrk", tracks.size() );
155 auto nvtx = Monitored::Scalar<int> ( "Summary_TrackAndVertex_nvtx", vertices.size() );
156
157 // Need a vector for vector plots with vertices
158 std::vector<float> weights(vertices.size(), weight);
159 auto beamSpotWeights = Monitored::Collection("beamSpotWeights", weights);
160
162 ( "Summary_TrackAndVertex_x", vertices,
163 []( const xAOD::Vertex* vtx ) { return vtx->x(); });
165 ( "Summary_TrackAndVertex_y", vertices,
166 []( const xAOD::Vertex* vtx ) { return vtx->y(); });
168 ( "Summary_TrackAndVertex_z", vertices,
169 []( const xAOD::Vertex* vtx ) { return vtx->z(); });
170
171 auto mon = Monitored::Group(m_trkVtxMonTool, beamSpotWeight, beamSpotWeights,
172 ntrk, nvtx, x, y, z);
173}
#define y
#define x
#define z
size_type size() const noexcept
Returns the number of elements in the collection.
ToolHandle< GenericMonitoringTool > m_trkVtxMonTool
float z() const
Returns the z position.
float y() const
Returns the y position.
float x() const
Returns the x position.
Vertex_v1 Vertex
Define the latest version of the vertex class.

◆ 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 PhysValExampleGM::initialize ( )
overridevirtual

Definition at line 13 of file PhysValExampleGM.cxx.

14{
15 ATH_CHECK(m_evtMonTool.retrieve());
16 ATH_CHECK(m_eleMonTool.retrieve());
17 ATH_CHECK(m_photonMonTool.retrieve());
18 ATH_CHECK(m_muonMonTool.retrieve());
19 ATH_CHECK(m_tauMonTool.retrieve());
20 ATH_CHECK(m_trkVtxMonTool.retrieve());
21 if (m_doExJet) ATH_CHECK(m_jetMonTool.retrieve());
22 if (m_doExMET) ATH_CHECK(m_metMonTool.retrieve());
23
24 ATH_CHECK(m_eventInfoKey.initialize());
25 ATH_CHECK(m_eleKey.initialize());
26 ATH_CHECK(m_photonKey.initialize());
27 ATH_CHECK(m_muonKey.initialize());
28 ATH_CHECK(m_tauKey.initialize());
29 ATH_CHECK(m_trkKey.initialize());
30 ATH_CHECK(m_vtxKey.initialize());
31 ATH_CHECK(m_jetKey.initialize(m_doExJet));
32 ATH_CHECK(m_metKey.initialize(m_doExMET));
33
34 return StatusCode::SUCCESS;
35}
#define ATH_CHECK
Evaluate an expression and check for errors.

◆ 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 368 of file AthCommonDataStore.h.

369 {
370 h.renounce();
372 }
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 352 of file AthCommonDataStore.h.

352 {
354 }

◆ setFilterPassed()

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

Set filter decision:

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, 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,...)
#define ATH_MSG_WARNING(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 298 of file AthCommonDataStore.h.

298 {
299 for (auto &a : m_vhka) {
301 for (auto k : keys) {
302 k->setOwner(this);
303 }
304 }
305 }

Member Data Documentation

◆ m_detStore

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

Pointer to StoreGate (detector store by default).

Definition at line 381 of file AthCommonDataStore.h.

◆ m_doExJet

Gaudi::Property<bool> PhysValExampleGM::m_doExJet {this, "DoExJet", true}
private

Definition at line 62 of file PhysValExampleGM.h.

62{this, "DoExJet", true};

◆ m_doExMET

Gaudi::Property<bool> PhysValExampleGM::m_doExMET {this, "DoExMET", true}
private

Definition at line 63 of file PhysValExampleGM.h.

63{this, "DoExMET", true};

◆ m_eleKey

SG::ReadHandleKey<xAOD::ElectronContainer> PhysValExampleGM::m_eleKey {this, "ElectronContainerName", "Electrons"}
private

Definition at line 47 of file PhysValExampleGM.h.

48{this, "ElectronContainerName", "Electrons"};

◆ m_eleMonTool

ToolHandle<GenericMonitoringTool> PhysValExampleGM::m_eleMonTool {this, "EleMonTool", ""}
private

Definition at line 37 of file PhysValExampleGM.h.

37{this, "EleMonTool", ""};

◆ m_eventInfoKey

SG::ReadHandleKey<xAOD::EventInfo> PhysValExampleGM::m_eventInfoKey {this, "EventInfo", "EventInfo"}
private

Definition at line 44 of file PhysValExampleGM.h.

44{this, "EventInfo", "EventInfo"};

◆ m_evtMonTool

ToolHandle<GenericMonitoringTool> PhysValExampleGM::m_evtMonTool {this, "EventInfoMonTool", ""}
private

Definition at line 35 of file PhysValExampleGM.h.

35{this, "EventInfoMonTool", ""};

◆ m_evtStore

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

Pointer to StoreGate (event store by default).

Definition at line 378 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_jetKey

SG::ReadHandleKey<xAOD::JetContainer> PhysValExampleGM::m_jetKey {this, "JetContainerName", "AntiKt4EMTopoJets"}
private

Definition at line 45 of file PhysValExampleGM.h.

46{this, "JetContainerName", "AntiKt4EMTopoJets"};

◆ m_jetMonTool

ToolHandle<GenericMonitoringTool> PhysValExampleGM::m_jetMonTool {this, "JetMonTool", ""}
private

Definition at line 36 of file PhysValExampleGM.h.

36{this, "JetMonTool", ""};

◆ m_metKey

SG::ReadHandleKey<xAOD::MissingETContainer> PhysValExampleGM::m_metKey {this, "METContainerName", "MET_RefFinal"}
private

Definition at line 59 of file PhysValExampleGM.h.

60{this, "METContainerName", "MET_RefFinal"};

◆ m_metMonTool

ToolHandle<GenericMonitoringTool> PhysValExampleGM::m_metMonTool {this, "METMonTool", ""}
private

Definition at line 42 of file PhysValExampleGM.h.

42{this, "METMonTool", ""};

◆ m_muonKey

SG::ReadHandleKey<xAOD::MuonContainer> PhysValExampleGM::m_muonKey {this, "MuonContainerName", "Muons"}
private

Definition at line 51 of file PhysValExampleGM.h.

52{this, "MuonContainerName", "Muons"};

◆ m_muonMonTool

ToolHandle<GenericMonitoringTool> PhysValExampleGM::m_muonMonTool {this, "MuonMonTool", ""}
private

Definition at line 39 of file PhysValExampleGM.h.

39{this, "MuonMonTool", ""};

◆ m_photonKey

SG::ReadHandleKey<xAOD::PhotonContainer> PhysValExampleGM::m_photonKey {this, "PhotonContainerName", "Photons"}
private

Definition at line 49 of file PhysValExampleGM.h.

50{this, "PhotonContainerName", "Photons"};

◆ m_photonMonTool

ToolHandle<GenericMonitoringTool> PhysValExampleGM::m_photonMonTool {this, "PhotonMonTool", ""}
private

Definition at line 38 of file PhysValExampleGM.h.

38{this, "PhotonMonTool", ""};

◆ m_tauKey

SG::ReadHandleKey<xAOD::TauJetContainer> PhysValExampleGM::m_tauKey {this, "TauContainerName", "TauJets"}
private

Definition at line 53 of file PhysValExampleGM.h.

54{this, "TauContainerName", "TauJets"};

◆ m_tauMonTool

ToolHandle<GenericMonitoringTool> PhysValExampleGM::m_tauMonTool {this, "TauMonTool", ""}
private

Definition at line 40 of file PhysValExampleGM.h.

40{this, "TauMonTool", ""};

◆ m_trkKey

SG::ReadHandleKey<xAOD::TrackParticleContainer> PhysValExampleGM::m_trkKey {this, "TrackContainerName", "InDetTrackParticles"}
private

Definition at line 55 of file PhysValExampleGM.h.

56{this, "TrackContainerName", "InDetTrackParticles"};

◆ m_trkVtxMonTool

ToolHandle<GenericMonitoringTool> PhysValExampleGM::m_trkVtxMonTool {this, "TrkVtxMonTool", ""}
private

Definition at line 41 of file PhysValExampleGM.h.

41{this, "TrkVtxMonTool", ""};

◆ m_varHandleArraysDeclared

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

Definition at line 387 of file AthCommonDataStore.h.

◆ m_vhka

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

Definition at line 386 of file AthCommonDataStore.h.

◆ m_vtxKey

SG::ReadHandleKey<xAOD::VertexContainer> PhysValExampleGM::m_vtxKey {this, "VertexContainerName", "PrimaryVertices"}
private

Definition at line 57 of file PhysValExampleGM.h.

58{this, "VertexContainerName", "PrimaryVertices"};

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