22 SelectionAccessorList ::
23 SelectionAccessorList (std::vector<std::unique_ptr<ISelectionReadAccessor> > val_list)
26 for (
const std::unique_ptr<ISelectionReadAccessor> &
acc :
m_list)
44 constexpr size_t SelectionTotalBits = 8 *
sizeof (
SelectionType);
47 if (
m_list.size() > SelectionTotalBits)
56 for (std::size_t iter = 0; iter !=
m_list.size(); ++ iter)
68 bool SelectionAccessorList ::
72 for (
auto& accessor :
m_list)
74 if (!accessor->getBool (element, sys))
81 std::string SelectionAccessorList ::
89 bool SelectionAccessorList ::
99 const std::string& objectName)
const
104 result.insert (
base->getInputAffecting (svc, objectName));
110 StatusCode SelectionAccessorList ::
112 const std::vector<CP::SystematicSet>& sysList,
113 const std::string& objectName)
115 using namespace msgSelectionHelpers;
118 ANA_CHECK (
base->fillSystematics (svc, sysList, objectName));
119 return StatusCode::SUCCESS;
the interface for the central systematics service
std::string m_label
the label of the accessor
std::vector< std::unique_ptr< ISelectionReadAccessor > > m_list
the list of selection accessors I rely on
virtual bool getBool(const SG::AuxElement &element, const CP::SystematicSet *sys) const override
get the selection decoration
Class to wrap a set of SystematicVariations.
Base class for elements of a container that can have aux data.
Select isolated Photons, Electrons and Muons.
uint32_t SelectionType
the type for selection decorations that are meant to hold a asg::AcceptData
constexpr SelectionType selectionAccept()
the selection decoration to apply for objects that are selected
static const SG::AuxElement::Accessor< ElementLink< IParticleContainer > > acc("originalObjectLink")
Object used for setting/getting the dynamic decoration in question.