1 #ifndef SISTRIPPOPCON_DB_HANDLER_H
2 #define SISTRIPPOPCON_DB_HANDLER_H
20 template <
typename T,
typename U>
25 m_name(pset.getUntrackedParameter<std::
string>(
"name",
"SiStripPopConDbObjHandler")),
26 m_since(pset.getUntrackedParameter<uint32_t>(
"since",5)),
36 edm::LogInfo (
"SiStripPopConDbObjHandler") <<
"[SiStripPopConDbObjHandler::getNewObjects] for PopCon application " <<
m_name;
40 ss <<
"\n\n------- " <<
m_name
41 <<
" - > getNewObjects\n";
66 ss <<
" First object for this tag ";
76 edm::LogInfo (
"SiStripPopConDbObjHandler") <<
"[SiStripPopConDbObjHandler::getNewObjects] for PopCon application " <<
m_name <<
" Done\n--------------\n";
95 edm::LogInfo (
"SiStripPopConDbObjHandler") <<
"[SiStripPopConDbObjHandler::isTransferNeeded] checking for transfer " << std::endl;
97 if(m_since<=this->
tagInfo().lastInterval.first){
99 <<
"[SiStripPopConDbObjHandler::isTransferNeeded] \nthe current starting iov " <<
m_since
100 <<
"\nis not compatible with the last iov ("
107 std::stringstream ss_logdb,
ss;
120 <<
"[SiStripPopConDbObjHandler::isTransferNeeded] \nthe selected conditions will be uploaded: " << ss.str()
121 <<
"\n Current MetaData - "<< ss.str() <<
"\n Last Uploaded MetaData- " << ss_logdb.str() <<
"\n Fine";
126 <<
"[SiStripPopConDbObjHandler::isTransferNeeded] \nthe current MetaData conditions " << ss.str()
127 <<
"\nare not compatible with the MetaData Conditions of the last iov ("
139 edm::LogInfo (
"SiStripPopConDbObjHandler") <<
"[SiStripPopConDbObjHandler::setForTransfer] " <<
m_name <<
" getting data to be transferred " << std::endl;
155 edm::LogError (
"SiStripPopConDbObjHandler") <<
"[SiStripPopConDbObjHandler::setForTransfer] " <<
m_name <<
" : NULL pointer of obj " <<
typeid(
T).
name() <<
" reported by SiStripCondObjBuilderFromDb\n Transfer aborted"<<std::endl;
168 #endif //SISTRIPPOPCON_DB_HANDLER_H
SiStripPopConDbObjHandler(const edm::ParameterSet &pset)
std::string m_userTextLog
std::string const & userTextLog() const
unsigned long long m_since
OldContainer m_to_transfer
cond::ValidityInterval lastInterval
cond::LogDBEntry_t const & logDBEntry() const
~SiStripPopConDbObjHandler()
std::string destinationDB
std::string getDataType()
std::string lastPayloadToken
edm::Service< U > condObjBuilder
volatile std::atomic< bool > shutdown_flag false
tuple size
Write out results.
cond::TagInfo_t const & tagInfo() const