ATLAS Offline Software
Loading...
Searching...
No Matches
met::METTruthAssociator Class Referencefinal

#include <METTruthAssociator.h>

Inheritance diagram for met::METTruthAssociator:
Collaboration diagram for met::METTruthAssociator:

Public Member Functions

 METTruthAssociator (const std::string &name)
 ~METTruthAssociator ()
StatusCode initialize ()
 Dummy implementation of the initialisation function.
StatusCode finalize ()
virtual StatusCode execute (xAOD::MissingETContainer *metCont, xAOD::MissingETAssociationMap *metMap, const EventContext &ctx) const override
virtual void print () const
 Print the state of the tool.
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 sysInitialize () override
 Perform system initialization for an algorithm.
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
Additional helper functions, not directly mimicking Athena
template<class T>
const T * getProperty (const std::string &name) const
 Get one of the tool's properties.
const std::string & msg_level_name () const __attribute__((deprecated))
 A deprecated function for getting the message level's name.
const std::string & getName (const void *ptr) const
 Get the name of an object that is / should be in the event store.
SG::sgkey_t getKey (const void *ptr) const
 Get the (hashed) key of an object that is in the event store.

Protected Member Functions

virtual StatusCode fillAssocMap (xAOD::MissingETAssociationMap *metMap, const xAOD::IParticleContainer *hardObjs, const EventContext &ctx) const final
StatusCode executeTool (xAOD::MissingETContainer *metCont, xAOD::MissingETAssociationMap *metMap, const EventContext &ctx) const
StatusCode associateJets (xAOD::MissingETAssociationMap *metMap, const EventContext &ctx) const
StatusCode extractTruthParticles (const xAOD::IParticle *obj, std::vector< const xAOD::IParticle * > &truthlist, const EventContext &ctx) const
StatusCode extractTruthFromElectron (const xAOD::IParticle *obj, std::vector< const xAOD::IParticle * > &truthlist, const EventContext &ctx) const
StatusCode extractTruthFromPhoton (const xAOD::IParticle *obj, std::vector< const xAOD::IParticle * > &truthlist, const EventContext &ctx) const
StatusCode extractTruthFromTau (const xAOD::IParticle *obj, std::vector< const xAOD::IParticle * > &truthlist) const
StatusCode computeSoftTerms (xAOD::MissingETContainer *metCont, xAOD::MissingETAssociationMap *metMap, const EventContext &ctx) const
virtual StatusCode extractPFO (const xAOD::IParticle *, std::vector< const xAOD::IParticle * > &, const met::METAssociator::ConstitHolder &, std::map< const xAOD::IParticle *, MissingETBase::Types::constvec_t > &, const EventContext &) const final
virtual StatusCode extractFE (const xAOD::IParticle *, std::vector< const xAOD::IParticle * > &, const met::METAssociator::ConstitHolder &, std::map< const xAOD::IParticle *, MissingETBase::Types::constvec_t > &, const EventContext &) const final
StatusCode extractTracks (const xAOD::IParticle *, std::vector< const xAOD::IParticle * > &, const met::METAssociator::ConstitHolder &) const final
StatusCode extractTopoClusters (const xAOD::IParticle *, std::vector< const xAOD::IParticle * > &, const met::METAssociator::ConstitHolder &, const EventContext &) const final
StatusCode retrieveConstituents (met::METAssociator::ConstitHolder &constits, const EventContext &ctx) const
bool acceptTrack (const xAOD::TrackParticle *trk, const xAOD::Vertex *pv) const
bool isGoodEoverP (const xAOD::TrackParticle *trk) const
StatusCode GetUEcorr (const met::METAssociator::ConstitHolder &constits, std::vector< TLorentzVector > &v_clus, TLorentzVector &clus, TLorentzVector &HR, const float Drcone, const float MinDistCone, float &UEcorr) const
virtual StatusCode extractFEHR (const xAOD::IParticle *, std::vector< const xAOD::IParticle * >, std::vector< const xAOD::IParticle * > &, const met::METAssociator::ConstitHolder &, std::map< const xAOD::IParticle *, MissingETBase::Types::constvec_t > &, float &) const
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.

Static Protected Member Functions

static StatusCode extractTruthFromMuon (const xAOD::IParticle *obj, std::vector< const xAOD::IParticle * > &truthlist)
static bool greaterPt (const xAOD::IParticle *part1, const xAOD::IParticle *part2)
static bool greaterPtPFO (const xAOD::PFO *part1, const xAOD::PFO *part2)
static bool greaterPtFE (const xAOD::FlowElement *part1, const xAOD::FlowElement *part2)

Protected Attributes

ToolHandle< InDet::IInDetTrackSelectionToolm_trkseltool {this, "TrackSelectorTool", ""}
ToolHandle< xAOD::ITrackIsolationToolm_trkIsolationTool {this, "TrackIsolationTool", ""}
ToolHandle< xAOD::ICaloTopoClusterIsolationToolm_caloIsolationTool {this, "CaloIsolationTool", ""}
Gaudi::Property< std::string > m_neutralFELinksKey {this, "NeutralFELinksKey", "neutralGlobalFELinks"}
Gaudi::Property< std::string > m_chargedFELinksKey {this, "ChargedFELinksKey", "chargedGlobalFELinks"}
Gaudi::Property< std::string > m_neutralPFOLinksKey {this, "NeutralPFOLinksKey", "neutralpfoLinks"}
Gaudi::Property< std::string > m_chargedPFOLinksKey {this, "ChargedPFOLinksKey", "chargedpfoLinks"}
Gaudi::Property< boolm_usePFOLinks {this, "UsePFOLinks", false}
Gaudi::Property< boolm_useFELinks {this, "UseFELinks", false}
SG::ReadHandleKey< xAOD::VertexContainerm_pvcollKey {this,"PrimVxColl","PrimaryVertices","Primary Vertex Collection"}
SG::ReadHandleKey< xAOD::IParticleContainerm_clcollKey {this,"ClusColl","CaloCalTopoClusters","Topo cluster Collection"}
SG::ReadHandleKey< xAOD::TrackParticleContainerm_trkcollKey {this,"TrkColl","InDetTrackParticles","Track particle Collection"}
SG::ReadHandleKey< xAOD::PFOContainerm_pfcollKey {this,"PFlowColl","","PFO Collection"}
SG::ReadHandleKey< xAOD::FlowElementContainerm_fecollKey {this,"FlowElementCollection","","FlowElement Collection (overrides PFO if not empty)"}
SG::ReadHandleKey< xAOD::IParticleContainerm_hybridContKey {this,"HybridKey","","Hybrid Collection"}
SG::WriteDecorHandleKey< xAOD::IParticleContainerm_UEcorrPtDecorKey {this, "UEcorrPtDecorKey", "", "UE correction for each lepton"}
Gaudi::Property< boolm_recoil {this, "HRecoil", false, ""}
Gaudi::Property< boolm_pflow {this, "PFlow", false}
Gaudi::Property< boolm_useTracks {this, "UseTracks", true}
Gaudi::Property< boolm_useRapidity {this, "UseRapidity", false}
Gaudi::Property< boolm_useModifiedClus {this, "UseModifiedClus", false}
Gaudi::Property< boolm_cleanChargedPFO {this, "CleanCPFO", true}
Gaudi::Property< boolm_skipconst {this, "IgnoreJetConst", false}
Gaudi::Property< std::string > m_forcoll {this, "ForwardColl", ""}
Gaudi::Property< doublem_foreta {this, "ForwardDef", 2.5}
Gaudi::Property< doublem_cenTrackPtThr {this, "CentralTrackPtThr", 30e+3}
Gaudi::Property< doublem_forTrackPtThr {this, "ForwardTrackPtThr", 30e+3}

Private Member Functions

 METTruthAssociator ()
 Default constructor:

Private Attributes

SG::ReadHandleKey< xAOD::ElectronContainerm_recoElKey {this,"RecoElKey","Electrons",""}
SG::ReadHandleKey< xAOD::PhotonContainerm_recoGamKey {this,"RecoGamKey","Photons",""}
SG::ReadHandleKey< xAOD::TauJetContainerm_recoTauKey {this,"RecoTauKey","TauJets",""}
SG::ReadHandleKey< xAOD::MuonContainerm_recoMuKey {this,"RecoMuKey","Muons",""}
SG::ReadHandleKey< xAOD::JetContainerm_recoJetKey {this,"RecoJetKey","",""}
SG::ReadHandleKey< xAOD::TruthEventContainerm_truthEventKey {this,"TruthEventKey","TruthEvents",""}

Detailed Description

Definition at line 23 of file METTruthAssociator.h.

Constructor & Destructor Documentation

◆ METTruthAssociator() [1/2]

met::METTruthAssociator::METTruthAssociator ( const std::string & name)

Definition at line 45 of file METTruthAssociator.cxx.

45 :
48 {}
AsgTool(const std::string &name)
Constructor specifying the tool instance's name.
Definition AsgTool.cxx:58

◆ ~METTruthAssociator()

met::METTruthAssociator::~METTruthAssociator ( )
default

◆ METTruthAssociator() [2/2]

met::METTruthAssociator::METTruthAssociator ( )
private

Default constructor:

Member Function Documentation

◆ acceptTrack()

