1 #ifndef SISTRIPPOPCON_DB_HANDLER_H
2 #define SISTRIPPOPCON_DB_HANDLER_H
18 template <
typename T,
typename U>
23 m_name(pset.getUntrackedParameter<std::
string>(
"name",
"SiStripPopConDbObjHandler")),
24 m_since(pset.getUntrackedParameter<uint32_t>(
"since",5)),
34 edm::LogInfo (
"SiStripPopConDbObjHandler") <<
"[SiStripPopConDbObjHandler::getNewObjects] for PopCon application " <<
m_name;
38 ss <<
"\n\n------- " <<
m_name
39 <<
" - > getNewObjects\n";
64 ss <<
" First object for this tag ";
74 edm::LogInfo (
"SiStripPopConDbObjHandler") <<
"[SiStripPopConDbObjHandler::getNewObjects] for PopCon application " <<
m_name <<
" Done\n--------------\n";
93 edm::LogInfo (
"SiStripPopConDbObjHandler") <<
"[SiStripPopConDbObjHandler::isTransferNeeded] checking for transfer " << std::endl;
95 if(m_since<=this->
tagInfo().lastInterval.first){
97 <<
"[SiStripPopConDbObjHandler::isTransferNeeded] \nthe current starting iov " <<
m_since
98 <<
"\nis not compatible with the last iov ("
105 std::stringstream ss_logdb,
ss;
118 <<
"[SiStripPopConDbObjHandler::isTransferNeeded] \nthe selected conditions will be uploaded: " << ss.str()
119 <<
"\n Current MetaData - "<< ss.str() <<
"\n Last Uploaded MetaData- " << ss_logdb.str() <<
"\n Fine";
124 <<
"[SiStripPopConDbObjHandler::isTransferNeeded] \nthe current MetaData conditions " << ss.str()
125 <<
"\nare not compatible with the MetaData Conditions of the last iov ("
137 edm::LogInfo (
"SiStripPopConDbObjHandler") <<
"[SiStripPopConDbObjHandler::setForTransfer] " <<
m_name <<
" getting data to be transferred " << std::endl;
153 edm::LogError (
"SiStripPopConDbObjHandler") <<
"[SiStripPopConDbObjHandler::setForTransfer] " <<
m_name <<
" : NULL pointer of obj " <<
typeid(
T).
name() <<
" reported by SiStripCondObjBuilderFromDb\n Transfer aborted"<<std::endl;
166 #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