10#ifndef ASGSERVICES_SERVICEHANDLE_H
11#define ASGSERVICES_SERVICEHANDLE_H
14#ifndef XAOD_STANDALONE
15# include "GaudiKernel/ServiceHandle.h"
34class ServiceHandleBase
38 ServiceHandleBase(
const std::string& typeAndName,
const std::string& parentName );
41 const std::string& typeAndName()
const;
43 const std::string&
type()
const;
45 const std::string&
name()
const;
50 void setTypeAndName(
const std::string& typeAndName);
52 void setName(
const std::string& name);
56 std::string m_typeAndName;
62 std::string m_parentName;
81 ServiceHandle(
const std::shared_ptr<T>& pservice,
82 const std::string& parentName );
85 ServiceHandle(
const std::string& servicename,
const std::string& parentName);
89 ServiceHandle (T2 *parent,
const std::string& propertyName,
90 const std::string& serviceName,
91 const std::string& propertyTitle =
"");
100 const T* operator->()
const;
108 void disable () noexcept;
118 mutable std::shared_ptr<T> m_pservice;
124std::ostream& operator<< ( std::ostream& out,
125 const ServiceHandle< T >& handle );
128#include "AsgServices/ServiceHandle.icc"
xAOD::MissingET_v1 operator*(const xAOD::MissingET_v1 &met, float scale)
Create new MET object from source with scaled (weighted) kinematics.
static const Attributes_t empty
::StatusCode StatusCode
StatusCode definition for legacy code.
retrieve(aClass, aKey=None)