CMS 3D CMS Logo

Public Member Functions | Private Attributes

EcalCondHandler< Payload, XMLTranslator > Class Template Reference

#include <EcalCondHandler.h>

Inheritance diagram for EcalCondHandler< Payload, XMLTranslator >:
popcon::PopConSourceHandler< Payload >

List of all members.

Public Member Functions

 EcalCondHandler (const edm::ParameterSet &ps)
virtual void getNewObjects ()
virtual std::string id () const

Private Attributes

long long since_
std::string xmlFileSource_

Detailed Description

template<typename Payload, typename XMLTranslator>
class EcalCondHandler< Payload, XMLTranslator >

Definition at line 10 of file EcalCondHandler.h.


Constructor & Destructor Documentation

template<typename Payload , typename XMLTranslator >
EcalCondHandler< Payload, XMLTranslator >::EcalCondHandler ( const edm::ParameterSet ps) [inline]

Definition at line 15 of file EcalCondHandler.h.

                                             :
    xmlFileSource_(ps.getUntrackedParameter<std::string>("xmlFile")),
    since_(ps.getUntrackedParameter<long long>("since")){}

Member Function Documentation

template<typename Payload , typename XMLTranslator >
virtual void EcalCondHandler< Payload, XMLTranslator >::getNewObjects ( ) [inline, virtual]

Implements popcon::PopConSourceHandler< Payload >.

Definition at line 19 of file EcalCondHandler.h.

References MultipleCompare::header, EcalCondHandler< Payload, XMLTranslator >::since_, and EcalCondHandler< Payload, XMLTranslator >::xmlFileSource_.

                              {

    EcalCondHeader   header;
    Payload * payload = new Payload;
    XMLTranslator::readXML(xmlFileSource_,header,*payload);
    popcon::PopConSourceHandler<Payload>::m_to_transfer.push_back(
                                    std::make_pair(payload,since_));
  }
template<typename Payload , typename XMLTranslator >
virtual std::string EcalCondHandler< Payload, XMLTranslator >::id ( void  ) const [inline, virtual]

Implements popcon::PopConSourceHandler< Payload >.

Definition at line 28 of file EcalCondHandler.h.

{return std::string("dummy");}

Member Data Documentation

template<typename Payload , typename XMLTranslator >
long long EcalCondHandler< Payload, XMLTranslator >::since_ [private]
template<typename Payload , typename XMLTranslator >
std::string EcalCondHandler< Payload, XMLTranslator >::xmlFileSource_ [private]