CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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)
 
void getNewObjects () override
 
std::string id () const override
 
 ~EcalFloatCondObjectContainerHandler () override
 
- Public Member Functions inherited from popcon::PopConSourceHandler< EcalFloatCondObjectContainer >
void initialize (const cond::persistency::Session &dbSession, cond::TagInfo_t const &tagInfo, cond::LogDBEntry_t const &logDBEntry)
 
Ref lastPayload () const
 
cond::LogDBEntry_t const & logDBEntry () const
 
std::pair< Container const
*, std::string const > 
operator() (const cond::persistency::Session &session, cond::TagInfo_t const &tagInfo, cond::LogDBEntry_t const &logDBEntry) const
 
 PopConSourceHandler ()
 
Container const & returnData ()
 
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::map< Time_t,
std::shared_ptr
< EcalFloatCondObjectContainer > > 
Container
 
typedef std::unique_ptr
< EcalFloatCondObjectContainer
Ref
 
typedef PopConSourceHandler
< EcalFloatCondObjectContainer
self
 
typedef cond::Time_t Time_t
 
typedef
EcalFloatCondObjectContainer 
value_type
 
- Protected Member Functions inherited from popcon::PopConSourceHandler< EcalFloatCondObjectContainer >
cond::persistency::SessiondbSession () const
 
- Protected Attributes inherited from popcon::PopConSourceHandler< EcalFloatCondObjectContainer >
Container m_iovs
 
std::vector< std::pair
< EcalFloatCondObjectContainer
*, Time_t > > 
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 ( )
override

Definition at line 16 of file EcalFloatCondObjectContainerHandler.cc.

16 {}

Member Function Documentation

void EcalFloatCondObjectContainerHandler::getNewObjects ( )
overridevirtual

Implements popcon::PopConSourceHandler< EcalFloatCondObjectContainer >.

Definition at line 22 of file EcalFloatCondObjectContainerHandler.cc.

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

22  {
23  EcalCondHeader header;
24 
25  // we allocate on the heap here, knowing that popcon will
26  // take care of deleting the payload
28 
30 
31  //cond::Time_t snc = header.since_;
32  //for now we don't make use of the xml header to read the since
33  //but rely on the one passed from parameter set
34 
35  m_to_transfer.push_back(std::make_pair(payload, since_));
36 }
static int readXML(const std::string &filename, EcalCondHeader &header, EcalFloatCondObjectContainer &record)
std::vector< std::pair< EcalFloatCondObjectContainer *, Time_t > > m_to_transfer
EcalCondObjectContainer< float > EcalFloatCondObjectContainer
std::string EcalFloatCondObjectContainerHandler::id ( ) const
overridevirtual

Implements popcon::PopConSourceHandler< EcalFloatCondObjectContainer >.

Definition at line 38 of file EcalFloatCondObjectContainerHandler.cc.

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

38  {
39  // We have to think if this is the right thing to do ...
40 
41  EcalCondHeader header;
43  return header.tag_;
44 }
void readHeader(xercesc::DOMNode *parentNode, EcalCondHeader &header)
read header from
std::string tag_

Member Data Documentation

EcalCondHeader EcalFloatCondObjectContainerHandler::header_
private

Definition at line 40 of file EcalFloatCondObjectContainerHandler.h.

long long EcalFloatCondObjectContainerHandler::since_
private

Definition at line 38 of file EcalFloatCondObjectContainerHandler.h.

Referenced by getNewObjects().

std::string EcalFloatCondObjectContainerHandler::xmlFileSource_
private

Definition at line 37 of file EcalFloatCondObjectContainerHandler.h.

Referenced by getNewObjects(), and id().