|
ATLAS Offline Software
|
Go to the documentation of this file.
15 const std::string&
name,
20 declareInterface<IegammaBaseTool>(
this);
32 ATH_MSG_ERROR(
"The number of selectors does not match the number of given "
33 "electronIsEMselector names");
34 return StatusCode::FAILURE;
40 ATH_MSG_ERROR(
"The number of selectors does not match the number of given "
41 "electron LH selector names");
42 return StatusCode::FAILURE;
49 ATH_MSG_ERROR(
"The number of selectors does not match the number of given "
50 "generic selector names");
51 return StatusCode::FAILURE;
57 ATH_MSG_ERROR(
"The number of selectors does not match the number of given "
58 "photon selector names");
59 return StatusCode::FAILURE;
65 return StatusCode::FAILURE;
71 return StatusCode::SUCCESS;
83 return StatusCode::SUCCESS;
88 for (
size_t i = 0;
i <
size; ++
i) {
91 eg->setPassSelection(
static_cast<bool>(
accept),
94 unsigned int isEM = (~0);
98 return StatusCode::FAILURE;
105 for (
size_t i = 0;
i < sizePh; ++
i) {
108 eg->setPassSelection(
static_cast<bool>(
accept),
111 unsigned int isEM = ~0;
115 return StatusCode::FAILURE;
124 double avg_mu = -99.;
132 for (
size_t i = 0;
i < sizeLH; ++
i) {
135 eg->setPassSelection(
static_cast<bool>(
accept),
138 eg->setSelectionisEM(
139 static_cast<unsigned int>(
accept.getCutResultInverted()),
144 accLH(*
eg) =
static_cast<float>(
150 for (
size_t i = 0;
i < sizeGen; ++
i) {
153 eg->setPassSelection(
static_cast<bool>(
accept),
156 eg->setSelectionisEM(
157 static_cast<unsigned int>(
accept.getCutResultInverted()),
161 return StatusCode::SUCCESS;
Gaudi::Property< std::vector< std::string > > m_electronIsEMselectorResultNames
ToolHandle< ILumiBlockMuTool > m_lumiBlockMuTool
Gaudi::Property< std::vector< std::string > > m_genericIsEMselectorResultNames
ToolHandleArray< IAsgPhotonIsEMSelector > m_photonIsEMselectors
Helper class to provide type-safe access to aux data.
StatusCode accept(const xAOD::Muon *mu)
virtual StatusCode execute(const EventContext &ctx, xAOD::Egamma *) const override final
standard execute method
Gaudi::Property< std::vector< std::string > > m_electronLHselectorResultNames
ToolHandleArray< IAsgElectronIsEMSelector > m_electronIsEMselectors
Handle to the selectors.
::StatusCode StatusCode
StatusCode definition for legacy code.
EMPIDBuilder(const std::string &type, const std::string &name, const IInterface *parent)
Default constructor.
virtual StatusCode initialize() override final
initialize method
ToolHandleArray< IAsgElectronLikelihoodTool > m_electronLHselectors
Helpers for checking error return status codes and reporting errors.
#define ATH_MSG_WARNING(x)
Gaudi::Property< bool > m_UselumiBlockMuTool
Gaudi::Property< std::vector< std::string > > m_photonIsEMselectorResultNames
ToolHandleArray< IAsgSelectionTool > m_genericIsEMselectors