popcon application to store FloatCondObjectContainer Records using XML tools More...
#include </EcalFloatCondObjectContainerHandler.h>
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_ |
popcon application to store FloatCondObjectContainer Records using XML tools
Definition at line 32 of file EcalFloatCondObjectContainerHandler.h.
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.
{}
void EcalFloatCondObjectContainerHandler::getNewObjects | ( | ) | [virtual] |
Implements popcon::PopConSourceHandler< EcalFloatCondObjectContainer >.
Definition at line 29 of file EcalFloatCondObjectContainerHandler.cc.
References MultipleCompare::header, popcon::PopConSourceHandler< EcalFloatCondObjectContainer >::m_to_transfer, EcalFloatCondObjectContainerXMLTranslator::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 MultipleCompare::header, 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_; }
Definition at line 46 of file EcalFloatCondObjectContainerHandler.h.
long long EcalFloatCondObjectContainerHandler::since_ [private] |
Definition at line 44 of file EcalFloatCondObjectContainerHandler.h.
Referenced by getNewObjects().
std::string EcalFloatCondObjectContainerHandler::xmlFileSource_ [private] |
Definition at line 43 of file EcalFloatCondObjectContainerHandler.h.
Referenced by getNewObjects(), and id().