The Gaudi Framework  v36r6 (b1ee9983)
Gaudi::Utils::GetData< Gaudi::NamedRange_< std::vector< const TYPE * > > > Struct Template Reference

the template specialization for named ranges More...

#include </builds/gaudi/Gaudi/GaudiAlg/include/GaudiAlg/GetData.h>

Collaboration diagram for Gaudi::Utils::GetData< Gaudi::NamedRange_< std::vector< const TYPE * > > >:

Public Types

typedef Gaudi::NamedRange_< std::vector< const TYPE * > > Type
 the actual return type More...
 
typedef _GetType< Type >::return_type return_type
 

Public Member Functions

template<class COMMON >
return_type operator() (const COMMON &common, IDataProviderSvc *service, std::string_view location, const bool checkData=true) const
 the only one essential method More...
 
return_type make_range (const typename TYPE::Container *cnt) const
 
return_type make_range (const typename TYPE::Selection *cnt) const
 
DataObject * getData (IDataProviderSvc *service, std::string location) const
 get the data form transient store More...
 

Private Attributes

GetData< Gaudi::Range_< std::vector< const TYPE * > > > m_range
 ===================================================================== the actual processor More...
 

Detailed Description

template<class TYPE>
struct Gaudi::Utils::GetData< Gaudi::NamedRange_< std::vector< const TYPE * > > >

the template specialization for named ranges

Definition at line 242 of file GetData.h.

Member Typedef Documentation

◆ return_type

template<class TYPE >
typedef _GetType<Type>::return_type Gaudi::Utils::GetData< Gaudi::NamedRange_< std::vector< const TYPE * > > >::return_type

Definition at line 247 of file GetData.h.

◆ Type

template<class TYPE >
typedef Gaudi::NamedRange_<std::vector<const TYPE*> > Gaudi::Utils::GetData< Gaudi::NamedRange_< std::vector< const TYPE * > > >::Type

the actual return type

Definition at line 246 of file GetData.h.

Member Function Documentation

◆ getData()

template<class TYPE >
DataObject* Gaudi::Utils::GetData< Gaudi::NamedRange_< std::vector< const TYPE * > > >::getData ( IDataProviderSvc *  service,
std::string  location 
) const
inline

get the data form transient store

Parameters
servicepointer to data provider service
locationthe location
Returns
the object for TES

Definition at line 286 of file GetData.h.

286  {
287  return m_range.getData( service, std::move( location ) );
288  }

◆ make_range() [1/2]

template<class TYPE >
return_type Gaudi::Utils::GetData< Gaudi::NamedRange_< std::vector< const TYPE * > > >::make_range ( const typename TYPE::Container *  cnt) const
inline

Definition at line 267 of file GetData.h.

267  {
268  if ( !cnt ) { return return_type(); }
269  static const std::string s_empty = "";
270  const IRegistry* reg = cnt->registry();
271  return return_type( m_range.make_range( cnt ), reg ? reg->identifier() : s_empty );
272  }

◆ make_range() [2/2]

template<class TYPE >
return_type Gaudi::Utils::GetData< Gaudi::NamedRange_< std::vector< const TYPE * > > >::make_range ( const typename TYPE::Selection *  cnt) const
inline

Definition at line 274 of file GetData.h.

274  {
275  if ( !cnt ) { return return_type(); }
276  static const std::string s_empty = "";
277  const IRegistry* reg = cnt->registry();
278  return return_type( m_range.make_range( cnt ), reg ? reg->identifier() : s_empty );
279  }

◆ operator()()

template<class TYPE >
template<class COMMON >
return_type Gaudi::Utils::GetData< Gaudi::NamedRange_< std::vector< const TYPE * > > >::operator() ( const COMMON &  common,
IDataProviderSvc *  service,
std::string_view  location,
const bool  checkData = true 
) const
inline

the only one essential method

Parameters
commonthe actual "worker"
servicepointer to Data Provider Service
locationlocation of objects in TES
checkDatawhether to check if the pointer is valid before returning it
Returns
the data

Definition at line 259 of file GetData.h.

260  {
261  return return_type( m_range( common, service, location, checkData ), std::string{ location } );
262  }

Member Data Documentation

◆ m_range

template<class TYPE >
GetData<Gaudi::Range_<std::vector<const TYPE*> > > Gaudi::Utils::GetData< Gaudi::NamedRange_< std::vector< const TYPE * > > >::m_range
private

===================================================================== the actual processor

Definition at line 293 of file GetData.h.


The documentation for this struct was generated from the following file:
std::string
STL class.
GaudiPython.HistoUtils.location
location
Definition: HistoUtils.py:965
std::move
T move(T... args)
Gaudi::Utils::GetData< Gaudi::NamedRange_< std::vector< const TYPE * > > >::return_type
_GetType< Type >::return_type return_type
Definition: GetData.h:247
IRegistry
Definition: IRegistry.h:32
Gaudi::Utils::GetData< Gaudi::NamedRange_< std::vector< const TYPE * > > >::m_range
GetData< Gaudi::Range_< std::vector< const TYPE * > > > m_range
===================================================================== the actual processor
Definition: GetData.h:293
IRegistry::identifier
virtual const id_type & identifier() const =0
Full identifier (or key)
Gaudi::Utils::GetData< Gaudi::Range_< std::vector< const TYPE * > > >::getData
DataObject * getData(IDataProviderSvc *service, std::string location) const
get the data form transient store
Definition: GetData.h:222
Gaudi::Utils::GetData< Gaudi::Range_< std::vector< const TYPE * > > >::make_range
return_type make_range(const typename TYPE::Container *cnt) const
Definition: GetData.h:209