#include <HcalElectronicsMapHandler.h>
Public Member Functions | |
void | getNewObjects () |
HcalElectronicsMapHandler (edm::ParameterSet const &) | |
std::string | id () const |
void | initObject (HcalElectronicsMap *) |
~HcalElectronicsMapHandler () | |
Private Attributes | |
edm::FileInPath | fFile |
std::string | m_name |
HcalElectronicsMap * | myDBObject |
unsigned int | sinceTime |
Definition at line 25 of file HcalElectronicsMapHandler.h.
HcalElectronicsMapHandler::~HcalElectronicsMapHandler | ( | ) |
Definition at line 12 of file HcalElectronicsMapHandler.cc.
{ }
HcalElectronicsMapHandler::HcalElectronicsMapHandler | ( | edm::ParameterSet const & | ps | ) |
Definition at line 6 of file HcalElectronicsMapHandler.cc.
References edm::ParameterSet::getUntrackedParameter(), m_name, and sinceTime.
void HcalElectronicsMapHandler::getNewObjects | ( | ) | [virtual] |
Implements popcon::PopConSourceHandler< HcalElectronicsMap >.
Definition at line 16 of file HcalElectronicsMapHandler.cc.
References gather_cfg::cout, Exception, cond::TagInfo::lastInterval, m_name, popcon::PopConSourceHandler< HcalElectronicsMap >::m_to_transfer, myDBObject, cond::TagInfo::name, sinceTime, cond::TagInfo::size, and popcon::PopConSourceHandler< HcalElectronicsMap >::tagInfo().
{ // edm::LogInfo ("HcalElectronicsMapHandler") std::cout << "------- " << m_name << " - > getNewObjects\n" << //check whats already inside of database "got offlineInfo"<< tagInfo().name << ", size " << tagInfo().size << ", last object valid since " << tagInfo().lastInterval.first << std::endl; if (!myDBObject) throw cms::Exception("Empty DB object") << m_name << " has received empty object - nothing to write to DB" << std::endl; // IOV information cond::Time_t myTime = sinceTime; std::cout << "Using IOV run " << sinceTime << std::endl; // prepare for transfer: m_to_transfer.push_back(std::make_pair(myDBObject,myTime)); edm::LogInfo("HcalElectronicsMapHandler") << "------- " << m_name << " - > getNewObjects" << std::endl; }
std::string HcalElectronicsMapHandler::id | ( | void | ) | const [inline, virtual] |
Implements popcon::PopConSourceHandler< HcalElectronicsMap >.
Definition at line 29 of file HcalElectronicsMapHandler.h.
References m_name.
{ return m_name;}
void HcalElectronicsMapHandler::initObject | ( | HcalElectronicsMap * | fObject | ) |
Definition at line 45 of file HcalElectronicsMapHandler.cc.
References myDBObject.
Referenced by HcalElectronicsMapPopConAnalyzer::endJob().
{ myDBObject = fObject; }
Definition at line 37 of file HcalElectronicsMapHandler.h.
std::string HcalElectronicsMapHandler::m_name [private] |
Definition at line 39 of file HcalElectronicsMapHandler.h.
Referenced by getNewObjects(), HcalElectronicsMapHandler(), and id().
Definition at line 38 of file HcalElectronicsMapHandler.h.
Referenced by getNewObjects(), and initObject().
unsigned int HcalElectronicsMapHandler::sinceTime [private] |
Definition at line 36 of file HcalElectronicsMapHandler.h.
Referenced by getNewObjects(), and HcalElectronicsMapHandler().