bool met::METAssociator::acceptTrack ( const xAOD::TrackParticle * trk,
const xAOD::Vertex * pv ) const
protectedinherited

Definition at line 354 of file METAssociator.cxx.

355 {
356
357 if (!vx) return false;//in events with no pv, we will just reject all tracks, and therefore build only the calo MET
358 return static_cast<bool> (m_trkseltool->accept( *trk, vx ));
359 }
ToolHandle< InDet::IInDetTrackSelectionTool > m_trkseltool

◆ associateJets()

StatusCode met::METTruthAssociator::associateJets ( xAOD::MissingETAssociationMap * metMap,
const EventContext & ctx ) const
protected

Definition at line 144 of file METTruthAssociator.cxx.

145 {
146 // Retrieve the jet container
147 SG::ReadHandle<xAOD::JetContainer> jetCont(m_recoJetKey, ctx);
148 if (!jetCont.isValid()) {
149 ATH_MSG_WARNING("Unable to retrieve input jet container " << m_recoJetKey.key());
150 return StatusCode::FAILURE;
151 }
152 ATH_MSG_DEBUG("Successfully retrieved jet collection");
153
154 // Create jet associations
155 std::vector<const IParticle*> chargedTruth;
156 std::vector<const IParticle*> jetTruth;
157 std::vector<ElementLink<IParticleContainer> > jetconst;
158 jetTruth.reserve(20);
159 for(const auto *const jet : *jetCont) {
160 jetTruth.clear();
161 jetconst.clear();
164 if(!cacc_ghosttruth.isAvailable(*jet)) {
165 ATH_MSG_WARNING("Failed to extract ghost truth particles from jet");
166 } else {
167 for (const auto& el : cacc_ghosttruth(*jet)) {
168 if(el.isValid()) {
169 const xAOD::TruthParticle *truth = static_cast<const xAOD::TruthParticle*>(*el);
170 ATH_MSG_VERBOSE("Jet contains truth particle " << truth);
171 if(fabs(truth->charge())>1e-6) {
172 trkvec += *truth;
173 }
174 if(!truth->isMuon()) {
175 jetconst.push_back(el);
176 jetTruth.push_back(truth);
177 truthvec += *truth;
178 }
179 }
180 }
181 }
182
183 MissingETComposition::add(metMap,jet,jetconst,trkvec);
184 MissingETComposition::insert(metMap,jet,jet,jetTruth);
185 ATH_MSG_VERBOSE("Added association " << metMap->findIndex(jet) << " pointing to jet " << jet);
186 ATH_MSG_VERBOSE("Jet pt, eta, phi = " << jet->pt() << ", " << jet->eta() << "," << jet->phi() );
187 ATH_MSG_VERBOSE("Jet truthvec pt = " << truthvec.cpt() );
188 ATH_MSG_VERBOSE("Jet trkvec pt = " << trkvec.cpt() );
189 }
190
192 ATH_MSG_DEBUG("Added miscellaneous association");
193
194 return StatusCode::SUCCESS;
195 }
#define ATH_MSG_VERBOSE(x)
#define ATH_MSG_WARNING(x)
#define ATH_MSG_DEBUG(x)
SG::ReadHandleKey< xAOD::JetContainer > m_recoJetKey
double charge() const
Physical charge.
bool isMuon() const
Whether the particle is a muon (or antimuon).
xAOD::MissingETAssociation_v1::ConstVec constvec_t
Type for constituent vector.
static const SG::ConstAccessor< std::vector< ElementLink< IParticleContainer > > > cacc_ghosttruth("GhostTruth")
TruthParticle_v1 TruthParticle
Typedef to implementation.
static bool addMiscAssociation(MissingETAssociationMap *pMap)
Add an association to hold objects not associated to any jet.
static bool insert(MissingETComponentMap *pMap, const MissingET *pMET, const IParticle *pPart, MissingETBase::Types::weight_t weight=MissingETBase::Types::weight_t())
Insert contributing signal or physics object by pointer, with optional kinematic weight object.
static bool add(MissingETComponentMap *pMap, const MissingET *pMET, MissingETBase::Types::bitmask_t sw=MissingETBase::Status::clearedStatus())
Adding a MissingET object to the map.

◆ computeSoftTerms()

StatusCode met::METTruthAssociator::computeSoftTerms ( xAOD::MissingETContainer * metCont,
xAOD::MissingETAssociationMap * metMap,
const EventContext & ctx ) const
protected

Definition at line 197 of file METTruthAssociator.cxx.

198 {
199 // Add MET terms to the container
200 // Always do this in order that the terms exist even if the method fails
202 metCont->push_back(metCoreAllTruth);
203 MissingET* metCoreChargedTruth = new MissingET(0.,0.,0.,"SoftTruthChargedCore",MissingETBase::Source::softEvent() | MissingETBase::Source::truthInt() | MissingETBase::Source::Category::ID);
204 metCont->push_back(metCoreChargedTruth);
206 metCont->push_back(metCoreChargedCentralTruth);
207
208 ATH_MSG_VERBOSE("Added core terms.");
209
210 // Retrieve the truth container
211 SG::ReadHandle<xAOD::TruthEventContainer> truthEventCont(m_truthEventKey, ctx);
212 if (!truthEventCont.isValid()) {
213 ATH_MSG_WARNING("Unable to retrieve input truthEvent container " << m_truthEventKey.key());
214 return StatusCode::FAILURE;
215 }
216
217 // First truth event is the hard scatter
218 const TruthEvent* hsevent = truthEventCont->front();
219 ConstDataVector<TruthParticleContainer> truthParticleCont(SG::VIEW_ELEMENTS);
220 for(size_t itp=0; itp<hsevent->nTruthParticles(); ++itp) {
221 const xAOD::TruthParticle* tp = hsevent->truthParticle(itp);
222 if(tp) {
223 truthParticleCont.push_back(tp);
224 ATH_MSG_VERBOSE("Extracted truth particle with index " << tp->index() );
225 }
226 }
227
228 const IParticleContainer* uniqueTruth = metMap->getUniqueSignals(truthParticleCont.asDataVector(),MissingETBase::UsageHandler::TruthParticle);
229 ATH_MSG_VERBOSE("Extracted " << uniqueTruth->size() << "/" << truthParticleCont.size()
230 << " unique truth particles.");
231 for(const auto *const part : *uniqueTruth) {
232 const xAOD::TruthParticle* truth = static_cast<const xAOD::TruthParticle*>(part);
233 // stable
234 if(!truth->isGenStable()) continue;
235 // interacting
236 if(!MC::isInteracting(truth->pdgId())) continue;
237 if(truth->pt()<1 || fabs(truth->eta())>5) continue;
238 ATH_MSG_VERBOSE("Accepted soft truth particle with pt " << truth->pt()
239 << " status " << truth->status()
240 << " pdgId " << truth->pdgId() );
241 if(fabs(truth->charge())>1e-6) {
242 // in ID acceptance
243 if(fabs(truth->eta())<2.5) *metCoreChargedCentralTruth += truth;
244 *metCoreChargedTruth += truth;
245 }
246 if(!truth->isMuon()) *metCoreAllTruth += truth;
247 }
248 delete uniqueTruth;
249 return StatusCode::SUCCESS;
250 }
value_type push_back(value_type pElem)
Add an element to the end of the collection.
size_type size() const noexcept
Returns the number of elements in the collection.
SG::ReadHandleKey< xAOD::TruthEventContainer > m_truthEventKey
const IParticleContainer * getUniqueSignals(const IParticleContainer *signals, MissingETBase::UsageHandler::Policy p=MissingETBase::UsageHandler::TrackCluster) const
Extract a container of constituents that are not in jets.
int status() const
Status code.
int pdgId() const
PDG ID code.
virtual double pt() const override final
The transverse momentum ( ) of the particle.
bool isGenStable() const
Check if this is generator stable particle.
virtual double eta() const override final
The pseudorapidity ( ) of the particle.
bool isInteracting(const T &p)
Identify if the particle with given PDG ID would not interact with the detector, i....
@ VIEW_ELEMENTS
this data object is a view, it does not own its elmts
MissingET_v1 MissingET
Version control by type defintion.
TruthEvent_v1 TruthEvent
Typedef to implementation.
Definition TruthEvent.h:17
DataVector< IParticle > IParticleContainer
Simple convenience declaration of IParticleContainer.
@ Calo
Indicator for MET terms reconstructed from calorimeter signals alone.
@ ID
Indicator for MET terms reconstructed from inner detector (ID) tracks alone.
static Types::bitmask_t truthInt(Region reg=Region::FullAcceptance)
Standard bit pattern indicating effective true MET.
static Types::bitmask_t softEvent(Region reg=Region::FullAcceptance)
Standard MET term from reconstructed soft event.
@ Central
Indicator for MET contribution from the central region.

◆ declareProperty()

Gaudi::Details::PropertyBase & AthCommonDataStore< AthCommonMsg< AlgTool > >::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< AlgTool > >::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< AlgTool > >::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 met::METAssociator::execute ( xAOD::MissingETContainer * metCont,
xAOD::MissingETAssociationMap * metMap,
const EventContext & ctx ) const
overridevirtualinherited

Implements IMETAssocToolBase.

Definition at line 124 of file METAssociator.cxx.

