ATLAS Offline Software
SelectionWriteAccessorBits.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_BITS_H
9 #define SELECTION_HELPERS__SELECTION_ACCESSOR_WRITE_BITS_H
10 
12 
13 namespace CP
14 {
17 
19  {
20  //
21  // public interface
22  //
23 
24  public:
25  SelectionWriteAccessorBits (const std::string& name);
26 
27  public:
28  virtual void setBits (const SG::AuxElement& element,
30  const CP::SystematicSet *sys) const override;
31 
32  public:
33  virtual void setBool (const SG::AuxElement& element,
34  bool selection,
35  const CP::SystematicSet *sys) const override;
36 
37  public:
38  virtual std::string label () const override;
39 
40  public:
41  virtual StatusCode
43  const CP::SystematicSet& fullAffecting,
44  const std::vector<CP::SystematicSet>& sysList,
45  const std::string& objectName) override;
46 
47 
48  //
49  // private interface
50  //
51 
53  private:
55 
57  private:
58  std::string m_label;
59  };
60 }
61 
62 #endif
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
SG::AuxElement
Base class for elements of a container that can have aux data.
Definition: AuxElement.h:472
CP::SelectionType
uint32_t SelectionType
the type for selection decorations that are meant to hold a asg::AcceptData
Definition: SelectionHelpers.h:26
CP::SelectionWriteAccessorBits::setBool
virtual void setBool(const SG::AuxElement &element, bool selection, const CP::SystematicSet *sys) const override
set the selection decoration
Definition: SelectionWriteAccessorBits.cxx:40
CP::SystematicSet
Class to wrap a set of SystematicVariations.
Definition: SystematicSet.h:31
CP::SelectionWriteAccessorBits::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: SelectionWriteAccessorBits.cxx:61
CP
Select isolated Photons, Electrons and Muons.
Definition: Control/xAODRootAccess/xAODRootAccess/TEvent.h:48
mapkey::sys
@ sys
Definition: TElectronEfficiencyCorrectionTool.cxx:42
CP::SelectionWriteAccessorBits::m_label
std::string m_label
the label of the accessor
Definition: SelectionWriteAccessorBits.h:58
CP::SelectionWriteAccessorBits::SelectionWriteAccessorBits
SelectionWriteAccessorBits(const std::string &name)
Definition: SelectionWriteAccessorBits.cxx:23
SG::Decorator
Helper class to provide type-safe access to aux data.
Definition: Decorator.h:59
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
CP::SelectionWriteAccessorBits::label
virtual std::string label() const override
get the label of the accessor
Definition: SelectionWriteAccessorBits.cxx:53
Handler::svc
AthROOTErrorHandlerSvc * svc
Definition: AthROOTErrorHandlerSvc.cxx:10
selection
std::string selection
Definition: fbtTestBasics.cxx:75
CP::SelectionWriteAccessorBits
the SelectionAccesor for standard CP algorithm selection decorations encoded as bits
Definition: SelectionWriteAccessorBits.h:19
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
CP::SelectionWriteAccessorBits::setBits
virtual void setBits(const SG::AuxElement &element, SelectionType selection, const CP::SystematicSet *sys) const override
set the selection decoration
Definition: SelectionWriteAccessorBits.cxx:30
ISelectionWriteAccessor.h
CP::SelectionWriteAccessorBits::m_accessor
SG::AuxElement::Decorator< SelectionType > m_accessor
the underlying accessor
Definition: SelectionWriteAccessorBits.h:54