ATLAS Offline Software
Reconstruction
PFlow
PFlowUtils
Root
FEElectronHelper.cxx
Go to the documentation of this file.
1
#include "
PFlowUtils/FEElectronHelper.h
"
2
3
FEElectronHelper::FEElectronHelper
() : AsgMessaging(
"FEElectronHelper"
) {};
4
5
bool
FEElectronHelper::checkElectronLinks
(
const
std::vector <
ElementLink< xAOD::ElectronContainer >
>& FE_ElectronLinks,
const
std::string& qualityString)
const
{
6
7
for
(
const
ElementLink<xAOD::ElectronContainer>
&
ElectronLink
: FE_ElectronLinks){
8
if
(!
ElectronLink
.
isValid
()){
9
ATH_MSG_WARNING
(
"JetPFlowSelectionAlg encountered an invalid electron element link. Skipping. "
);
10
continue
;
11
}
12
13
const
xAOD::Electron
*
electron
= *
ElectronLink
;
14
bool
passElectronID =
false
;
15
bool
gotID =
electron
->passSelection(passElectronID, qualityString);
16
if
(!gotID) {
17
ATH_MSG_WARNING
(
"Could not get Electron ID"
);
18
continue
;
19
}
20
21
if
(
electron
->pt() > 10000 && passElectronID){
22
return
true
;
23
}
24
}
25
return
false
;
26
}
ElectronLink
ElementLink< xAOD::ElectronContainer > ElectronLink
Definition:
BPhysHelper.cxx:23
ElementLink::isValid
bool isValid() const
Test to see if the link can be dereferenced.
FEElectronHelper::FEElectronHelper
FEElectronHelper()
Definition:
FEElectronHelper.cxx:3
ElementLink
ElementLink implementation for ROOT usage.
Definition:
AthLinks/ElementLink.h:121
FEElectronHelper::checkElectronLinks
bool checkElectronLinks(const std::vector< ElementLink< xAOD::ElectronContainer > > &FE_ElectronLinks, const std::string &qualityString) const
Definition:
FEElectronHelper.cxx:5
xAOD::Electron_v1
Definition:
Electron_v1.h:34
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x)
Definition:
AthMsgStreamMacros.h:32
xAOD::EgammaParameters::electron
@ electron
Definition:
EgammaEnums.h:18
FEElectronHelper.h
Generated on Thu Nov 7 2024 21:15:14 for ATLAS Offline Software by
1.8.18