125 {
126 ATH_MSG_DEBUG ("In execute: " << name() << "...");
127 if(!metCont) {
128 ATH_MSG_WARNING("Invalid pointer to MissingETContainer supplied! Abort.");
129 return StatusCode::FAILURE;
130 }
131
132 if(!metMap) {
133 ATH_MSG_WARNING("Invalid pointer to MissingETAssociationMap supplied! Abort.");
134 return StatusCode::FAILURE;
135 }
136 if(m_pflow && !m_useTracks ){
137 ATH_MSG_WARNING("Attempting to build PFlow MET without a track collection.");
138 return StatusCode::FAILURE;
139 }
140
141 return this->executeTool(metCont, metMap, ctx);
142 }
Gaudi::Property< bool > m_pflow
virtual StatusCode executeTool(xAOD::MissingETContainer *metCont, xAOD::MissingETAssociationMap *metMap, const EventContext &ctx) const =0
Gaudi::Property< bool > m_useTracks

◆ executeTool()

StatusCode met::METTruthAssociator::executeTool ( xAOD::MissingETContainer * metCont,
xAOD::MissingETAssociationMap * metMap,
const EventContext & ctx ) const
protectedvirtual

Implements met::METAssociator.

Definition at line 80 of file METTruthAssociator.cxx.

81 {
82 ATH_MSG_VERBOSE ("In execute: " << name() << "...");
83
84 ATH_CHECK( associateJets(metMap, ctx) );
85
86 SG::ReadHandle<xAOD::ElectronContainer> electronCont(m_recoElKey, ctx);
87 if (!electronCont.isValid()) {
88 ATH_MSG_WARNING("Unable to retrieve input electron container " << m_recoElKey.key());
89 return StatusCode::FAILURE;
90 }
91
92 ATH_MSG_DEBUG("Successfully retrieved electron collection");
93 if(fillAssocMap(metMap,electronCont.cptr(), ctx).isFailure()) {
94 ATH_MSG_WARNING("Unable to fill map with electron container " << m_recoElKey.key());
95 return StatusCode::FAILURE;
96 }
97
98 SG::ReadHandle<xAOD::PhotonContainer> photonCont(m_recoGamKey, ctx);
99 if (!photonCont.isValid()) {
100 ATH_MSG_WARNING("Unable to retrieve input photon container " << m_recoGamKey.key());
101 return StatusCode::FAILURE;
102 }
103
104 ATH_MSG_DEBUG("Successfully retrieved photon collection");
105 if(fillAssocMap(metMap,photonCont.cptr(), ctx).isFailure()) {
106 ATH_MSG_WARNING("Unable to fill map with photon container " << m_recoGamKey.key());
107 return StatusCode::FAILURE;
108 }
109
110 SG::ReadHandle<xAOD::MuonContainer> muonCont(m_recoMuKey, ctx);
111 if (!muonCont.isValid()) {
112 ATH_MSG_WARNING("Unable to retrieve input muon container " << m_recoMuKey.key());
113 return StatusCode::FAILURE;
114 }
115
116 ATH_MSG_DEBUG("Successfully retrieved muon collection");
117 if(fillAssocMap(metMap,muonCont.cptr(), ctx).isFailure()) {
118 ATH_MSG_WARNING("Unable to fill map with muon container " << m_recoMuKey.key());
119 return StatusCode::FAILURE;
120 }
121
122 SG::ReadHandle<xAOD::TauJetContainer> tauCont(m_recoTauKey, ctx);
123 if (!tauCont.isValid()) {
124 ATH_MSG_WARNING("Unable to retrieve input tau container " << m_recoTauKey.key());
125 return StatusCode::FAILURE;
126 }
127 ATH_MSG_DEBUG("Successfully retrieved tau collection");
128 if(fillAssocMap(metMap,tauCont.cptr(), ctx).isFailure()) {
129 ATH_MSG_WARNING("Unable to fill map with tau container " << m_recoTauKey.key());
130 return StatusCode::FAILURE;
131 }
132
133 if( computeSoftTerms(metCont,metMap, ctx).isFailure() ) {
134 ATH_MSG_WARNING("Unable to build truth core soft terms.");
135 return StatusCode::FAILURE;
136 }
137
138 return StatusCode::SUCCESS;
139 }
#define ATH_CHECK
Evaluate an expression and check for errors.
StatusCode computeSoftTerms(xAOD::MissingETContainer *metCont, xAOD::MissingETAssociationMap *metMap, const EventContext &ctx) const
virtual StatusCode fillAssocMap(xAOD::MissingETAssociationMap *metMap, const xAOD::IParticleContainer *hardObjs, const EventContext &ctx) const final
StatusCode associateJets(xAOD::MissingETAssociationMap *metMap, const EventContext &ctx) const
SG::ReadHandleKey< xAOD::ElectronContainer > m_recoElKey
SG::ReadHandleKey< xAOD::TauJetContainer > m_recoTauKey
SG::ReadHandleKey< xAOD::MuonContainer > m_recoMuKey
SG::ReadHandleKey< xAOD::PhotonContainer > m_recoGamKey

◆ extractFE()

virtual StatusCode met::METTruthAssociator::extractFE ( const xAOD::IParticle * ,
std::vector< const xAOD::IParticle * > & ,
const met::METAssociator::ConstitHolder & ,
std::map< const xAOD::IParticle *, MissingETBase::Types::constvec_t > & ,
const EventContext &  ) const
inlinefinalprotectedvirtual

Implements met::METAssociator.

Definition at line 72 of file METTruthAssociator.h.

76 {return StatusCode::FAILURE;} // should not be called

◆ extractFEHR()

virtual StatusCode met::METAssociator::extractFEHR ( const xAOD::IParticle * ,
std::vector< const xAOD::IParticle * > ,
std::vector< const xAOD::IParticle * > & ,
const met::METAssociator::ConstitHolder & ,
std::map< const xAOD::IParticle *, MissingETBase::Types::constvec_t > & ,
float &  ) const
inlineprotectedvirtualinherited

Reimplemented in met::METEgammaAssociator, and met::METMuonAssociator.

Definition at line 149 of file METAssociator.h.

155 {return StatusCode::FAILURE;}

◆ extractPFO()

virtual StatusCode met::METTruthAssociator::extractPFO ( const xAOD::IParticle * ,
std::vector< const xAOD::IParticle * > & ,
const met::METAssociator::ConstitHolder & ,
std::map< const xAOD::IParticle *, MissingETBase::Types::constvec_t > & ,
const EventContext &  ) const
inlinefinalprotectedvirtual

Implements met::METAssociator.

Definition at line 67 of file METTruthAssociator.h.

71 {return StatusCode::FAILURE;} // should not be called

◆ extractTopoClusters()

StatusCode met::METTruthAssociator::extractTopoClusters ( const xAOD::IParticle * ,
std::vector< const xAOD::IParticle * > & ,
const met::METAssociator::ConstitHolder & ,
const EventContext &  ) const
inlinefinalprotectedvirtual

Implements met::METAssociator.

Definition at line 81 of file METTruthAssociator.h.

84 {return StatusCode::FAILURE;} // should not be called

◆ extractTracks()

StatusCode met::METTruthAssociator::extractTracks ( const xAOD::IParticle * ,
std::vector< const xAOD::IParticle * > & ,
const met::METAssociator::ConstitHolder &  ) const
inlinefinalprotectedvirtual

Implements met::METAssociator.

Definition at line 77 of file METTruthAssociator.h.

80 {return StatusCode::FAILURE;} // should not be called

◆ extractTruthFromElectron()

StatusCode met::METTruthAssociator::extractTruthFromElectron ( const xAOD::IParticle * obj,
std::vector< const xAOD::IParticle * > & truthlist,
const EventContext & ctx ) const
protected

Definition at line 274 of file METTruthAssociator.cxx.

