ATLAS Offline Software
ISystematicsSvc.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 
7 
8 #ifndef SYSTEMATICS_HANDLES__I_SYSTEMATICS_SVC_H
9 #define SYSTEMATICS_HANDLES__I_SYSTEMATICS_SVC_H
10 
12 
14 
15 namespace CP
16 {
23 
24  class ISystematicsSvc : virtual public asg::IAsgService
25  {
26  public:
27 
29 
31  virtual std::vector<CP::SystematicSet>
32  makeSystematicsVector () const = 0;
33 
39  virtual StatusCode
40  addSystematics (const CP::SystematicSet& recommended,
41  const CP::SystematicSet& affecting) const = 0;
42 
44  virtual CP::SystematicSet
45  getObjectSystematics (const std::string& name) const = 0;
46 
48  virtual StatusCode
49  setObjectSystematics (const std::string& name,
50  const CP::SystematicSet& systematics) const = 0;
51 
53  virtual CP::SystematicSet
54  getDecorSystematics (const std::string& objectName,
55  const std::string& decorName) const = 0;
56 
58  virtual StatusCode
59  setDecorSystematics (const std::string& objectName,
60  const std::string& decorName,
61  const CP::SystematicSet& systematics) const = 0;
62 
64  virtual StatusCode
65  registerCopy (const std::string& fromName,
66  const std::string& toName) const = 0;
67 
70  virtual std::string
71  getCopySource (const std::string& toName) const = 0;
72 
74  virtual StatusCode
75  makeSystematicsName (std::string& result,
76  const std::string& name,
77  const CP::SystematicSet& sys) const = 0;
78  };
79 }
80 
81 #endif
CP::ISystematicsSvc::getCopySource
virtual std::string getCopySource(const std::string &toName) const =0
get a source object name from which a target object has been copied
get_generator_info.result
result
Definition: get_generator_info.py:21
CP::ISystematicsSvc
the interface for the central systematics service
Definition: ISystematicsSvc.h:25
CP::ISystematicsSvc::setDecorSystematics
virtual StatusCode setDecorSystematics(const std::string &objectName, const std::string &decorName, const CP::SystematicSet &systematics) const =0
set the systematics for the given object in the event store
CP::ISystematicsSvc::setObjectSystematics
virtual StatusCode setObjectSystematics(const std::string &name, const CP::SystematicSet &systematics) const =0
set the systematics for the given object in the event store
CP::ISystematicsSvc::addSystematics
virtual StatusCode addSystematics(const CP::SystematicSet &recommended, const CP::SystematicSet &affecting) const =0
register a set of recommended and affecting systematics
asg::IAsgService
Base class for the dual-use service interface classes.
Definition: IAsgService.h:35
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::ISystematicsSvc::DeclareInterfaceID
DeclareInterfaceID(CP::ISystematicsSvc, 1, 0)
IAsgService.h
CP::ISystematicsSvc::registerCopy
virtual StatusCode registerCopy(const std::string &fromName, const std::string &toName) const =0
register a (shallow) copy from one object to the next
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
SysListType.h
CheckAppliedSFs.systematics
def systematics
Definition: CheckAppliedSFs.py:231
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
CP::ISystematicsSvc::getObjectSystematics
virtual CP::SystematicSet getObjectSystematics(const std::string &name) const =0
get the systematics for the given object in the event store
CP::ISystematicsSvc::makeSystematicsName
virtual StatusCode makeSystematicsName(std::string &result, const std::string &name, const CP::SystematicSet &sys) const =0
make the name for the given systematics
CP::ISystematicsSvc::getDecorSystematics
virtual CP::SystematicSet getDecorSystematics(const std::string &objectName, const std::string &decorName) const =0
get the systematics for the given object in the event store
CP::ISystematicsSvc::makeSystematicsVector
virtual std::vector< CP::SystematicSet > makeSystematicsVector() const =0
get the list of systematics