|
ATLAS Offline Software
|
#include <METTruthAssociator.h>
|
| METTruthAssociator (const std::string &name) |
|
| ~METTruthAssociator () |
|
StatusCode | initialize () |
| Dummy implementation of the initialisation function. More...
|
|
StatusCode | finalize () |
|
virtual StatusCode | execute (xAOD::MissingETContainer *metCont, xAOD::MissingETAssociationMap *metMap) const override |
|
virtual void | print () const |
| Print the state of the tool. More...
|
|
ServiceHandle< StoreGateSvc > & | evtStore () |
| The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
const ServiceHandle< StoreGateSvc > & | evtStore () const |
| The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
const ServiceHandle< StoreGateSvc > & | detStore () const |
| The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
virtual StatusCode | sysInitialize () override |
| Perform system initialization for an algorithm. More...
|
|
virtual StatusCode | sysStart () override |
| Handle START transition. More...
|
|
virtual std::vector< Gaudi::DataHandle * > | inputHandles () const override |
| Return this algorithm's input handles. More...
|
|
virtual std::vector< Gaudi::DataHandle * > | outputHandles () const override |
| Return this algorithm's output handles. More...
|
|
Gaudi::Details::PropertyBase & | declareProperty (Gaudi::Property< T > &t) |
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleKey &hndl, const std::string &doc, const SG::VarHandleKeyType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleBase &hndl, const std::string &doc, const SG::VarHandleType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleKeyArray &hndArr, const std::string &doc, const SG::VarHandleKeyArrayType &) |
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, T &property, const std::string &doc, const SG::NotHandleType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, T &property, const std::string &doc="none") |
| Declare a new Gaudi property. More...
|
|
void | updateVHKA (Gaudi::Details::PropertyBase &) |
|
MsgStream & | msg () const |
|
MsgStream & | msg (const MSG::Level lvl) const |
|
bool | msgLvl (const MSG::Level lvl) const |
|
|
StatusCode | fillAssocMap (xAOD::MissingETAssociationMap *metMap, const xAOD::IParticleContainer *hardObjs) const final |
|
StatusCode | executeTool (xAOD::MissingETContainer *metCont, xAOD::MissingETAssociationMap *metMap) const |
|
StatusCode | associateJets (xAOD::MissingETAssociationMap *metMap) const |
|
StatusCode | extractTruthParticles (const xAOD::IParticle *obj, std::vector< const xAOD::IParticle * > &truthlist) const |
|
StatusCode | extractTruthFromElectron (const xAOD::IParticle *obj, std::vector< const xAOD::IParticle * > &truthlist) const |
|
StatusCode | extractTruthFromPhoton (const xAOD::IParticle *obj, std::vector< const xAOD::IParticle * > &truthlist) const |
|
StatusCode | extractTruthFromTau (const xAOD::IParticle *obj, std::vector< const xAOD::IParticle * > &truthlist) const |
|
StatusCode | computeSoftTerms (xAOD::MissingETContainer *metCont, xAOD::MissingETAssociationMap *metMap) const |
|
StatusCode | extractPFO (const xAOD::IParticle *, std::vector< const xAOD::IParticle * > &, const met::METAssociator::ConstitHolder &, std::map< const xAOD::IParticle *, MissingETBase::Types::constvec_t > &) const final |
|
StatusCode | extractFE (const xAOD::IParticle *, std::vector< const xAOD::IParticle * > &, const met::METAssociator::ConstitHolder &, std::map< const xAOD::IParticle *, MissingETBase::Types::constvec_t > &) 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 final |
|
StatusCode | retrieveConstituents (met::METAssociator::ConstitHolder &constits) const |
|
bool | acceptTrack (const xAOD::TrackParticle *trk, const xAOD::Vertex *pv) const |
|
bool | isGoodEoverP (const xAOD::TrackParticle *trk) const |
|
void | renounceArray (SG::VarHandleKeyArray &handlesArray) |
| remove all handles from I/O resolution More...
|
|
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. More...
|
|
|
ToolHandle< InDet::IInDetTrackSelectionTool > | m_trkseltool |
|
ToolHandle< xAOD::ITrackIsolationTool > | m_trkIsolationTool |
|
ToolHandle< xAOD::ICaloTopoClusterIsolationTool > | m_caloIsolationTool |
|
std::string | m_neutralFELinksKey |
|
std::string | m_chargedFELinksKey |
|
std::string | m_neutralPFOLinksKey |
|
std::string | m_chargedPFOLinksKey |
|
bool | m_usePFOLinks |
|
bool | m_useFELinks |
|
SG::ReadHandleKey< xAOD::VertexContainer > | m_pvcollKey {this,"PrimVxColl","PrimaryVertices","Primary Vertex Collection"} |
|
SG::ReadHandleKey< xAOD::IParticleContainer > | m_clcollKey {this,"ClusColl","CaloCalTopoClusters","Topo cluster Collection"} |
|
SG::ReadHandleKey< xAOD::TrackParticleContainer > | m_trkcollKey {this,"TrkColl","InDetTrackParticles","Track particle Collection"} |
|
SG::ReadHandleKey< xAOD::PFOContainer > | m_pfcollKey {this,"PFlowColl","","PFO Collection"} |
|
SG::ReadHandleKey< xAOD::FlowElementContainer > | m_fecollKey {this,"FlowElementCollection","","FlowElement Collection (overrides PFO if not empty)"} |
|
SG::ReadHandleKey< xAOD::IParticleContainer > | m_hybridContKey {this,"HybridKey","","Hybrid Collection"} |
|
bool | m_pflow |
|
bool | m_useTracks |
|
bool | m_useRapidity |
|
bool | m_useIsolationTools = false |
|
bool | m_useModifiedClus |
|
bool | m_weight_charged_pfo = false |
|
bool | m_cleanChargedPFO |
|
bool | m_skipconst |
|
std::string | m_forcoll |
|
double | m_foreta |
|
double | m_cenTrackPtThr |
|
double | m_forTrackPtThr |
|
|
SG::ReadHandleKey< xAOD::ElectronContainer > | m_recoElKey {this,"RecoElKey","Electrons",""} |
|
SG::ReadHandleKey< xAOD::PhotonContainer > | m_recoGamKey {this,"RecoGamKey","Photons",""} |
|
SG::ReadHandleKey< xAOD::TauJetContainer > | m_recoTauKey {this,"RecoTauKey","TauJets",""} |
|
SG::ReadHandleKey< xAOD::MuonContainer > | m_recoMuKey {this,"RecoMuKey","Muons",""} |
|
SG::ReadHandleKey< xAOD::JetContainer > | m_recoJetKey {this,"RecoJetKey","",""} |
|
SG::ReadHandleKey< xAOD::TruthEventContainer > | m_truthEventKey {this,"TruthEventKey","TruthEvents",""} |
|
StoreGateSvc_t | m_evtStore |
| Pointer to StoreGate (event store by default) More...
|
|
StoreGateSvc_t | m_detStore |
| Pointer to StoreGate (detector store by default) More...
|
|
std::vector< SG::VarHandleKeyArray * > | m_vhka |
|
bool | m_varHandleArraysDeclared |
|
Definition at line 26 of file METTruthAssociator.h.
◆ StoreGateSvc_t
◆ METTruthAssociator() [1/2]
met::METTruthAssociator::METTruthAssociator |
( |
const std::string & |
name | ) |
|
◆ ~METTruthAssociator()
met::METTruthAssociator::~METTruthAssociator |
( |
| ) |
|
|
default |
◆ METTruthAssociator() [2/2]
met::METTruthAssociator::METTruthAssociator |
( |
| ) |
|
|
private |
◆ acceptTrack()
◆ associateJets()
Definition at line 146 of file METTruthAssociator.cxx.
150 if (!jetCont.isValid()) {
152 return StatusCode::FAILURE;
157 std::vector<const IParticle*> chargedTruth;
158 std::vector<const IParticle*> jetTruth;
159 std::vector<ElementLink<IParticleContainer> > jetconst;
160 jetTruth.reserve(20);
161 for(
const auto *
const jet : *jetCont) {
166 if(!cacc_ghosttruth.isAvailable(*
jet)) {
169 for (
const auto&
el : cacc_ghosttruth(*
jet)) {
173 if(fabs(truth->
charge())>1
e-6) {
177 jetconst.push_back(
el);
178 jetTruth.push_back(truth);
196 return StatusCode::SUCCESS;
◆ computeSoftTerms()
Definition at line 199 of file METTruthAssociator.cxx.
208 metCont->
push_back(metCoreChargedCentralTruth);
214 if (!truthEventCont.isValid()) {
216 return StatusCode::FAILURE;
220 const TruthEvent* hsevent = truthEventCont->front();
225 truthParticleCont.push_back(
tp);
232 <<
" unique truth particles.");
233 for(
const auto *
const part : *uniqueTruth) {
239 if(truth->
pt()<1 || fabs(truth->
eta())>5)
continue;
241 <<
" status " << truth->
status()
242 <<
" pdgId " << truth->
pdgId() );
243 if(fabs(truth->
charge())>1
e-6) {
245 if(fabs(truth->
eta())<2.5) *metCoreChargedCentralTruth += truth;
246 *metCoreChargedTruth += truth;
248 if(!truth->
isMuon()) *metCoreAllTruth += truth;
251 return StatusCode::SUCCESS;
◆ declareGaudiProperty() [1/4]
specialization for handling Gaudi::Property<SG::VarHandleKeyArray>
Definition at line 170 of file AthCommonDataStore.h.
175 hndl.documentation());
◆ declareGaudiProperty() [2/4]
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition at line 156 of file AthCommonDataStore.h.
161 hndl.documentation());
◆ declareGaudiProperty() [3/4]
specialization for handling Gaudi::Property<SG::VarHandleBase>
Definition at line 184 of file AthCommonDataStore.h.
189 hndl.documentation());
◆ declareGaudiProperty() [4/4]
◆ declareProperty() [1/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
hndl | Object holding the property value. |
doc | Documentation string for the property. |
This is the version for types that derive from SG::VarHandleBase
. The property value object is put on the input and output lists as appropriate; then we forward to the base class.
Definition at line 245 of file AthCommonDataStore.h.
250 this->declare(hndl.
vhKey());
251 hndl.
vhKey().setOwner(
this);
253 return PBASE::declareProperty(
name,hndl,
doc);
◆ declareProperty() [2/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
hndl | Object holding the property value. |
doc | Documentation string for the property. |
This is the version for types that derive from SG::VarHandleKey
. The property value object is put on the input and output lists as appropriate; then we forward to the base class.
Definition at line 221 of file AthCommonDataStore.h.
229 return PBASE::declareProperty(
name,hndl,
doc);
◆ declareProperty() [3/6]
◆ declareProperty() [4/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
property | Object holding the property value. |
doc | Documentation string for the property. |
This is the generic version, for types that do not derive from SG::VarHandleKey
. It just forwards to the base class version of declareProperty
.
Definition at line 333 of file AthCommonDataStore.h.
338 return PBASE::declareProperty(
name, property,
doc);
◆ declareProperty() [5/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
property | Object holding the property value. |
doc | Documentation string for the property. |
This dispatches to either the generic declareProperty
or the one for VarHandle/Key/KeyArray.
Definition at line 352 of file AthCommonDataStore.h.
◆ declareProperty() [6/6]
◆ detStore()
◆ evtStore() [1/2]
◆ evtStore() [2/2]
◆ execute()
Implements IMETAssocToolBase.
Definition at line 141 of file METAssociator.cxx.
145 ATH_MSG_WARNING(
"Invalid pointer to MissingETContainer supplied! Abort.");
146 return StatusCode::FAILURE;
150 ATH_MSG_WARNING(
"Invalid pointer to MissingETAssociationMap supplied! Abort.");
151 return StatusCode::FAILURE;
154 ATH_MSG_WARNING(
"Attempting to build PFlow MET without a track collection.");
155 return StatusCode::FAILURE;
◆ executeTool()
Implements met::METAssociator.
Definition at line 82 of file METTruthAssociator.cxx.
89 if (!electronCont.isValid()) {
91 return StatusCode::FAILURE;
95 if(
fillAssocMap(metMap,electronCont.cptr()).isFailure()) {
97 return StatusCode::FAILURE;
101 if (!photonCont.isValid()) {
103 return StatusCode::FAILURE;
107 if(
fillAssocMap(metMap,photonCont.cptr()).isFailure()) {
109 return StatusCode::FAILURE;
113 if (!muonCont.isValid()) {
115 return StatusCode::FAILURE;
121 return StatusCode::FAILURE;
125 if (!tauCont.isValid()) {
127 return StatusCode::FAILURE;
132 return StatusCode::FAILURE;
137 return StatusCode::FAILURE;
140 return StatusCode::SUCCESS;
◆ extractFE()
|
inlinefinalprotectedvirtual |
◆ extractPFO()
|
inlinefinalprotectedvirtual |
◆ extractTopoClusters()
|
inlinefinalprotectedvirtual |
◆ extractTracks()
|
inlinefinalprotectedvirtual |
◆ extractTruthFromElectron()
Definition at line 276 of file METTruthAssociator.cxx.
283 truthlist.push_back(eltruth);
294 if (!truthEventCont.isValid()) {
296 return StatusCode::SUCCESS;
301 const TruthEvent* hsevent = truthEventCont->front();
306 truthParticleCont.push_back(
tp);
310 for(
const auto truth : truthParticleCont) {
311 if(truth->pt()<1)
continue;
313 if(!truth->isGenStable())
continue;
316 float etasize = 0.025/2;
317 float phisize = 0.025/2;
318 bool isSuperCluster =
false;
320 switch(
el->caloCluster()->clusterSize()) {
322 etasize *= 5; phisize *=5;
325 etasize *= 3; phisize *=5;
328 etasize *= 3; phisize *=7;
331 isSuperCluster =
true;
336 ATH_MSG_WARNING(
"Unexpected electron cluster size " <<
el->caloCluster()->clusterSize() <<
" received!");
339 float deltaEta(fabs(truth->eta()-
el->caloCluster()->eta()));
340 float deltaPhi(fabs(truth->p4().DeltaPhi(
el->caloCluster()->p4())));
344 for(
const auto& truthobj : truthlist) {
346 if(truth==truth2) {
skip =
true;
break;}
349 truthlist.push_back(truth);
354 return StatusCode::SUCCESS;
◆ extractTruthFromMuon()
Definition at line 454 of file METTruthAssociator.cxx.
461 if(truth && truth->isGenStable())
462 truthlist.push_back(truth);
463 return StatusCode::SUCCESS;
◆ extractTruthFromPhoton()
Definition at line 357 of file METTruthAssociator.cxx.
364 truthlist.push_back(phtruth);
388 if (!truthEventCont.isValid()) {
390 return StatusCode::SUCCESS;
394 const TruthEvent* hsevent = truthEventCont->front();
399 truthParticleCont.push_back(
tp);
403 for(
const auto truth : truthParticleCont) {
404 if(!truth || truth->pt()<1)
continue;
406 if(!truth->isGenStable())
continue;
409 float etasize(0.025/2);
410 float phisize(0.025/2);
411 bool isSuperCluster =
false;
416 etasize *= 5; phisize *=5;
421 etasize *= 3; phisize *=5;
425 etasize *= 3; phisize *=7;
428 isSuperCluster =
true;
441 for(
const auto& truthobj : truthlist) {
443 if(truth==truth2) {
skip =
true;
break;}
446 truthlist.push_back(truth);
451 return StatusCode::SUCCESS;
◆ extractTruthFromTau()
Definition at line 466 of file METTruthAssociator.cxx.
471 std::vector<ElementLink<IParticleContainer> > jetconst = cacc_ghosttruth(*seedjet);
472 for(
const auto& truth : jetconst) {
477 truthlist.push_back(*truth);
480 return StatusCode::SUCCESS;
◆ extractTruthParticles()
◆ extraDeps_update_handler()
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()
Reimplemented from met::METAssociator.
Definition at line 486 of file METTruthAssociator.cxx.
490 std::vector<const IParticle*> constlist;
491 constlist.reserve(20);
492 std::vector<const IParticle*> hardObjs_tmp;
493 for(
const auto *
const obj : *hardObjs) {
494 hardObjs_tmp.push_back(
obj);
498 for(
const auto&
obj : hardObjs_tmp) {
507 for(
const auto& truthobj : constlist) {
510 <<
" status " << truth->
status()
511 <<
" pdgId " << truth->
pdgId()
512 <<
" charge " << truth->
charge());
526 return StatusCode::SUCCESS;
◆ finalize()
StatusCode met::METTruthAssociator::finalize |
( |
| ) |
|
◆ getKey()
Get the (hashed) key of an object that is in the event store.
This is a bit of a special one. StoreGateSvc
and xAOD::TEvent
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
-
ptr | The 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.
121 #ifdef XAOD_STANDALONE
127 return (
proxy ==
nullptr ? 0 :
proxy->sgkey() );
128 #endif // XAOD_STANDALONE
◆ 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::TEvent
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
-
ptr | The 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.
108 #ifdef XAOD_STANDALONE
114 static const std::string
dummy =
"";
116 #endif // XAOD_STANDALONE
◆ getProperty()
template<class T >
const T* asg::AsgTool::getProperty |
( |
const std::string & |
name | ) |
const |
|
inherited |
Get one of the tool's properties.
◆ greaterPt()
|
inlinestaticprotectedinherited |
◆ greaterPtFE()
|
inlinestaticprotectedinherited |
◆ greaterPtPFO()
|
inlinestaticprotectedinherited |
◆ initialize()
StatusCode met::METTruthAssociator::initialize |
( |
| ) |
|
|
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 59 of file METTruthAssociator.cxx.
71 return StatusCode::SUCCESS;
◆ inputHandles()
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()
Definition at line 367 of file METAssociator.cxx.
381 std::vector<Iso::IsolationType> trkIsoCones;
393 std::vector<Iso::IsolationType> caloIsoCones;
403 caloIsoCorr_coreCone);
404 if(!caloIsoResult.
etcones.empty()) {
408 ATH_MSG_WARNING(
"isGoodEoverP: Failed to retrieve the isolation core correction (etcone10)! Setting etcone10=0");
418 if(Rerr>0.4)
return false;
419 else if (
EoverP<0.65 && ((
EoverP>0.1 && Rerr>0.05) || Rerr>0.1))
return false;
423 if(
etcone10/trkptsum<0.6 && trk->
pt()/trkptsum>0.6)
return false;
◆ msg() [1/2]
◆ msg() [2/2]
◆ 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.
◆ msgLvl()
◆ outputHandles()
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 |
Print the state of the tool.
Implements asg::IAsgTool.
Reimplemented in JetRecTool, JetFinder, JetModifiedMassDrop, JetFromPseudojet, JetReclusterer, JetReclusteringTool, JetTruthLabelingTool, JetPileupLabelingTool, HI::HIPileupTool, JetDumper, JetBottomUpSoftDrop, JetRecursiveSoftDrop, JetSoftDrop, JetConstituentsRetriever, JetSubStructureMomentToolsBase, JetSplitter, JetToolRunner, JetPruner, JetPseudojetRetriever, JetTrimmer, AsgHelloTool, and KtDeltaRTool.
Definition at line 131 of file AsgTool.cxx.
◆ renounce()
◆ renounceArray()
◆ retrieveConstituents()
Definition at line 161 of file METAssociator.cxx.
167 if (!topoclusterCont.isValid()) {
169 return StatusCode::FAILURE;
171 constits.
tcCont=topoclusterCont.cptr();
172 ATH_MSG_DEBUG(
"Successfully retrieved topocluster collection");
174 std::string hybridname =
"Etmiss";
180 if( hybridCont.isValid()) {
181 constits.
tcCont=hybridCont.cptr();
183 ATH_MSG_WARNING(
"Trying to do something currently unsupported- lets abort");
184 return StatusCode::FAILURE;
235 if (!vxCont.isValid()) {
238 return StatusCode::FAILURE;
241 ATH_MSG_DEBUG(
"Successfully retrieved primary vertex container");
242 ATH_MSG_DEBUG(
"Container holds " << vxCont->size() <<
" vertices");
244 for(
const auto *
const vx : *vxCont) {
247 {constits.
pv = vx;
break;}
250 ATH_MSG_DEBUG(
"Failed to find primary vertex! Reject all tracks.");
258 if (!trCont.isValid()) {
260 return StatusCode::FAILURE;
262 constits.
trkCont=trCont.cptr();
267 constits.
feCont =
nullptr;
269 if (!feCont.isValid()) {
271 return StatusCode::FAILURE;
273 constits.
feCont=feCont.cptr();
279 if (!pfCont.isValid()) {
281 return StatusCode::FAILURE;
283 constits.
pfoCont=pfCont.cptr();
288 return StatusCode::SUCCESS;
◆ sysInitialize()
◆ sysStart()
Handle START transition.
We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.
◆ updateVHKA()
◆ m_caloIsolationTool
◆ m_cenTrackPtThr
double met::METAssociator::m_cenTrackPtThr |
|
protectedinherited |
◆ m_chargedFELinksKey
std::string met::METAssociator::m_chargedFELinksKey |
|
protectedinherited |
◆ m_chargedPFOLinksKey
std::string met::METAssociator::m_chargedPFOLinksKey |
|
protectedinherited |
◆ m_clcollKey
◆ m_cleanChargedPFO
bool met::METAssociator::m_cleanChargedPFO |
|
protectedinherited |
◆ m_detStore
◆ m_evtStore
◆ m_fecollKey
◆ m_forcoll
std::string met::METAssociator::m_forcoll |
|
protectedinherited |
◆ m_foreta
double met::METAssociator::m_foreta |
|
protectedinherited |
◆ m_forTrackPtThr
double met::METAssociator::m_forTrackPtThr |
|
protectedinherited |
◆ m_hybridContKey
◆ m_neutralFELinksKey
std::string met::METAssociator::m_neutralFELinksKey |
|
protectedinherited |
◆ m_neutralPFOLinksKey
std::string met::METAssociator::m_neutralPFOLinksKey |
|
protectedinherited |
◆ m_pfcollKey
◆ m_pflow
bool met::METAssociator::m_pflow |
|
protectedinherited |
◆ m_pvcollKey
◆ m_recoElKey
◆ m_recoGamKey
◆ m_recoJetKey
◆ m_recoMuKey
◆ m_recoTauKey
◆ m_skipconst
bool met::METAssociator::m_skipconst |
|
protectedinherited |
◆ m_trkcollKey
◆ m_trkIsolationTool
◆ m_trkseltool
◆ m_truthEventKey
◆ m_useFELinks
bool met::METAssociator::m_useFELinks |
|
protectedinherited |
◆ m_useIsolationTools
bool met::METAssociator::m_useIsolationTools = false |
|
protectedinherited |
◆ m_useModifiedClus
bool met::METAssociator::m_useModifiedClus |
|
protectedinherited |
◆ m_usePFOLinks
bool met::METAssociator::m_usePFOLinks |
|
protectedinherited |
◆ m_useRapidity
bool met::METAssociator::m_useRapidity |
|
protectedinherited |
◆ m_useTracks
bool met::METAssociator::m_useTracks |
|
protectedinherited |
◆ m_varHandleArraysDeclared
◆ m_vhka
◆ m_weight_charged_pfo
bool met::METAssociator::m_weight_charged_pfo = false |
|
protectedinherited |
The documentation for this class was generated from the following files:
@ SECOND_R
Second Moment in .
virtual double pt() const override final
The transverse momentum ( ) of the particle.
StatusCode fillAssocMap(xAOD::MissingETAssociationMap *metMap, const xAOD::IParticleContainer *hardObjs) const final
Electron_v1 Electron
Definition of the current "egamma version".
SG::ReadHandleKey< xAOD::PhotonContainer > m_recoGamKey
@ TruthParticle
Truth particle based.
double getMomentValue(MomentType type) const
Retrieve individual moment - no check for existance! Returns -999 on error.
@ coreEnergy
energy stored for this correction
Basic data class defines behavior for all Jet objects The Jet class is the principal data class for...
StatusCode extractTruthParticles(const xAOD::IParticle *obj, std::vector< const xAOD::IParticle * > &truthlist) const
@ VIEW_ELEMENTS
this data object is a view, it does not own its elmts
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
static bool addMiscAssociation(MissingETAssociationMap *pMap)
Add an association to hold objects not associated to any jet.
virtual double eta() const override final
The pseudorapidity ( ) of the particle.
@ coreTrackPtr
tracks pointer
setSAddress setEtaMS setDirPhiMS setDirZMS setBarrelRadius setEndcapAlpha setEndcapRadius setInterceptInner setEtaMap setEtaBin setIsTgcFailure setDeltaPt deltaPhi
const TruthParticle * truthParticle(size_t index) const
Get a pointer to one of the truth particles.
bool isGenStable() const
Check if this is generator stable particle.
Iso::IsolationTrackCorrectionBitset trackbitset
@ ptcone20
Track isolation.
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
@ Central
Indicator for MET contribution from the central region.
SG::ReadHandleKey< xAOD::JetContainer > m_recoJetKey
#define ATH_MSG_VERBOSE(x)
const std::string & key() const
Return the StoreGate ID for the referenced object.
StatusCode extractTruthFromElectron(const xAOD::IParticle *obj, std::vector< const xAOD::IParticle * > &truthlist) const
Vector sum of constituents for subtractive overlap removal.
SG::ReadHandleKey< xAOD::TruthEventContainer > m_truthEventKey
virtual void setOwner(IDataHandleHolder *o)=0
ClusterSize clusterSize() const
Get cluster size.
static Types::bitmask_t truthInt(Region reg=Region::FullAcceptance)
Standard bit pattern indicating effective true MET.
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.
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
size_t findIndex(const Jet *pJet) const
const xAOD::TruthParticle * getTruthParticle(const xAOD::IParticle *, bool debug=false)
return the truthParticle associated to the given IParticle (if any)
double deltaEta(const I4Momentum &p1, const I4Momentum &p2)
Computes efficiently .
virtual double eta() const
The pseudorapidity ( ) of the particle.
@ ID
Indicator for MET terms reconstructed from inner detector (ID) tracks alone.
double deltaR(double rapidity1, double phi1, double rapidity2, double phi2)
from bare bare rapidity,phi
@ etcone20
Calorimeter isolation.
std::map< Iso::IsolationCaloCorrection, std::map< Iso::IsolationCorrectionParameter, float > > coreCorrections
Class describing a truth particle in the MC record.
const IParticleContainer * getUniqueSignals(const IParticleContainer *signals, MissingETBase::UsageHandler::Policy p=MissingETBase::UsageHandler::TrackCluster) const
Extract a container of constituents that are not in jets.
Class describing a tau jet.
const JetLink_t & jetLink() const
const xAOD::CaloCluster * caloCluster(size_t index=0) const
Pointer to the xAOD::CaloCluster/s that define the electron candidate.
@ Calo
Indicator for MET terms reconstructed from calorimeter signals alone.
Class describing a signal truth event in the MC record.
const std::string & name(Level lvl)
Convenience function for translating message levels to strings.
SG::ReadHandleKey< xAOD::TauJetContainer > m_recoTauKey
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
float z() const
Returns the z position.
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
Athena::TPCnvVers::Old Athena::TPCnvVers::Old MissingET
virtual void renounce()=0
virtual FourMom_t p4() const
The full 4-momentum of the particle.
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
float qOverP() const
Returns the parameter.
const ParametersCovMatrix_t definingParametersCovMatrix() const
Returns the 5x5 symmetric matrix containing the defining parameters covariance matrix.
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 ...
std::vector< float > etcones
@ coreCone
core energy (in dR<0.1).
size_t nTruthParticles() const
Get the number of truth particles.
value_type push_back(value_type pElem)
Add an element to the end of the collection.
static bool add(MissingETComponentMap *pMap, const MissingET *pMET, MissingETBase::Types::bitmask_t sw=MissingETBase::Status::clearedStatus())
Adding a MissingET object to the map.
virtual double eta() const override final
The pseudorapidity ( ) of the particle.
static StatusCode extractTruthFromMuon(const xAOD::IParticle *obj, std::vector< const xAOD::IParticle * > &truthlist)
StatusCode extractTruthFromTau(const xAOD::IParticle *obj, std::vector< const xAOD::IParticle * > &truthlist) const
Photon_v1 Photon
Definition of the current "egamma version".
std::vector< float > ptcones
struct TBPatternUnitContext Muon
StatusCode associateJets(xAOD::MissingETAssociationMap *metMap) const
SG::ReadHandleKey< xAOD::ElectronContainer > m_recoElKey
int status() const
Status code.
void sort(typename std::reverse_iterator< DataModel_detail::iterator< DVL > > beg, typename std::reverse_iterator< DataModel_detail::iterator< DVL > > end, const Compare &comp)
Specialization of sort for DataVector/List.
#define ATH_MSG_WARNING(x)
DataVector adapter that acts like it holds const pointers.
float cpt() const
Returns .
bool isMuon() const
Whether the particle is a muon (or antimuon)
SG::ReadHandleKey< xAOD::MuonContainer > m_recoMuKey
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
virtual double pt() const override final
The transverse momentum ( ) of the particle.
StatusCode extractTruthFromPhoton(const xAOD::IParticle *obj, std::vector< const xAOD::IParticle * > &truthlist) const
@ Tau
The object is a tau (jet)
bool isInteracting(const T &p)
Identify if the particle with given PDG ID would not interact with the detector, i....
Class describing a TrackParticle.
bool isInDeltaR(const xAOD::IParticle &p1, const xAOD::IParticle &p2, double dR, bool useRapidity=true)
Check if 2 xAOD::IParticle are in a cone.
int pdgId() const
PDG ID code.
static Types::bitmask_t softEvent(Region reg=Region::FullAcceptance)
Standard MET term from reconstructed soft event.
size_type size() const noexcept
Returns the number of elements in the collection.
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
double charge() const
Physical charge.
Iso::IsolationCaloCorrectionBitset calobitset
StatusCode computeSoftTerms(xAOD::MissingETContainer *metCont, xAOD::MissingETAssociationMap *metMap) const