276 {
277 const xAOD::Electron* el = static_cast<const xAOD::Electron*>(obj);
278 // El --> TruthParticles
280 if(eltruth && eltruth->isGenStable())
281 truthlist.push_back(eltruth);
282
283 // for(size_t iTrk=0; iTrk<el->nTrackParticles(); ++iTrk) {
284 // const TrackParticle* eltrk = EgammaHelpers::getOriginalTrackParticleFromGSF(el->trackParticle(iTrk));
285 // const xAOD::IParticle* truth(0);
286 // if(eltrk) truth = TruthHelpers::getTruthParticle( *eltrk );
287 // if(truth && truth!=eltruth) truthlist.push_back(truth);
288 // }
289
290 // Retrieve the truth container
291 SG::ReadHandle<xAOD::TruthEventContainer> truthEventCont(m_truthEventKey, ctx);
292 if (!truthEventCont.isValid()) {
293 ATH_MSG_WARNING("Unable to retrieve input truthEvent container " << m_truthEventKey.key());
294 return StatusCode::SUCCESS;
295 }
296
297
298 // First truth event is the hard scatter
299 const TruthEvent* hsevent = truthEventCont->front();
300 ConstDataVector<TruthParticleContainer> truthParticleCont(SG::VIEW_ELEMENTS);
301 for(size_t itp=0; itp<hsevent->nTruthParticles(); ++itp) {
302 const xAOD::TruthParticle* tp = hsevent->truthParticle(itp);
303 if(tp) {
304 truthParticleCont.push_back(tp);
305 }
306 }
307
308 for(const auto truth : truthParticleCont) {
309 if(truth->pt()<1) continue;
310 // stable
311 if(!truth->isGenStable()) continue;
312 // interacting
313 if(!MC::isInteracting(truth->pdgId())) continue;
314 float etasize = 0.025/2;
315 float phisize = 0.025/2;
316 bool isSuperCluster = false;
317 float Rsize = 0.;
318 switch(el->caloCluster()->clusterSize()) {
320 etasize *= 5; phisize *=5;
321 break;
323 etasize *= 3; phisize *=5;
324 break;
326 etasize *= 3; phisize *=7;
327 break;
329 isSuperCluster = true;
330 Rsize = el->caloCluster()->getMomentValue( xAOD::CaloCluster::SECOND_R );
331 if (Rsize<0.) {ATH_MSG_VERBOSE("Invalid SECOND_R moment retrieved!");}
332 break;
333 default:
334 ATH_MSG_WARNING("Unexpected electron cluster size " << el->caloCluster()->clusterSize() << " received!");
335 continue;
336 }
337 float deltaEta(fabs(truth->eta()-el->caloCluster()->eta()));
338 float deltaPhi(fabs(truth->p4().DeltaPhi(el->caloCluster()->p4())));
339 if( (isSuperCluster && (deltaEta*deltaEta+deltaPhi*deltaPhi)<Rsize*Rsize ) ||
340 (deltaEta<etasize && deltaPhi<phisize) ) {
341 bool skip(false);
342 for(const auto& truthobj : truthlist) {
343 const xAOD::TruthParticle *truth2 = static_cast<const xAOD::TruthParticle*>(truthobj);
344 if(truth==truth2) { skip = true; break;}
345 }
346 if(!skip) {
347 truthlist.push_back(truth);
348 }
349 }
350 }
351
352 return StatusCode::SUCCESS;
353 }
@ SECOND_R
Second Moment in .
double deltaEta(const I4Momentum &p1, const I4Momentum &p2)
Computes efficiently .
Definition P4Helpers.h:66
const xAOD::TruthParticle * getTruthParticle(const xAOD::IParticle &p)
Return the truthParticle associated to the given IParticle (if any).
setSAddress setEtaMS setDirPhiMS setDirZMS setBarrelRadius setEndcapAlpha setEndcapRadius setInterceptInner setEtaMap setEtaBin setIsTgcFailure setDeltaPt deltaPhi
Electron_v1 Electron
Definition of the current "egamma version".

◆ extractTruthFromMuon()

StatusCode met::METTruthAssociator::extractTruthFromMuon ( const xAOD::IParticle * obj,
std::vector< const xAOD::IParticle * > & truthlist )
staticprotected

Definition at line 452 of file METTruthAssociator.cxx.

454 {
455 const xAOD::Muon* mu = static_cast<const xAOD::Muon*>(obj);
456 const TrackParticle* trk = mu->primaryTrackParticle();
457 const xAOD::TruthParticle* truth(nullptr);
458 if(trk) truth = TruthHelpers::getTruthParticle( *trk );
459 if(truth && truth->isGenStable())
460 truthlist.push_back(truth);
461 return StatusCode::SUCCESS;
462 }
TrackParticle_v1 TrackParticle
Reference the current persistent version:
Muon_v1 Muon
Reference the current persistent version:

◆ extractTruthFromPhoton()

StatusCode met::METTruthAssociator::extractTruthFromPhoton ( const xAOD::IParticle * obj,
std::vector< const xAOD::IParticle * > & truthlist,
const EventContext & ctx ) const
protected

Definition at line 355 of file METTruthAssociator.cxx.

357 {
358 const xAOD::Photon* ph = static_cast<const xAOD::Photon*>(obj);
359 // Ph --> TruthParticles
361 if(phtruth && phtruth->isGenStable())
362 truthlist.push_back(phtruth);
363
364 // std::vector<const xAOD::TrackParticle*> phtrks;
365 // for(size_t iVtx=0; iVtx<ph->nVertices(); ++iVtx) {
366 // const xAOD::Vertex* phvx = ph->vertex(iVtx);
367 // for(size_t iTrk=0; iTrk<phvx->nTrackParticles(); ++iTrk) {
368 // const xAOD::TrackParticle* phtrk = EgammaHelpers::getOriginalTrackParticleFromGSF(phvx->trackParticle(iTrk));
369 // bool duplicate = false;
370 // for(const auto& gamtrk : phtrks) {
371 // if( (duplicate = (phtrk == gamtrk)) ) {
372 // ATH_MSG_VERBOSE("Veto duplicate track");
373 // break;
374 // }
375 // }
376 // if(!duplicate) {
377 // const xAOD::IParticle* truth(0);
378 // if(phtrk) truth = TruthHelpers::getTruthParticle( *phtrk );
379 // if(truth && truth!=phtruth) truthlist.push_back(truth);
380 // }
381 // }
382 // }
383
384 // Retrieve the truth container
385 SG::ReadHandle<xAOD::TruthEventContainer> truthEventCont(m_truthEventKey, ctx);
386 if (!truthEventCont.isValid()) {
387 ATH_MSG_WARNING("Unable to retrieve input truthEvent container " << m_truthEventKey.key());
388 return StatusCode::SUCCESS;
389 }
390
391 // First truth event is the hard scatter
392 const TruthEvent* hsevent = truthEventCont->front();
393 ConstDataVector<TruthParticleContainer> truthParticleCont(SG::VIEW_ELEMENTS);
394 for(size_t itp=0; itp<hsevent->nTruthParticles(); ++itp) {
395 const xAOD::TruthParticle* tp = hsevent->truthParticle(itp);
396 if(tp) {
397 truthParticleCont.push_back(tp);
398 }
399 }
400
401 for(const auto truth : truthParticleCont) {
402 if(!truth || truth->pt()<1) continue;
403 // stable
404 if(!truth->isGenStable()) continue;
405 // interacting
406 if(!MC::isInteracting(truth->pdgId())) continue;
407 float etasize(0.025/2);
408 float phisize(0.025/2);
409 bool isSuperCluster = false;
410 float Rsize = 0.;
411 switch(ph->caloCluster()->clusterSize()) {
414 etasize *= 5; phisize *=5;
415 break;
419 etasize *= 3; phisize *=5;
420 break;
423 etasize *= 3; phisize *=7;
424 break;
426 isSuperCluster = true;
428 if (Rsize<0.) {ATH_MSG_VERBOSE("Invalid SECOND_R moment retrieved!");}
429 break;
430 default:
431 ATH_MSG_WARNING("Unexpected photon cluster size " << ph->caloCluster()->clusterSize() << " received!");
432 continue;
433 }
434 float deltaEta(fabs(truth->eta()-ph->caloCluster()->eta()));
435 float deltaPhi(fabs(truth->p4().DeltaPhi(ph->caloCluster()->p4())));
436 if( (isSuperCluster && (deltaEta*deltaEta+deltaPhi*deltaPhi)<Rsize*Rsize ) ||
437 (deltaEta<etasize && deltaPhi<phisize) ) {
438 bool skip(false);
439 for(const auto& truthobj : truthlist) {
440 const xAOD::TruthParticle *truth2 = static_cast<const xAOD::TruthParticle*>(truthobj);
441 if(truth==truth2) { skip = true; break;}
442 }
443 if(!skip) {
444 truthlist.push_back(truth);
445 }
446 }
447 }
448
449 return StatusCode::SUCCESS;
450 }
ClusterSize clusterSize() const
Get cluster size.
double getMomentValue(MomentType type) const
Retrieve individual moment - no check for existance! Returns -999 on error.
virtual double eta() const
The pseudorapidity ( ) of the particle.
virtual FourMom_t p4() const
The full 4-momentum of the particle.
const xAOD::CaloCluster * caloCluster(size_t index=0) const
Pointer to the xAOD::CaloCluster/s that define the electron candidate.
Photon_v1 Photon
Definition of the current "egamma version".

◆ extractTruthFromTau()

StatusCode met::METTruthAssociator::extractTruthFromTau ( const xAOD::IParticle * obj,
std::vector< const xAOD::IParticle * > & truthlist ) const
protected

Definition at line 464 of file METTruthAssociator.cxx.

466 {
467 const TauJet* tau = static_cast<const TauJet*>(obj);
468 const Jet* seedjet = *tau->jetLink();
469 std::vector<ElementLink<IParticleContainer> > jetconst = cacc_ghosttruth(*seedjet);
470 for(const auto& truth : jetconst) {
471 if(truth) {
472 // TEMP: use jet seed axis
473 // taus will provide an accessor
474 if(!xAOD::P4Helpers::isInDeltaR(*seedjet,**truth,0.2,m_useRapidity)) continue;
475 truthlist.push_back(*truth);
476 }
477 }
478 return StatusCode::SUCCESS;
479 }
Gaudi::Property< bool > m_useRapidity
bool isInDeltaR(const xAOD::IParticle &p1, const xAOD::IParticle &p2, double dR, bool useRapidity=true)
Check if 2 xAOD::IParticle are in a cone.
Jet_v1 Jet
Definition of the current "jet version".
TauJet_v3 TauJet
Definition of the current "tau version".

◆ extractTruthParticles()

