ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Reconstruction
PFlow
PFlowUtils
Root
FEElectronHelper.cxx
Go to the documentation of this file.
1
#include "
PFlowUtils/FEElectronHelper.h
"
2
3
static
constexpr
float
GeV
= 1000.f;
4
5
FEElectronHelper::FEElectronHelper
() :
AsgMessaging
(
"FEElectronHelper"
) {};
6
7
bool
FEElectronHelper::checkElectronLinks
(
const
std::vector <
ElementLink< xAOD::ElectronContainer >
>& FE_ElectronLinks,
const
std::string& qualityString)
const
{
8
9
for
(
const
ElementLink<xAOD::ElectronContainer>
&
ElectronLink
: FE_ElectronLinks){
10
if
(!
ElectronLink
.isValid()){
11
ATH_MSG_WARNING
(
"JetPFlowSelectionAlg encountered an invalid electron element link. Skipping. "
);
12
continue
;
13
}
14
15
const
xAOD::Electron
* electron = *
ElectronLink
;
16
bool
passElectronID =
false
;
17
bool
gotID = electron->passSelection(passElectronID, qualityString);
18
if
(!gotID) {
19
ATH_MSG_WARNING
(
"Could not get Electron ID"
);
20
continue
;
21
}
22
23
if
( electron->pt() > 10*
GeV
&& passElectronID){
24
return
true
;
25
}
26
}
27
return
false
;
28
}
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x)
Definition
AthMsgStreamMacros.h:32
ElectronLink
ElementLink< xAOD::ElectronContainer > ElectronLink
Definition
BPhysHelper.cxx:23
FEElectronHelper.h
GeV
#define GeV
Definition
PhysicsAnalysis/TauID/TauAnalysisTools/Root/HelperFunctions.cxx:17
ElementLink< xAOD::ElectronContainer >
FEElectronHelper::checkElectronLinks
bool checkElectronLinks(const std::vector< ElementLink< xAOD::ElectronContainer > > &FE_ElectronLinks, const std::string &qualityString) const
Definition
FEElectronHelper.cxx:7
FEElectronHelper::FEElectronHelper
FEElectronHelper()
Definition
FEElectronHelper.cxx:5
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.17.0