CMS 3D CMS Logo

List of all members | Public Member Functions | Protected Member Functions
HcalTextCalibrations::CheckGetObject< T > Class Template Reference

#include <HcalTextCalibrations.h>

Inheritance diagram for HcalTextCalibrations::CheckGetObject< T >:
HcalTextCalibrations::CheckGetObjectTopo< T >

Public Member Functions

 CheckGetObject (const HcalTopology *topo)
 
std::unique_ptr< Toperator() (std::istream &inStream)
 
virtual ~CheckGetObject ()=default
 

Protected Member Functions

virtual std::unique_ptr< TmakeResult ()
 

Detailed Description

template<class T>
class HcalTextCalibrations::CheckGetObject< T >

Definition at line 54 of file HcalTextCalibrations.h.

Constructor & Destructor Documentation

◆ CheckGetObject()

template<class T >
HcalTextCalibrations::CheckGetObject< T >::CheckGetObject ( const HcalTopology topo)
inline

Definition at line 56 of file HcalTextCalibrations.h.

56 {}

◆ ~CheckGetObject()

template<class T >
virtual HcalTextCalibrations::CheckGetObject< T >::~CheckGetObject ( )
virtualdefault

Member Function Documentation

◆ makeResult()

template<class T >
virtual std::unique_ptr<T> HcalTextCalibrations::CheckGetObject< T >::makeResult ( )
inlineprotectedvirtual

Reimplemented in HcalTextCalibrations::CheckGetObjectTopo< T >.

Definition at line 66 of file HcalTextCalibrations.h.

66 { return std::make_unique<T>(); }

Referenced by HcalTextCalibrations::CheckGetObject< T >::operator()().

◆ operator()()

template<class T >
std::unique_ptr<T> HcalTextCalibrations::CheckGetObject< T >::operator() ( std::istream &  inStream)
inline

Definition at line 57 of file HcalTextCalibrations.h.

57  {
58  auto result = makeResult();
59  if (!HcalDbASCIIIO::getObject(inStream, &*result))
60  result.reset(nullptr);
61  return result;
62  }

References HcalDbASCIIIO::getObject(), HcalTextCalibrations::CheckGetObject< T >::makeResult(), and mps_fire::result.

HcalTextCalibrations::CheckGetObject::makeResult
virtual std::unique_ptr< T > makeResult()
Definition: HcalTextCalibrations.h:66
HcalDbASCIIIO::getObject
bool getObject(std::istream &fInput, HcalPedestals *fObject)
mps_fire.result
result
Definition: mps_fire.py:303