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

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

Definition at line 57 of file HcalTextCalibrations.h.

57 {}
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 65 of file HcalTextCalibrations.h.

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

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

Definition at line 58 of file HcalTextCalibrations.h.

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

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