12 const std::vector<xAOD::Iso::IsolationType>& isoTypes,
13 const std::string& isoDecSuffix) :
17 std::string accName = std::string(
toCString(iso_type)) + (isoDecSuffix.empty() ?
"" :
"_") + isoDecSuffix;
18 m_acc.emplace_back(accName);
20 std::string accName_noCloseBy = std::string(
toCString(iso_type));
27 for (
const std::string& iso_type : isoTypes) {
29 std::string accName = iso_type + (isoDecSuffix.empty() ?
"" :
"_") + isoDecSuffix;
30 m_acc.emplace_back(accName);
32 std::string accName_noCloseBy = iso_type;
Base class for elements of a container that can have aux data.
IsolationCondition(const std::string &name, xAOD::Iso::IsolationType isoType, const std::string &isoDecSuffix="")
std::vector< FloatAccessor > m_acc
std::vector< FloatAccessor > m_acc_noCloseBy
std::string m_isoDecSuffix
const FloatAccessor & accessor_noCloseBy(unsigned int n=0) const
const std::string & name() const
unsigned int num_types() const
xAOD::Iso::IsolationType type(unsigned int n=0) const
std::vector< xAOD::Iso::IsolationType > m_isolationType
const FloatAccessor & accessor(unsigned int n=0) const
SG::ConstAccessor< T, ALLOC > ConstAccessor
AsgMessaging(const std::string &name)
Constructor with a name.
Select isolated Photons, Electrons and Muons.
Namespace holding the IsolationType enumeration.
IsolationType
Overall enumeration for isolation types in xAOD files.
static const char * toCString(IsolationConeSize conesize)
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.