CMS 3D CMS Logo

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 convertFromOld ()
 
SummarydummySummary (typename OldContainer::value_type const &) const
 
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 ()
 
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< Triplet > Container
 
typedef std::vector< std::pair< EcalFloatCondObjectContainer *, cond::Time_t > > OldContainer
 
typedef PopConSourceHandler< EcalFloatCondObjectContainerself
 
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)
 
cond::persistency::SessiondbSession () const
 
- 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::EcalFloatCondObjectContainerHandler ( const edm::ParameterSet ps)

Definition at line 18 of file EcalFloatCondObjectContainerHandler.cc.

20  since_(ps.getUntrackedParameter<long long>("since")) {}

◆ ~EcalFloatCondObjectContainerHandler()

EcalFloatCondObjectContainerHandler::~EcalFloatCondObjectContainerHandler ( )
override

Definition at line 16 of file EcalFloatCondObjectContainerHandler.cc.

16 {}

Member Function Documentation

◆ getNewObjects()

void EcalFloatCondObjectContainerHandler::getNewObjects ( )
overridevirtual

Implements popcon::PopConSourceHandler< EcalFloatCondObjectContainer >.

Definition at line 22 of file EcalFloatCondObjectContainerHandler.cc.

22  {
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 }

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

◆ id()

std::string EcalFloatCondObjectContainerHandler::id ( ) const
overridevirtual

Implements popcon::PopConSourceHandler< EcalFloatCondObjectContainer >.

Definition at line 38 of file EcalFloatCondObjectContainerHandler.cc.

38  {
39  // We have to think if this is the right thing to do ...
40 
43  return header.tag_;
44 }

References RecoTauValidation_cfi::header, xuti::readHeader(), and xmlFileSource_.

Member Data Documentation

◆ header_

EcalCondHeader EcalFloatCondObjectContainerHandler::header_
private

Definition at line 40 of file EcalFloatCondObjectContainerHandler.h.

◆ since_

long long EcalFloatCondObjectContainerHandler::since_
private

Definition at line 38 of file EcalFloatCondObjectContainerHandler.h.

Referenced by getNewObjects().

◆ xmlFileSource_

std::string EcalFloatCondObjectContainerHandler::xmlFileSource_
private

Definition at line 37 of file EcalFloatCondObjectContainerHandler.h.

Referenced by getNewObjects(), and id().

popcon::PopConSourceHandler< EcalFloatCondObjectContainer >::m_to_transfer
OldContainer m_to_transfer
Definition: PopConSourceHandler.h:162
edm::ParameterSet::getUntrackedParameter
T getUntrackedParameter(std::string const &, T const &) const
EcalCondObjectContainer
Definition: EcalCondObjectContainer.h:13
EcalFloatCondObjectContainerXMLTranslator::readXML
static int readXML(const std::string &filename, EcalCondHeader &header, EcalFloatCondObjectContainer &record)
Definition: EcalFloatCondObjectContainerXMLTranslator.cc:23
jets_cff.payload
payload
Definition: jets_cff.py:32
EcalCondHeader
Definition: EcalCondHeader.h:16
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
EcalFloatCondObjectContainerHandler::xmlFileSource_
std::string xmlFileSource_
Definition: EcalFloatCondObjectContainerHandler.h:37
RecoTauValidation_cfi.header
header
Definition: RecoTauValidation_cfi.py:291
EcalFloatCondObjectContainer
EcalCondObjectContainer< float > EcalFloatCondObjectContainer
Definition: EcalCondObjectContainer.h:187
xuti::readHeader
void readHeader(xercesc::DOMNode *parentNode, EcalCondHeader &header)
read header from
Definition: DOMHelperFunctions.cc:164
EcalFloatCondObjectContainerHandler::since_
long long since_
Definition: EcalFloatCondObjectContainerHandler.h:38