CMS 3D CMS Logo

Public Member Functions | Private Attributes

EcalFloatCondObjectContainerHandler Class Reference

popcon application to store FloatCondObjectContainer Records using XML tools More...

#include </EcalFloatCondObjectContainerHandler.h>

Inheritance diagram for EcalFloatCondObjectContainerHandler:
popcon::PopConSourceHandler< EcalFloatCondObjectContainer >

List of all members.

Public Member Functions

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

Private Attributes

EcalCondHeader header_
long long since_
std::string xmlFileSource_

Detailed Description

popcon application to store FloatCondObjectContainer Records using XML tools

Author:
Stefano ARGIRO
Date:
09 Sep 2008

Definition at line 32 of file EcalFloatCondObjectContainerHandler.h.


Constructor & Destructor Documentation

EcalFloatCondObjectContainerHandler::EcalFloatCondObjectContainerHandler ( const edm::ParameterSet ps)

Definition at line 23 of file EcalFloatCondObjectContainerHandler.cc.

                                                               :
  xmlFileSource_(ps.getUntrackedParameter<std::string>("xmlFile")),
  since_(ps.getUntrackedParameter<long long>("since"))
{
}
EcalFloatCondObjectContainerHandler::~EcalFloatCondObjectContainerHandler ( ) [virtual]

Definition at line 20 of file EcalFloatCondObjectContainerHandler.cc.

{}

Member Function Documentation

void EcalFloatCondObjectContainerHandler::getNewObjects ( ) [virtual]

Implements popcon::PopConSourceHandler< EcalFloatCondObjectContainer >.

Definition at line 29 of file EcalFloatCondObjectContainerHandler.cc.

References popcon::PopConSourceHandler< EcalFloatCondObjectContainer >::m_to_transfer, insertMaterial::readXML(), since_, and xmlFileSource_.

                                                       {
  
  EcalCondHeader          header;

  // we allocate on the heap here, knowing that popcon will
  // take care of deleting the payload
  EcalFloatCondObjectContainer *payload = new EcalFloatCondObjectContainer ;

  EcalFloatCondObjectContainerXMLTranslator::readXML(xmlFileSource_,header,*payload);
  
  
  //cond::Time_t snc = header.since_;
  //for now we don't make use of the xml header to read the since
  //but rely on the one passed from parameter set
  
  m_to_transfer.push_back(std::make_pair(payload,since_));

}
std::string EcalFloatCondObjectContainerHandler::id ( void  ) const [virtual]

Implements popcon::PopConSourceHandler< EcalFloatCondObjectContainer >.

Definition at line 48 of file EcalFloatCondObjectContainerHandler.cc.

References xuti::readHeader(), EcalCondHeader::tag_, and xmlFileSource_.

                                                       {
  
  // We have to think if this is the right thing to do ...
  
  EcalCondHeader          header;
  xuti::readHeader(xmlFileSource_, header);
  return header.tag_;
}

Member Data Documentation

Definition at line 46 of file EcalFloatCondObjectContainerHandler.h.

Definition at line 44 of file EcalFloatCondObjectContainerHandler.h.

Referenced by getNewObjects().

Definition at line 43 of file EcalFloatCondObjectContainerHandler.h.

Referenced by getNewObjects(), and id().