1 #ifndef POPCON_POPCON_H 2 #define POPCON_POPCON_H 37 template <
typename Source>
71 static constexpr
const char*
const s_version =
"5.0";
74 template <
typename Source>
84 size_t niovs = iovs.size();
88 s <<
"Since " << (*iovs.begin()).
first <<
"; ";
90 s <<
"first payload Since " << (*iovs.begin()).
first <<
", " 91 <<
"last payload Since " << (*iovs.rbegin()).
first <<
"; ";
99 for (
const auto& it : iovs)
100 edm::LogInfo(
"PopCon") <<
"Since " << it.first << std::endl;
109 #endif // POPCON_POPCON_H
cond::LogDBEntry_t m_logDBEntry
void finalize(Time_t lastTill)
ret
prodAgent to be discontinued
void write(Source const &source)
cond::persistency::Session m_targetSession
Container::value_type value_type
unsigned long long Time_t
std::string m_targetConnectionString
cond::TagInfo_t m_tagInfo
PopCon(const edm::ParameterSet &pset)
void setLogHeaderForRecord(const std::string &recordName, const std::string &provenance, const std::string &usertext)
Log< level::Info, false > LogInfo
static constexpr const char *const s_version
cond::persistency::Session initialize()
void writeMany(const std::map< Time_t, std::shared_ptr< T > > &iovAndPayloads, const std::string &recordName)
edm::AssociationVector< reco::JetRefBaseProd, Values > Container
std::string m_payload_name
static std::string const source
edm::Service< cond::service::PoolDBOutputService > m_dbService