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 (cond::DbSession dbSession, cond::TagInfo const &tagInfo, cond::LogDBEntry const &logDBEntry)
 
Ref lastPayload () const
 
cond::LogDBEntry const & logDBEntry () const
 
std::pair< Container const
*, std::string const > 
operator() (cond::DbSession session, cond::TagInfo const &tagInfo, cond::LogDBEntry const &logDBEntry) const
 
 PopConSourceHandler ()
 
Container const & returnData ()
 
void sort ()
 
cond::TagInfo 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 32 of file EcalFloatCondObjectContainerHandler.h.

Constructor & Destructor Documentation

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

Definition at line 20 of file EcalFloatCondObjectContainerHandler.cc.

20 {}

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, EcalFloatCondObjectContainerXMLTranslator::readXML(), since_, and xmlFileSource_.

29  {
30 
31  EcalCondHeader header;
32 
33  // we allocate on the heap here, knowing that popcon will
34  // take care of deleting the payload
36 
38 
39 
40  //cond::Time_t snc = header.since_;
41  //for now we don't make use of the xml header to read the since
42  //but rely on the one passed from parameter set
43 
44  m_to_transfer.push_back(std::make_pair(payload,since_));
45 
46 }
static int readXML(const std::string &filename, EcalCondHeader &header, EcalFloatCondObjectContainer &record)
EcalCondObjectContainer< float > EcalFloatCondObjectContainer
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_.

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

Member Data Documentation

EcalCondHeader EcalFloatCondObjectContainerHandler::header_
private

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().