StatusCode met::METTruthAssociator::extractTruthParticles ( const xAOD::IParticle * obj,
std::vector< const xAOD::IParticle * > & truthlist,
const EventContext & ctx ) const
protected

Definition at line 254 of file METTruthAssociator.cxx.

256 {
257 switch(obj->type()) {
259 return extractTruthFromElectron(obj,truthlist, ctx);
261 return extractTruthFromPhoton(obj,truthlist, ctx);
262 case xAOD::Type::Muon:
263 return extractTruthFromMuon(obj,truthlist);
264 case xAOD::Type::Tau:
265 return extractTruthFromTau(obj,truthlist);
266 default:
267 ATH_MSG_WARNING("Invalid object type " << obj->type() << " passed to extractTruthParticle");
268 break;
269 }
270
271 return StatusCode::FAILURE;
272 }
static StatusCode extractTruthFromMuon(const xAOD::IParticle *obj, std::vector< const xAOD::IParticle * > &truthlist)
StatusCode extractTruthFromPhoton(const xAOD::IParticle *obj, std::vector< const xAOD::IParticle * > &truthlist, const EventContext &ctx) const
StatusCode extractTruthFromElectron(const xAOD::IParticle *obj, std::vector< const xAOD::IParticle * > &truthlist, const EventContext &ctx) const
StatusCode extractTruthFromTau(const xAOD::IParticle *obj, std::vector< const xAOD::IParticle * > &truthlist) const
@ Photon
The object is a photon.
Definition ObjectType.h:47
@ Muon
The object is a muon.
Definition ObjectType.h:48
@ Electron
The object is an electron.
Definition ObjectType.h:46
@ Tau
The object is a tau (jet).
Definition ObjectType.h:49

◆ extraDeps_update_handler()

void AthCommonDataStore< AthCommonMsg< AlgTool > >::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

◆ fillAssocMap()

StatusCode met::METTruthAssociator::fillAssocMap ( xAOD::MissingETAssociationMap * metMap,
const xAOD::IParticleContainer * hardObjs,
const EventContext & ctx ) const
finalprotectedvirtual

Reimplemented from met::METAssociator.

Definition at line 484 of file METTruthAssociator.cxx.

487 {
488 std::vector<const IParticle*> constlist;
489 constlist.reserve(20);
490 std::vector<const IParticle*> hardObjs_tmp;
491 for(const auto *const obj : *hardObjs) {
492 hardObjs_tmp.push_back(obj);
493 }
494 std::sort(hardObjs_tmp.begin(),hardObjs_tmp.end(),greaterPt);
495
496 for(const auto& obj : hardObjs_tmp) {
497 if(obj->pt()<5e3 && obj->type()!=xAOD::Type::Muon) continue;
498 constlist.clear();
499 ATH_MSG_VERBOSE( "Object type, pt, eta, phi = " << obj->type() << ", " << obj->pt() << ", " << obj->eta() << "," << obj->phi() );
500 ATH_CHECK( this->extractTruthParticles(obj,constlist, ctx) );
501
502 // MissingETBase::Types::constvec_t chrgvec;
503 // MissingETBase::Types::constvec_t truthvec;
504
505 for(const auto& truthobj : constlist) {
506 const xAOD::TruthParticle *truth = static_cast<const xAOD::TruthParticle*>(truthobj);
507 ATH_MSG_VERBOSE("Matched truth particle with pt " << truth->pt()
508 << " status " << truth->status()
509 << " pdgId " << truth->pdgId()
510 << " charge " << truth->charge());
511 ATH_MSG_VERBOSE("DeltaR to hard object: " << xAOD::P4Helpers::deltaR(*truth,*obj,m_useRapidity));
512
513 // if(fabs(truth->charge())>1e-9)
514 // chrgvec += MissingETBase::Types::constvec_t(*truth);
515 // if(!truth->isMuon())
516 // truthvec += MissingETBase::Types::constvec_t(*truth);
517 }
518 // ATH_MSG_VERBOSE("Charged truth constvec: sumpt " << chrgvec.sumpt());
519 // ATH_MSG_VERBOSE("Calo truth constvec: sumpt " << truthvec.sumpt());
520
521 MissingETComposition::insert(metMap,obj,constlist);
522 ATH_MSG_VERBOSE("\n\n");
523 }
524 return StatusCode::SUCCESS;
525 }
static bool greaterPt(const xAOD::IParticle *part1, const xAOD::IParticle *part2)
StatusCode extractTruthParticles(const xAOD::IParticle *obj, std::vector< const xAOD::IParticle * > &truthlist, const EventContext &ctx) const
void sort(typename DataModel_detail::iterator< DVL > beg, typename DataModel_detail::iterator< DVL > end)
Specialization of sort for DataVector/List.
double deltaR(double rapidity1, double phi1, double rapidity2, double phi2)
from bare bare rapidity,phi

◆ finalize()

StatusCode met::METTruthAssociator::finalize ( )

Definition at line 72 of file METTruthAssociator.cxx.

73 {
74 ATH_MSG_VERBOSE ("Finalizing " << name() << "...");
75 return StatusCode::SUCCESS;
76 }

◆ getKey()

SG::sgkey_t asg::AsgTool::getKey ( const void * ptr) const
inherited

Get the (hashed) key of an object that is in the event store.

This is a bit of a special one. StoreGateSvc and xAOD::Event both provide ways for getting the SG::sgkey_t key for an object that is in the store, based on a bare pointer. But they provide different interfaces for doing so.

In order to allow tools to efficiently perform this operation, they can use this helper function.

See also
asg::AsgTool::getName
Parameters
ptrThe bare pointer to the object that the event store should know about
Returns
The hashed key of the object in the store. If not found, an invalid (zero) key.

Definition at line 119 of file AsgTool.cxx.

119 {
120
121#ifdef XAOD_STANDALONE
122 // In case we use @c xAOD::Event, we have a direct function call
123 // for this.
124 return evtStore()->event()->getKey( ptr );
125#else
126 const SG::DataProxy* proxy = evtStore()->proxy( ptr );
127 return ( proxy == nullptr ? 0 : proxy->sgkey() );
128#endif // XAOD_STANDALONE
129 }
ServiceHandle< StoreGateSvc > & evtStore()

◆ getName()

const std::string & asg::AsgTool::getName ( const void * ptr) const
inherited

Get the name of an object that is / should be in the event store.

This is a bit of a special one. StoreGateSvc and xAOD::Event both provide ways for getting the std::string name for an object that is in the store, based on a bare pointer. But they provide different interfaces for doing so.

In order to allow tools to efficiently perform this operation, they can use this helper function.

See also
asg::AsgTool::getKey
Parameters
ptrThe bare pointer to the object that the event store should know about
Returns
The string name of the object in the store. If not found, an empty string.

Definition at line 106 of file AsgTool.cxx.

106 {
107
108#ifdef XAOD_STANDALONE
109 // In case we use @c xAOD::Event, we have a direct function call
110 // for this.
111 return evtStore()->event()->getName( ptr );
112#else
113 const SG::DataProxy* proxy = evtStore()->proxy( ptr );
114 static const std::string dummy = "";
115 return ( proxy == nullptr ? dummy : proxy->name() );
116#endif // XAOD_STANDALONE
117 }

◆ getProperty()

template<class T>
const T * asg::AsgTool::getProperty ( const std::string & name) const
inherited

Get one of the tool's properties.

◆ GetUEcorr()

StatusCode met::METAssociator::GetUEcorr ( const met::METAssociator::ConstitHolder & constits,
std::vector< TLorentzVector > & v_clus,
TLorentzVector & clus,
TLorentzVector & HR,
const float Drcone,
const float MinDistCone,
float & UEcorr ) const
protectedinherited

Definition at line 424 of file METAssociator.cxx.

