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

Constructor & Destructor Documentation

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

Definition at line 58 of file HcalTextCalibrations.h.

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

Member Function Documentation

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.

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

66 { return std::make_unique<T>(); }
template<class T >
std::unique_ptr<T> HcalTextCalibrations::CheckGetObject< T >::operator() ( std::istream &  inStream)
inline

Definition at line 59 of file HcalTextCalibrations.h.

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

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