ATLAS Offline Software
SelectionReadAccessorInvert.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 
7 
8 #ifndef SELECTION_HELPERS__SELECTION_READ_ACCESSOR_INVERT_H
9 #define SELECTION_HELPERS__SELECTION_READ_ACCESSOR_INVERT_H
10 
12 
13 #include <memory>
14 
15 namespace CP
16 {
19 
21  {
22  //
23  // public interface
24  //
25 
26  public:
27  SelectionReadAccessorInvert (std::unique_ptr<ISelectionReadAccessor> val_base);
28 
29  public:
30  virtual SelectionType
31  getBits (const SG::AuxElement& element,
32  const CP::SystematicSet *sys) const override;
33 
34  public:
35  virtual bool
36  getBool (const SG::AuxElement& element,
37  const CP::SystematicSet *sys) const override;
38 
39  public:
40  virtual std::string label () const override;
41 
42  public:
43  virtual bool isBool () const override;
44 
45  public:
46  virtual CP::SystematicSet
48  const std::string& objectName) const override;
49 
50  public:
51  virtual StatusCode
53  const std::vector<CP::SystematicSet>& sysList,
54  const std::string& objectName) override;
55 
56 
57  //
58  // private interface
59  //
60 
62  private:
63  std::unique_ptr<ISelectionReadAccessor> m_base;
64  };
65 }
66 
67 #endif
CP::SelectionReadAccessorInvert::label
virtual std::string label() const override
get the label of the accessor
Definition: SelectionReadAccessorInvert.cxx:51
CP::ISystematicsSvc
the interface for the central systematics service
Definition: ISystematicsSvc.h:25
SG::AuxElement
Base class for elements of a container that can have aux data.
Definition: AuxElement.h:483
CP::SelectionReadAccessorInvert::isBool
virtual bool isBool() const override
whether this accessor returns a simple boolean
Definition: SelectionReadAccessorInvert.cxx:59
CP::SelectionType
uint32_t SelectionType
the type for selection decorations that are meant to hold a asg::AcceptData
Definition: SelectionHelpers.h:26
CP::SelectionReadAccessorInvert::fillSystematics
virtual StatusCode fillSystematics(const ISystematicsSvc &svc, const std::vector< CP::SystematicSet > &sysList, const std::string &objectName) override
fill the systematic variations
Definition: SelectionReadAccessorInvert.cxx:76
CP::SystematicSet
Class to wrap a set of SystematicVariations.
Definition: SystematicSet.h:31
CP
Select isolated Photons, Electrons and Muons.
Definition: Control/xAODRootAccess/xAODRootAccess/TEvent.h:48
mapkey::sys
@ sys
Definition: TElectronEfficiencyCorrectionTool.cxx:42
CP::SelectionReadAccessorInvert::getBits
virtual SelectionType getBits(const SG::AuxElement &element, const CP::SystematicSet *sys) const override
get the selection decoration
Definition: SelectionReadAccessorInvert.cxx:30
CP::SelectionReadAccessorInvert::SelectionReadAccessorInvert
SelectionReadAccessorInvert(std::unique_ptr< ISelectionReadAccessor > val_base)
Definition: SelectionReadAccessorInvert.cxx:23
CP::SelectionReadAccessorInvert
the SelectionAccesor for inverting a selection decoration
Definition: SelectionReadAccessorInvert.h:21
CP::SelectionReadAccessorInvert::getInputAffecting
virtual CP::SystematicSet getInputAffecting(const ISystematicsSvc &svc, const std::string &objectName) const override
get the systematics when reading from the decoration
Definition: SelectionReadAccessorInvert.cxx:67
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
Handler::svc
AthROOTErrorHandlerSvc * svc
Definition: AthROOTErrorHandlerSvc.cxx:10
CP::SelectionReadAccessorInvert::m_base
std::unique_ptr< ISelectionReadAccessor > m_base
the base selection accessors I invert
Definition: SelectionReadAccessorInvert.h:63
CP::SelectionReadAccessorInvert::getBool
virtual bool getBool(const SG::AuxElement &element, const CP::SystematicSet *sys) const override
get the selection decoration
Definition: SelectionReadAccessorInvert.cxx:42
CP::ISelectionReadAccessor
a specialized accessor to read a selection decoration from/to an xAOD object
Definition: ISelectionReadAccessor.h:39
ISelectionReadAccessor.h