CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | 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 >

Public Member Functions

 EcalFloatCondObjectContainerHandler (const edm::ParameterSet &ps)
 
virtual void getNewObjects ()
 
virtual std::string id () const
 
virtual ~EcalFloatCondObjectContainerHandler ()
 
- Public Member Functions inherited from popcon::PopConSourceHandler< EcalFloatCondObjectContainer >
void convertFromOld ()
 
SummarydummySummary (typename OldContainer::value_type const &) const
 
void initialize (const cond::persistency::Session &dbSession, cond::TagInfo_t const &tagInfo, cond::LogDBEntry const &logDBEntry)
 
Ref lastPayload () const
 
cond::LogDBEntry const & logDBEntry () const
 
std::pair< Container const
*, std::string const > 
operator() (const cond::persistency::Session &session, cond::TagInfo_t const &tagInfo, cond::LogDBEntry const &logDBEntry) const
 
 PopConSourceHandler ()
 
Container const & returnData ()
 
void sort ()
 
cond::TagInfo_t const & tagInfo () const
 
std::string const & userTextLog () const
 
virtual ~PopConSourceHandler ()
 

Private Attributes

EcalCondHeader header_
 
long long since_
 
std::string xmlFileSource_
 

Additional Inherited Members

- Public Types inherited from popcon::PopConSourceHandler< EcalFloatCondObjectContainer >
typedef std::vector< TripletContainer
 
typedef std::vector< std::pair
< EcalFloatCondObjectContainer
*, cond::Time_t > > 
OldContainer
 
typedef PopConSourceHandler
< EcalFloatCondObjectContainer
self
 
typedef cond::Summary Summary
 
typedef cond::Time_t Time_t
 
typedef
EcalFloatCondObjectContainer 
value_type
 
- Protected Member Functions inherited from popcon::PopConSourceHandler< EcalFloatCondObjectContainer >
int add (value_type *payload, Summary *summary, Time_t time)
 
- Protected Attributes inherited from popcon::PopConSourceHandler< EcalFloatCondObjectContainer >
OldContainer m_to_transfer
 
std::string m_userTextLog
 

Detailed Description

popcon application to store FloatCondObjectContainer Records using XML tools

Author
Stefano ARGIRO
Date
09 Sep 2008

Definition at line 29 of file EcalFloatCondObjectContainerHandler.h.

Constructor & Destructor Documentation

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

Definition at line 17 of file EcalFloatCondObjectContainerHandler.cc.

17 {}

Member Function Documentation

void EcalFloatCondObjectContainerHandler::getNewObjects ( )
virtual

Implements popcon::PopConSourceHandler< EcalFloatCondObjectContainer >.

Definition at line 26 of file EcalFloatCondObjectContainerHandler.cc.

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

26  {
27 
28  EcalCondHeader header;
29 
30  // we allocate on the heap here, knowing that popcon will
31  // take care of deleting the payload
33 
35 
36 
37  //cond::Time_t snc = header.since_;
38  //for now we don't make use of the xml header to read the since
39  //but rely on the one passed from parameter set
40 
41  m_to_transfer.push_back(std::make_pair(payload,since_));
42 
43 }
static int readXML(const std::string &filename, EcalCondHeader &header, EcalFloatCondObjectContainer &record)
EcalCondObjectContainer< float > EcalFloatCondObjectContainer
std::string EcalFloatCondObjectContainerHandler::id ( ) const
virtual

Implements popcon::PopConSourceHandler< EcalFloatCondObjectContainer >.

Definition at line 45 of file EcalFloatCondObjectContainerHandler.cc.

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

45  {
46 
47  // We have to think if this is the right thing to do ...
48 
49  EcalCondHeader header;
51  return header.tag_;
52 }
void readHeader(xercesc::DOMNode *parentNode, EcalCondHeader &header)
read header from
std::string tag_

Member Data Documentation

EcalCondHeader EcalFloatCondObjectContainerHandler::header_
private

Definition at line 43 of file EcalFloatCondObjectContainerHandler.h.

long long EcalFloatCondObjectContainerHandler::since_
private

Definition at line 41 of file EcalFloatCondObjectContainerHandler.h.

Referenced by getNewObjects().

std::string EcalFloatCondObjectContainerHandler::xmlFileSource_
private

Definition at line 40 of file EcalFloatCondObjectContainerHandler.h.

Referenced by getNewObjects(), and id().