ATLAS Offline Software
Loading...
Searching...
No Matches
FEElectronHelper.cxx
Go to the documentation of this file.
2
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 }
#define ATH_MSG_WARNING(x)
ElementLink< xAOD::ElectronContainer > ElectronLink
bool checkElectronLinks(const std::vector< ElementLink< xAOD::ElectronContainer > > &FE_ElectronLinks, const std::string &qualityString) const
AsgMessaging(const std::string &name)
Constructor with a name.
Electron_v1 Electron
Definition of the current "egamma version".