ATLAS Offline Software
SelectionReadAccessorBits.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_READ_BITS_H
9 #define SELECTION_HELPERS__SELECTION_ACCESSOR_READ_BITS_H
10 
12 
13 namespace CP
14 {
17 
19  {
20  //
21  // public interface
22  //
23 
24  public:
25  SelectionReadAccessorBits (const std::string& name);
26 
27  public:
28  virtual SelectionType
29  getBits (const SG::AuxElement& element,
30  const CP::SystematicSet *sys) const override;
31 
32  public:
33  virtual bool
34  getBool (const SG::AuxElement& element,
35  const CP::SystematicSet *sys) const override;
36 
37  public:
38  virtual std::string label () const override;
39 
40  public:
41  virtual bool isBool () const override;
42 
43  public:
44  virtual CP::SystematicSet
46  const std::string& objectName) const override;
47 
48  public:
49  virtual StatusCode
51  const std::vector<CP::SystematicSet>& sysList,
52  const std::string& objectName) override;
53 
54 
55  //
56  // private interface
57  //
58 
60  private:
62 
64  private:
65  std::string m_label;
66  };
67 }
68 
69 #endif
CP::SelectionReadAccessorBits::label
virtual std::string label() const override
get the label of the accessor
Definition: SelectionReadAccessorBits.cxx:56
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::SelectionReadAccessorBits
the SelectionAccesor for standard CP algorithm selection decorations encoded as bits
Definition: SelectionReadAccessorBits.h:19
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
SG::ConstAccessor
Helper class to provide constant type-safe access to aux data.
Definition: ConstAccessor.h:55
CP
Select isolated Photons, Electrons and Muons.
Definition: Control/xAODRootAccess/xAODRootAccess/TEvent.h:48
mapkey::sys
@ sys
Definition: TElectronEfficiencyCorrectionTool.cxx:42
CP::SelectionReadAccessorBits::SelectionReadAccessorBits
SelectionReadAccessorBits(const std::string &name)
Definition: SelectionReadAccessorBits.cxx:23
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::SelectionReadAccessorBits::getInputAffecting
virtual CP::SystematicSet getInputAffecting(const ISystematicsSvc &svc, const std::string &objectName) const override
get the systematics when reading from the decoration
Definition: SelectionReadAccessorBits.cxx:64
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
CP::SelectionReadAccessorBits::m_label
std::string m_label
the label of the accessor
Definition: SelectionReadAccessorBits.h:65
CP::SelectionReadAccessorBits::getBits
virtual SelectionType getBits(const SG::AuxElement &element, const CP::SystematicSet *sys) const override
get the selection decoration
Definition: SelectionReadAccessorBits.cxx:30
CP::ISelectionReadAccessor
a specialized accessor to read a selection decoration from/to an xAOD object
Definition: ISelectionReadAccessor.h:39
CP::SelectionReadAccessorBits::getBool
virtual bool getBool(const SG::AuxElement &element, const CP::SystematicSet *sys) const override
get the selection decoration
Definition: SelectionReadAccessorBits.cxx:39
ISelectionReadAccessor.h
CP::SelectionReadAccessorBits::isBool
virtual bool isBool() const override
whether this accessor returns a simple boolean
Definition: SelectionReadAccessorBits.cxx:48
CP::SelectionReadAccessorBits::fillSystematics
virtual StatusCode fillSystematics(const ISystematicsSvc &svc, const std::vector< CP::SystematicSet > &sysList, const std::string &objectName) override
fill the systematic variations
Definition: SelectionReadAccessorBits.cxx:73
CP::SelectionReadAccessorBits::m_constAccessor
SG::AuxElement::ConstAccessor< SelectionType > m_constAccessor
the underlying accessor
Definition: SelectionReadAccessorBits.h:61