12 m_targetConnectionString(pset.getUntrackedParameter< std::
string >(
"targetDBConnectionString",
"")),
13 m_authPath( pset.getUntrackedParameter<std::
string>(
"authenticationPath",
"")),
14 m_authSys( pset.getUntrackedParameter<int>(
"authenticationSystem",1)),
15 m_record(pset.getParameter<std::
string> (
"record")),
16 m_payload_name(pset.getUntrackedParameter<std::
string> (
"name",
"")),
17 m_LoggingOn(pset.getUntrackedParameter< bool > (
"loggingOn",
true)),
18 m_IsDestDbCheckedInQueryLog( pset.getUntrackedParameter< bool >(
"IsDestDbCheckedInQueryLog",
true)),
19 m_close(pset.getUntrackedParameter< bool > (
"closeIOV",
false)),
20 m_lastTill(pset.getUntrackedParameter< bool > (
"lastTill",0))
25 edm::LogInfo (
"PopCon") <<
"This is PopCon (Populator of Condition) V4.0\n"
26 <<
"Please report any problem and feature request through the savannah portal under the category conditions\n" ;
63 std::cout <<
" ------ log info searched in the same db: "<< connectionStr <<
"------" <<std::endl;
66 std::cout <<
" ------ log info found in another db "<<
"------" <<std::endl;
69 edm::LogInfo (
"PopCon") <<
"DB: " << connectionStr <<
"\n"
77 edm::LogInfo (
"PopCon") <<
"DB: " << connectionStr <<
"\n"
79 <<
"; First writer to this new tag." << std::endl;
cond::LogDBEntry m_logDBEntry
void closeIOV(Time_t lastTill, const std::string &recordName, bool withlogging=false)
void finalize(Time_t lastTill)
void start(bool readOnly=true)
cond::persistency::Session session() const
std::pair< Time_t, Time_t > ValidityInterval
Transaction & transaction()
std::string tag(const std::string &recordName)
cond::persistency::Session m_targetSession
cond::ValidityInterval lastInterval
IOVProxy readIov(const std::string &tag, bool full=false)
void setAuthenticationSystem(int authSysCode)
Session createSession(const std::string &connectionString, bool writeCapable=false, BackendType backType=DEFAULT_DB)
std::string m_targetConnectionString
cond::TagInfo_t m_tagInfo
std::string connectionString()
PopCon(const edm::ParameterSet &pset)
bool m_IsDestDbCheckedInQueryLog
cond::persistency::Session initialize()
std::string lastPayloadToken
bool existsIov(const std::string &tag)
void LookupLastEntryByTag(const std::string &iovtag, LogDBEntry &logentry, bool filterFailedOp=true) const
volatile std::atomic< bool > shutdown_flag false
void setAuthenticationPath(const std::string &p)
std::string m_payload_name
const cond::Logger & queryLog() const
edm::Service< cond::service::PoolDBOutputService > m_dbService