ATLAS Offline Software
SelectionWriteAccessorChar.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_WRITE_ACCESSOR_OR_H
9 #define SELECTION_HELPERS__SELECTION_WRITE_ACCESSOR_OR_H
10 
12 
13 namespace CP
14 {
17 
19  {
20  //
21  // public interface
22  //
23 
24  public:
25  SelectionWriteAccessorChar (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::SelectionWriteAccessorChar::SelectionWriteAccessorChar
SelectionWriteAccessorChar(const std::string &name)
Definition: SelectionWriteAccessorChar.cxx:23
CP::SelectionWriteAccessorChar::label
virtual std::string label() const override
get the label of the accessor
Definition: SelectionWriteAccessorChar.cxx:53
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:483
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::SelectionWriteAccessorChar
the SelectionAccesor for OR tool selection decorations
Definition: SelectionWriteAccessorChar.h:19
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::SelectionWriteAccessorChar::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: SelectionWriteAccessorChar.cxx:61
CP::SelectionWriteAccessorChar::m_accessor
SG::AuxElement::Decorator< char > m_accessor
the underlying accessor
Definition: SelectionWriteAccessorChar.h:54
Handler::svc
AthROOTErrorHandlerSvc * svc
Definition: AthROOTErrorHandlerSvc.cxx:10
CP::SelectionWriteAccessorChar::setBool
virtual void setBool(const SG::AuxElement &element, bool selection, const CP::SystematicSet *sys) const override
set the selection decoration
Definition: SelectionWriteAccessorChar.cxx:43
selection
const std::string selection
Definition: fbtTestBasics.cxx:74
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
CP::SelectionWriteAccessorChar::m_label
std::string m_label
the label of the accessor
Definition: SelectionWriteAccessorChar.h:58
ISelectionWriteAccessor.h
CP::SelectionWriteAccessorChar::setBits
virtual void setBits(const SG::AuxElement &element, SelectionType selection, const CP::SystematicSet *sys) const override
set the selection decoration
Definition: SelectionWriteAccessorChar.cxx:30