ATLAS Offline Software
FEElectronHelper.cxx
Go to the documentation of this file.
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 
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
FEElectronHelper::FEElectronHelper
FEElectronHelper()
Definition: FEElectronHelper.cxx:3
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