ATLAS Offline Software
Loading...
Searching...
No Matches
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
}
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x)
Definition
AthMsgStreamMacros.h:32
ElectronLink
ElementLink< xAOD::ElectronContainer > ElectronLink
Definition
BPhysHelper.cxx:23
FEElectronHelper.h
ElementLink< xAOD::ElectronContainer >
FEElectronHelper::checkElectronLinks
bool checkElectronLinks(const std::vector< ElementLink< xAOD::ElectronContainer > > &FE_ElectronLinks, const std::string &qualityString) const
Definition
FEElectronHelper.cxx:5
FEElectronHelper::FEElectronHelper
FEElectronHelper()
Definition
FEElectronHelper.cxx:3
asg::AsgMessaging::AsgMessaging
AsgMessaging(const std::string &name)
Constructor with a name.
Definition
AsgMessaging.cxx:17
xAOD::Electron
Electron_v1 Electron
Definition of the current "egamma version".
Definition
Event/xAOD/xAODEgamma/xAODEgamma/Electron.h:17
Generated on
for ATLAS Offline Software by
1.14.0