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 55 of file HcalTextCalibrations.h.

Constructor & Destructor Documentation

◆ CheckGetObject()

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

Definition at line 57 of file HcalTextCalibrations.h.

57 {}

◆ ~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 67 of file HcalTextCalibrations.h.

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

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

◆ operator()()

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

Definition at line 58 of file HcalTextCalibrations.h.

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

58  {
59  auto result = makeResult();
60  if (!HcalDbASCIIIO::getObject(inStream, &*result))
61  result.reset(nullptr);
62  return result;
63  }
virtual std::unique_ptr< T > makeResult()
bool getObject(std::istream &fInput, HcalPedestals *fObject)