ATLAS Offline Software
SelectionWriteAccessorInvert.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_ACCESSOR_WRITE_INVERT_H
9 #define SELECTION_HELPERS__SELECTION_ACCESSOR_WRITE_INVERT_H
10 
12 
13 #include <memory>
14 
15 namespace CP
16 {
19 
21  {
22  //
23  // public interface
24  //
25 
26  public:
27  SelectionWriteAccessorInvert (std::unique_ptr<ISelectionWriteAccessor> val_base);
28 
29  public:
30  virtual void setBits (const SG::AuxElement& element,
32  const CP::SystematicSet *sys) const override;
33 
34  public:
35  virtual void setBool (const SG::AuxElement& element,
36  bool selection,
37  const CP::SystematicSet *sys) const override;
38 
39  public:
40  virtual std::string label () const override;
41 
42  public:
43  virtual StatusCode
45  const CP::SystematicSet& fullAffecting,
46  const std::vector<CP::SystematicSet>& sysList,
47  const std::string& objectName) override;
48 
49 
50  //
51  // private interface
52  //
53 
55  private:
56  std::unique_ptr<ISelectionWriteAccessor> m_base;
57  };
58 }
59 
60 #endif
CP::SelectionWriteAccessorInvert::fillSystematics
virtual StatusCode fillSystematics(const ISystematicsSvc &svc, const CP::SystematicSet &fullAffecting, const std::vector< CP::SystematicSet > &sysList, const std::string &objectName) override
fill the systematic variations
Definition: SelectionWriteAccessorInvert.cxx:58
CP::SelectionWriteAccessorInvert::SelectionWriteAccessorInvert
SelectionWriteAccessorInvert(std::unique_ptr< ISelectionWriteAccessor > val_base)
Definition: SelectionWriteAccessorInvert.cxx:23
CP::ISelectionWriteAccessor
a specialized accessor to write a selection decoration to an xAOD object
Definition: ISelectionWriteAccessor.h:39
CP::ISystematicsSvc
the interface for the central systematics service
Definition: ISystematicsSvc.h:25
CP::SelectionWriteAccessorInvert::m_base
std::unique_ptr< ISelectionWriteAccessor > m_base
the base selection accessors I invert
Definition: SelectionWriteAccessorInvert.h:56
SG::AuxElement
Base class for elements of a container that can have aux data.
Definition: AuxElement.h:446
CP::SelectionType
uint32_t SelectionType
the type for selection decorations that are meant to hold a asg::AcceptData
Definition: SelectionHelpers.h:26
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::SelectionWriteAccessorInvert::label
virtual std::string label() const override
get the label of the accessor
Definition: SelectionWriteAccessorInvert.cxx:50
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
CP::SelectionWriteAccessorInvert
the SelectionAccesor for inverting a selection decoration
Definition: SelectionWriteAccessorInvert.h:21
Handler::svc
AthROOTErrorHandlerSvc * svc
Definition: AthROOTErrorHandlerSvc.cxx:10
selection
std::string selection
Definition: fbtTestBasics.cxx:73
CP::SelectionWriteAccessorInvert::setBits
virtual void setBits(const SG::AuxElement &element, SelectionType selection, const CP::SystematicSet *sys) const override
set the selection decoration
Definition: SelectionWriteAccessorInvert.cxx:30
CP::SelectionWriteAccessorInvert::setBool
virtual void setBool(const SG::AuxElement &element, bool selection, const CP::SystematicSet *sys) const override
set the selection decoration
Definition: SelectionWriteAccessorInvert.cxx:40
ISelectionWriteAccessor.h