431 {
432 // 1. Get random phi
433 unsigned int seed = floor( clus.Pt() * Gaudi::Units::GeV );
434 TRandom3 hole;
435 hole.SetSeed(seed);
436
437 bool isNextToPart(true);
438 bool isNextToHR(true);
439 double phiRnd(0.);
440
441 int numOfRndTrials = 0; // Counter for trials to find random cone without overlaps
442 const int maxNumOfRndTrials = 100; // Max. number of trials to find random cone without overlaps
443
444 while(isNextToPart || isNextToHR ){
445 isNextToPart = false;
446 isNextToHR = true;
447
448 phiRnd = hole.Uniform( -std::numbers::pi, std::numbers::pi);
449 double dR = P4Helpers::deltaR( HR.Eta(), HR.Phi(), clus.Eta(), phiRnd );
450 if(dR > MinDistCone){
451 isNextToHR = false;
452 }
453
454 for(const auto& clus_j : v_clus) { // loop over leptons
455 dR = P4Helpers::deltaR( clus.Eta(), phiRnd, clus_j.Eta(), clus_j.Phi() );
456 if(dR < MinDistCone){
457 isNextToPart = true;
458 break;
459 }
460 } // swclus_j
461
462 numOfRndTrials++;
463 if(numOfRndTrials == maxNumOfRndTrials){ // check number of trials
464 UEcorr = 0.;
465 return StatusCode::SUCCESS;
466 }
467 } // while isNextToPart, isNextToHR
468
469 ATH_MSG_DEBUG("Found rnd phi: " << phiRnd);
470
471
472 // 2. Calculete UE correction
473 TLorentzVector tv_UEcorr; // TLV of UE correction (initialized with 0,0,0,0 automatically)
474 std::pair <double, double> eta_rndphi = std::make_pair(clus.Eta(), phiRnd); // pair of current cluser eta and random phi
475
476
477 // Calculate delta phi -> always the same angle so its sufficient to calculate it only once
478 float dphi_angle=P4Helpers::deltaPhi(clus.Phi(),eta_rndphi.second);
479
480 for(const auto fe_itr : *constits.feCont){ // loop over PFOs
481 if(fe_itr->pt() < 0 || fe_itr->e() < 0){ //sanity check
482 continue;
483 }
484
485 //remove charged FE that are not matched to the PV
486 const static SG::ConstAccessor<char> PVMatchedAcc("matchedToPV");
487 if(fe_itr->isCharged() && !PVMatchedAcc(*fe_itr)){
488 continue;
489 }
490
491 double dR = P4Helpers::deltaR( fe_itr->eta(), fe_itr->phi(), eta_rndphi.first, eta_rndphi.second );
492 if( dR < Drcone ){
493 // Rotate on dphi_angle
494 TLorentzVector tv_fe = fe_itr->p4();
495 tv_fe.RotateZ(dphi_angle);
496 tv_UEcorr += tv_fe; // summing PFOs of UE for correction
497 } // cone requirement
498 } // loop over PFOs
499
500 UEcorr = tv_UEcorr.Pt(); // Pt of UE correction
501
502 return StatusCode::SUCCESS;
503 }
static const SG::ConstAccessor< char > PVMatchedAcc("matchedToPV")
double deltaPhi(double phiA, double phiB)
delta Phi in range [-pi,pi[
const xAOD::FlowElementContainer * feCont

◆ greaterPt()

bool met::METAssociator::greaterPt ( const xAOD::IParticle * part1,
const xAOD::IParticle * part2 )
inlinestaticprotectedinherited

Definition at line 163 of file METAssociator.h.

163 {
164 return part1->pt()>part2->pt();
165 }
virtual double pt() const =0
The transverse momentum ( ) of the particle.

◆ greaterPtFE()

bool met::METAssociator::greaterPtFE ( const xAOD::FlowElement * part1,
const xAOD::FlowElement * part2 )
inlinestaticprotectedinherited

Definition at line 172 of file METAssociator.h.

172 {
173 if (!(part1->isCharged()) && part2->isCharged()) return false;
174 if (part1->isCharged() && !(part2->isCharged())) return true;
175 return part1->pt() > part2->pt();
176 }
virtual double pt() const override

◆ greaterPtPFO()

bool met::METAssociator::greaterPtPFO ( const xAOD::PFO * part1,
const xAOD::PFO * part2 )
inlinestaticprotectedinherited

Definition at line 166 of file METAssociator.h.

166 {
167 if (part1->charge()==0 && part2->charge()!=0) return false;
168 if (part1->charge()!=0 && part2->charge()==0) return true;
169 if (part1->charge()==0 && part2->charge()==0) return part1->ptEM()>part2->ptEM();
170 return part1->pt()>part2->pt();
171 }
virtual double ptEM() const
get EM scale pt
Definition PFO_v1.cxx:204
float charge() const
get charge of PFO
virtual double pt() const
The transverse momentum ( ) of the particle.
Definition PFO_v1.cxx:52

◆ initialize()

StatusCode met::METTruthAssociator::initialize ( void )
virtual

Dummy implementation of the initialisation function.

It's here to allow the dual-use tools to skip defining an initialisation function. Since many are doing so...

Reimplemented from met::METAssociator.

Definition at line 57 of file METTruthAssociator.cxx.

58 {
60 ATH_MSG_VERBOSE ("Initializing " << name() << "...");
61 //initialise ReadHandleKeys
62 ATH_CHECK( m_recoElKey.initialize());
63 ATH_CHECK( m_recoJetKey.initialize());
64 ATH_CHECK( m_recoMuKey.initialize());
65 ATH_CHECK( m_recoGamKey.initialize());
66 ATH_CHECK( m_recoTauKey.initialize());
67 ATH_CHECK( m_truthEventKey.initialize());
68
69 return StatusCode::SUCCESS;
70 }
virtual StatusCode initialize() override
Dummy implementation of the initialisation function.

◆ inputHandles()

virtual std::vector< Gaudi::DataHandle * > AthCommonDataStore< AthCommonMsg< AlgTool > >::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.

◆ isGoodEoverP()

bool met::METAssociator::isGoodEoverP ( const xAOD::TrackParticle * trk) const
protectedinherited

Definition at line 362 of file METAssociator.cxx.

363 {
364
365 if( (fabs(trk->eta())<1.5 && trk->pt()>m_cenTrackPtThr) ||
366 (fabs(trk->eta())>=1.5 && trk->pt()>m_forTrackPtThr) ) {
367
368 // Get relative error on qoverp
369 float Rerr = Amg::error(trk->definingParametersCovMatrix(),4)/fabs(trk->qOverP());
370 ATH_MSG_VERBOSE( "Track momentum error (%): " << Rerr*100 );
371
372 // first compute track and calo isolation variables
373 float ptcone20 = 0., isolfrac = 0., etcone10 = 0., EoverP = 0.;
374 // ptcone
375 TrackIsolation trkIsoResult;
376 std::vector<Iso::IsolationType> trkIsoCones;
377 trkIsoCones.push_back(xAOD::Iso::IsolationType::ptcone20);
378 xAOD::TrackCorrection trkIsoCorr;
380 m_trkIsolationTool->trackIsolation(trkIsoResult,
381 *trk,
382 trkIsoCones,
383 trkIsoCorr);
384 ptcone20 = !trkIsoResult.ptcones.empty() ? trkIsoResult.ptcones[0] : 0;
385 isolfrac = ptcone20/trk->pt();
386 // etcone
387 CaloIsolation caloIsoResult;
388 std::vector<Iso::IsolationType> caloIsoCones;
389 // We can't actually configure the tool to give etcone10, so instead we have to compute etcone20,
390 // applying the core cone correction.
391 // Then, we retrieve the correction value, which is etcone10, rather than the isolation value
392 caloIsoCones.push_back(xAOD::Iso::IsolationType::etcone20);
393 xAOD::CaloCorrection caloIsoCorr_coreCone;
394 caloIsoCorr_coreCone.calobitset.set(xAOD::Iso::IsolationCaloCorrection::coreCone); // this is etcone10
395 m_caloIsolationTool->caloTopoClusterIsolation(caloIsoResult,
396 *trk,
397 caloIsoCones,
398 caloIsoCorr_coreCone);
399 if(!caloIsoResult.etcones.empty()) {
400 // retrieve the correction value for the core cone
402 } else {
403 ATH_MSG_WARNING("isGoodEoverP: Failed to retrieve the isolation core correction (etcone10)! Setting etcone10=0");
404 etcone10 = 0.;
405 }
406 EoverP = etcone10/trk->pt();
408 ATH_MSG_VERBOSE( "Track isolation fraction: " << isolfrac );
409 ATH_MSG_VERBOSE( "Track E/P = " << EoverP );
410
411 if(isolfrac<0.1) {
412 // isolated track cuts
413 if(Rerr>0.4) return false;
414 else if (EoverP<0.65 && ((EoverP>0.1 && Rerr>0.05) || Rerr>0.1)) return false;
415 } else {
416 // non-isolated track cuts
417 float trkptsum = ptcone20+trk->pt();
418 if(etcone10/trkptsum<0.6 && trk->pt()/trkptsum>0.6) return false;
419 }
420 }
421 return true;
422 }
Gaudi::Property< double > m_forTrackPtThr
Gaudi::Property< double > m_cenTrackPtThr
ToolHandle< xAOD::ICaloTopoClusterIsolationTool > m_caloIsolationTool
ToolHandle< xAOD::ITrackIsolationTool > m_trkIsolationTool
const ParametersCovMatrix_t definingParametersCovMatrix() const
Returns the 5x5 symmetric matrix containing the defining parameters covariance matrix.
float qOverP() const
Returns the parameter.
virtual double pt() const override final
The transverse momentum ( ) of the particle.
virtual double eta() const override final
The pseudorapidity ( ) of the particle.
double error(const Amg::MatrixX &mat, int index)
return diagonal error of the matrix caller should ensure the matrix is symmetric and the index is in ...
@ TrackIsolation
tracker isolation (ptcone30)
@ etcone20
Calorimeter isolation.
@ ptcone20
Track isolation.
setRcore setEtHad setFside pt
Iso::IsolationCaloCorrectionBitset calobitset
Iso::IsolationTrackCorrectionBitset trackbitset

◆ msg()

MsgStream & AthCommonMsg< AlgTool >::msg ( ) const
inlineinherited

Definition at line 24 of file AthCommonMsg.h.

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

◆ msg_level_name()

const std::string & asg::AsgTool::msg_level_name ( ) const
inherited

A deprecated function for getting the message level's name.

Instead of using this, weirdly named function, user code should get the string name of the current minimum message level (in case they really need it...), with:

MSG::name( msg().level() )

This function's name doesn't follow the ATLAS coding rules, and as such will be removed in the not too distant future.

Returns
The string name of the current minimum message level that's printed

Definition at line 101 of file AsgTool.cxx.

101 {
102
103 return MSG::name( msg().level() );
104 }
MsgStream & msg() const
const std::string & name(Level lvl)
Convenience function for translating message levels to strings.
Definition MsgLevel.cxx:19

◆ msgLvl()

bool AthCommonMsg< AlgTool >::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< AlgTool > >::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.

◆ print()

void asg::AsgTool::print ( ) const
virtualinherited

◆ 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< AlgTool > >::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< AlgTool > >::renounceArray ( SG::VarHandleKeyArray & handlesArray)
inlineprotectedinherited

remove all handles from I/O resolution

Definition at line 364 of file AthCommonDataStore.h.

364 {
366 }

◆ retrieveConstituents()

StatusCode met::METAssociator::retrieveConstituents ( met::METAssociator::ConstitHolder & constits,
const EventContext & ctx ) const
protectedinherited

Definition at line 144 of file METAssociator.cxx.

145 {
146 ATH_MSG_DEBUG ("In execute: " << name() << "...");
147 if (!m_skipconst || m_forcoll.value().empty()) { // FIXME m_clcollKey.value().empty() ???
148
149 SG::ReadHandle<IParticleContainer> topoclusterCont(m_clcollKey, ctx);
150 if (!topoclusterCont.isValid()) {
151 ATH_MSG_WARNING("Unable to retrieve topocluster container " << m_clcollKey.key() << " for overlap removal");
152 return StatusCode::FAILURE;
153 }
154 constits.tcCont=topoclusterCont.cptr();
155 ATH_MSG_DEBUG("Successfully retrieved topocluster collection");
156 } else {
157 std::string hybridname = "Etmiss";
158 hybridname += m_clcollKey.key();
159 hybridname += m_foreta.value();
160 hybridname += m_forcoll.value();
161
162 SG::ReadHandle<IParticleContainer> hybridCont(m_hybridContKey, ctx);
163 if( hybridCont.isValid()) {
164 constits.tcCont=hybridCont.cptr();
165 } else {
166 ATH_MSG_WARNING("Trying to do something currently unsupported- lets abort");
167 return StatusCode::FAILURE;
168 // Trying to do this using write handles (need to get some input here)
169 /*std::unique_ptr<ConstDataVector<IParticleContainer>> hybridCont = std::make_unique<ConstDataVector<IParticleContainer>>();
170 SG::WriteHandle<ConstDataVector<IParticleContainer>> hybridContHandle(hybridname, ctx);
171
172 StatusCode sc = hybridContHandle.record(std::make_unique<ConstDataVector<IParticleContainer>>(*hybridCont));
173
174 if (sc.isFailure()) {
175 ATH_MSG_WARNING("Unable to record container");
176 return StatusCode::SUCCESS;
177
178 }*/
179
180 /*SG::ReadHandle<IParticleContainer> centCont(m_clcoll, ctx);
181 if (!centCont.isValid()) {
182 ATH_MSG_WARNING("Unable to retrieve central container " << m_clcoll << " for overlap removal");
183 return StatusCode::FAILURE;
184 }
185
186 SG::ReadHandle<IParticleContainer> forCont(m_forcoll, ctx);
187 if (!forCont.isValid()) {
188 ATH_MSG_WARNING("Unable to retrieve forward container " << m_forcoll << " for overlap removal");
189 return StatusCode::FAILURE;
190 }
191 ConstDataVector<IParticleContainer> *hybridCont = new ConstDataVector<IParticleContainer>(SG::VIEW_ELEMENTS);
192
193 const IParticleContainer* centCont=0;
194 if( evtStore()->retrieve(centCont, m_clcoll).isFailure() ) {
195 ATH_MSG_WARNING("Unable to retrieve central container " << m_clcoll << " for overlap removal");
196 return StatusCode::FAILURE;
197 }
198
199 const IParticleContainer* forCont=0;
200 if( evtStore()->retrieve(forCont, m_forcoll).isFailure() ) {
201 ATH_MSG_WARNING("Unable to retrieve forward container " << m_forcoll << " for overlap removal");
202 return StatusCode::FAILURE;
203 }
204
205 for(const auto clus : *centCont) if (fabs(clus->eta())<m_foreta) hybridCont->push_back(clus);
206 for(const auto clus : *forCont) if (fabs(clus->eta())>=m_foreta) hybridCont->push_back(clus);
207 ATH_CHECK( evtStore()->record(hybridCont,hybridname));
208 constits.tcCont = hybridCont->asDataVector();
209 */
210 }
211 }
212
213 if( !m_useTracks){
214 //if you want to skip tracks, set the track collection empty manually
215 ATH_MSG_DEBUG("Skipping tracks");
216 }else{
217 SG::ReadHandle<VertexContainer> vxCont(m_pvcollKey, ctx);
218 if (!vxCont.isValid()) {
219 ATH_MSG_WARNING("Unable to retrieve primary vertex container " << m_pvcollKey.key());
220 //this is actually really bad. If it's empty that's okay
221 return StatusCode::FAILURE;
222 }
223
224 ATH_MSG_DEBUG("Successfully retrieved primary vertex container");
225 ATH_MSG_DEBUG("Container holds " << vxCont->size() << " vertices");
226
227 for(const auto *const vx : *vxCont) {
228 ATH_MSG_VERBOSE( "Testing vertex " << vx->index() );
229 if(vx->vertexType()==VxType::PriVtx)
230 {constits.pv = vx; break;}
231 }
232 if(!constits.pv) {
233 ATH_MSG_DEBUG("Failed to find primary vertex! Reject all tracks.");
234 } else {
235 ATH_MSG_VERBOSE("Primary vertex has z = " << constits.pv->z());
236 }
237
238 constits.trkCont=nullptr;
239 ATH_MSG_DEBUG("Retrieving Track collection " << m_trkcollKey.key());
240 SG::ReadHandle<TrackParticleContainer> trCont(m_trkcollKey, ctx);
241 if (!trCont.isValid()) {
242 ATH_MSG_WARNING("Unable to retrieve track particle container");
243 return StatusCode::FAILURE;
244 }
245 constits.trkCont=trCont.cptr();
246
247 if(m_pflow){
248 if(!m_fecollKey.key().empty()){
249 ATH_MSG_DEBUG("Retrieving FlowElement collection " << m_fecollKey.key());
250 constits.feCont = nullptr;
251 SG::ReadHandle<xAOD::FlowElementContainer> feCont(m_fecollKey, ctx);
252 if (!feCont.isValid()) {
253 ATH_MSG_ERROR("Unable to retrieve FlowElement container "<< m_fecollKey.key());
254 return StatusCode::FAILURE;
255 }
256 constits.feCont=feCont.cptr();
257 }
258 else{
259 ATH_MSG_DEBUG("Retrieving PFlow collection " << m_pfcollKey.key());
260 constits.pfoCont = nullptr;
261 SG::ReadHandle<PFOContainer> pfCont(m_pfcollKey, ctx);
262 if (!pfCont.isValid()) {
263 ATH_MSG_WARNING("Unable to PFlow object container");
264 return StatusCode::FAILURE;
265 }
266 constits.pfoCont=pfCont.cptr();
267 }
268 }//pflow
269 }//retrieve track/pfo containers
270
271 return StatusCode::SUCCESS;
272 }
#define ATH_MSG_ERROR(x)
SG::ReadHandleKey< xAOD::PFOContainer > m_pfcollKey
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_trkcollKey
SG::ReadHandleKey< xAOD::VertexContainer > m_pvcollKey
Gaudi::Property< std::string > m_forcoll
Gaudi::Property< bool > m_skipconst
Gaudi::Property< double > m_foreta
SG::ReadHandleKey< xAOD::IParticleContainer > m_hybridContKey
SG::ReadHandleKey< xAOD::IParticleContainer > m_clcollKey
SG::ReadHandleKey< xAOD::FlowElementContainer > m_fecollKey
float z() const
Returns the z position.
@ PriVtx
Primary vertex.
const xAOD::IParticleContainer * tcCont
const xAOD::PFOContainer * pfoCont
const xAOD::TrackParticleContainer * trkCont

◆ sysInitialize()

virtual StatusCode AthCommonDataStore< AthCommonMsg< AlgTool > >::sysInitialize ( )
overridevirtualinherited

Perform system initialization for an algorithm.

We override this to declare all the elements of handle key arrays at the end of initialization. See comments on updateVHKA.

Reimplemented in asg::AsgMetadataTool, AthCheckedComponent< AthAlgTool >, AthCheckedComponent<::AthAlgTool >, and DerivationFramework::CfAthAlgTool.

◆ sysStart()

virtual StatusCode AthCommonDataStore< AthCommonMsg< AlgTool > >::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< AlgTool > >::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 }
std::vector< SG::VarHandleKeyArray * > m_vhka

Member Data Documentation

◆ m_caloIsolationTool

ToolHandle<xAOD::ICaloTopoClusterIsolationTool> met::METAssociator::m_caloIsolationTool {this, "CaloIsolationTool", ""}
protectedinherited

Definition at line 83 of file METAssociator.h.

83{this, "CaloIsolationTool", ""};

◆ m_cenTrackPtThr

Gaudi::Property<double> met::METAssociator::m_cenTrackPtThr {this, "CentralTrackPtThr", 30e+3}
protectedinherited

Definition at line 114 of file METAssociator.h.

114{this, "CentralTrackPtThr", 30e+3};

◆ m_chargedFELinksKey

Gaudi::Property<std::string> met::METAssociator::m_chargedFELinksKey {this, "ChargedFELinksKey", "chargedGlobalFELinks"}
protectedinherited

Definition at line 86 of file METAssociator.h.

86{this, "ChargedFELinksKey", "chargedGlobalFELinks"};

◆ m_chargedPFOLinksKey

Gaudi::Property<std::string> met::METAssociator::m_chargedPFOLinksKey {this, "ChargedPFOLinksKey", "chargedpfoLinks"}
protectedinherited

Definition at line 88 of file METAssociator.h.

88{this, "ChargedPFOLinksKey", "chargedpfoLinks"};

◆ m_clcollKey

SG::ReadHandleKey<xAOD::IParticleContainer> met::METAssociator::m_clcollKey {this,"ClusColl","CaloCalTopoClusters","Topo cluster Collection"}
protectedinherited

Definition at line 93 of file METAssociator.h.

93{this,"ClusColl","CaloCalTopoClusters","Topo cluster Collection"};

◆ m_cleanChargedPFO

Gaudi::Property<bool> met::METAssociator::m_cleanChargedPFO {this, "CleanCPFO", true}
protectedinherited

Definition at line 108 of file METAssociator.h.

108{this, "CleanCPFO", true};

◆ m_fecollKey

SG::ReadHandleKey<xAOD::FlowElementContainer> met::METAssociator::m_fecollKey {this,"FlowElementCollection","","FlowElement Collection (overrides PFO if not empty)"}
protectedinherited

Definition at line 96 of file METAssociator.h.

96{this,"FlowElementCollection","","FlowElement Collection (overrides PFO if not empty)"};

◆ m_forcoll

Gaudi::Property<std::string> met::METAssociator::m_forcoll {this, "ForwardColl", ""}
protectedinherited

Definition at line 111 of file METAssociator.h.

111{this, "ForwardColl", ""};

◆ m_foreta

Gaudi::Property<double> met::METAssociator::m_foreta {this, "ForwardDef", 2.5}
protectedinherited

Definition at line 112 of file METAssociator.h.

112{this, "ForwardDef", 2.5};

◆ m_forTrackPtThr

Gaudi::Property<double> met::METAssociator::m_forTrackPtThr {this, "ForwardTrackPtThr", 30e+3}
protectedinherited

Definition at line 115 of file METAssociator.h.

115{this, "ForwardTrackPtThr", 30e+3};

◆ m_hybridContKey

SG::ReadHandleKey<xAOD::IParticleContainer> met::METAssociator::m_hybridContKey {this,"HybridKey","","Hybrid Collection"}
protectedinherited

Definition at line 97 of file METAssociator.h.

97{this,"HybridKey","","Hybrid Collection"};

◆ m_neutralFELinksKey

Gaudi::Property<std::string> met::METAssociator::m_neutralFELinksKey {this, "NeutralFELinksKey", "neutralGlobalFELinks"}
protectedinherited

Definition at line 85 of file METAssociator.h.

85{this, "NeutralFELinksKey", "neutralGlobalFELinks"};

◆ m_neutralPFOLinksKey

Gaudi::Property<std::string> met::METAssociator::m_neutralPFOLinksKey {this, "NeutralPFOLinksKey", "neutralpfoLinks"}
protectedinherited

Definition at line 87 of file METAssociator.h.

87{this, "NeutralPFOLinksKey", "neutralpfoLinks"};

◆ m_pfcollKey

SG::ReadHandleKey<xAOD::PFOContainer> met::METAssociator::m_pfcollKey {this,"PFlowColl","","PFO Collection"}
protectedinherited

Definition at line 95 of file METAssociator.h.

95{this,"PFlowColl","","PFO Collection"};

◆ m_pflow

Gaudi::Property<bool> met::METAssociator::m_pflow {this, "PFlow", false}
protectedinherited

Definition at line 104 of file METAssociator.h.

104{this, "PFlow", false};

◆ m_pvcollKey

SG::ReadHandleKey<xAOD::VertexContainer> met::METAssociator::m_pvcollKey {this,"PrimVxColl","PrimaryVertices","Primary Vertex Collection"}
protectedinherited

Definition at line 92 of file METAssociator.h.

92{this,"PrimVxColl","PrimaryVertices","Primary Vertex Collection"};

◆ m_recoElKey

SG::ReadHandleKey<xAOD::ElectronContainer> met::METTruthAssociator::m_recoElKey {this,"RecoElKey","Electrons",""}
private

Definition at line 88 of file METTruthAssociator.h.

88{this,"RecoElKey","Electrons",""};

◆ m_recoGamKey

SG::ReadHandleKey<xAOD::PhotonContainer> met::METTruthAssociator::m_recoGamKey {this,"RecoGamKey","Photons",""}
private

Definition at line 89 of file METTruthAssociator.h.

89{this,"RecoGamKey","Photons",""};

◆ m_recoil

Gaudi::Property<bool> met::METAssociator::m_recoil {this, "HRecoil", false, ""}
protectedinherited

Definition at line 102 of file METAssociator.h.

102{this, "HRecoil", false, ""};

◆ m_recoJetKey

SG::ReadHandleKey<xAOD::JetContainer> met::METTruthAssociator::m_recoJetKey {this,"RecoJetKey","",""}
private

Definition at line 92 of file METTruthAssociator.h.

92{this,"RecoJetKey","",""};

◆ m_recoMuKey

SG::ReadHandleKey<xAOD::MuonContainer> met::METTruthAssociator::m_recoMuKey {this,"RecoMuKey","Muons",""}
private

Definition at line 91 of file METTruthAssociator.h.

91{this,"RecoMuKey","Muons",""};

◆ m_recoTauKey

SG::ReadHandleKey<xAOD::TauJetContainer> met::METTruthAssociator::m_recoTauKey {this,"RecoTauKey","TauJets",""}
private

Definition at line 90 of file METTruthAssociator.h.

90{this,"RecoTauKey","TauJets",""};

◆ m_skipconst

Gaudi::Property<bool> met::METAssociator::m_skipconst {this, "IgnoreJetConst", false}
protectedinherited

Definition at line 110 of file METAssociator.h.

110{this, "IgnoreJetConst", false};

◆ m_trkcollKey

SG::ReadHandleKey<xAOD::TrackParticleContainer> met::METAssociator::m_trkcollKey {this,"TrkColl","InDetTrackParticles","Track particle Collection"}
protectedinherited

Definition at line 94 of file METAssociator.h.

94{this,"TrkColl","InDetTrackParticles","Track particle Collection"};

◆ m_trkIsolationTool

ToolHandle<xAOD::ITrackIsolationTool> met::METAssociator::m_trkIsolationTool {this, "TrackIsolationTool", ""}
protectedinherited

Definition at line 82 of file METAssociator.h.

82{this, "TrackIsolationTool", ""};

◆ m_trkseltool

ToolHandle<InDet::IInDetTrackSelectionTool> met::METAssociator::m_trkseltool {this, "TrackSelectorTool", ""}
protectedinherited

Definition at line 81 of file METAssociator.h.

81{this, "TrackSelectorTool", ""};

◆ m_truthEventKey

SG::ReadHandleKey<xAOD::TruthEventContainer> met::METTruthAssociator::m_truthEventKey {this,"TruthEventKey","TruthEvents",""}
private

Definition at line 93 of file METTruthAssociator.h.

93{this,"TruthEventKey","TruthEvents",""};

◆ m_UEcorrPtDecorKey

SG::WriteDecorHandleKey<xAOD::IParticleContainer> met::METAssociator::m_UEcorrPtDecorKey {this, "UEcorrPtDecorKey", "", "UE correction for each lepton"}
protectedinherited

Definition at line 99 of file METAssociator.h.

99{this, "UEcorrPtDecorKey", "", "UE correction for each lepton"};

◆ m_useFELinks

Gaudi::Property<bool> met::METAssociator::m_useFELinks {this, "UseFELinks", false}
protectedinherited

Definition at line 90 of file METAssociator.h.

90{this, "UseFELinks", false};

◆ m_useModifiedClus

Gaudi::Property<bool> met::METAssociator::m_useModifiedClus {this, "UseModifiedClus", false}
protectedinherited

Definition at line 107 of file METAssociator.h.

107{this, "UseModifiedClus", false};

◆ m_usePFOLinks

Gaudi::Property<bool> met::METAssociator::m_usePFOLinks {this, "UsePFOLinks", false}
protectedinherited

Definition at line 89 of file METAssociator.h.

89{this, "UsePFOLinks", false};

◆ m_useRapidity

Gaudi::Property<bool> met::METAssociator::m_useRapidity {this, "UseRapidity", false}
protectedinherited

Definition at line 106 of file METAssociator.h.

106{this, "UseRapidity", false};

◆ m_useTracks

Gaudi::Property<bool> met::METAssociator::m_useTracks {this, "UseTracks", true}
protectedinherited

Definition at line 105 of file METAssociator.h.

105{this, "UseTracks", true};

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