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)
 

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 {}

Member Function Documentation

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

Reimplemented in HcalTextCalibrations::CheckGetObjectTopo< T >.

Definition at line 64 of file HcalTextCalibrations.h.

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

64 { 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 HcalDbASCIIIO::getObject(), HcalTextCalibrations::CheckGetObject< T >::makeResult(), and mps_fire::result.

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)