1 #ifndef SISTRIPPOPCON_CONFIGDB_HANDLER_H
2 #define SISTRIPPOPCON_CONFIGDB_HANDLER_H
31 :
m_name(pset.getUntrackedParameter<std::
string>(
"name",
"SiStripPopPopConConfigDbObjHandler")),
32 m_since(pset.getUntrackedParameter<uint32_t>(
"since", 5)),
42 edm::LogInfo(
"SiStripPopPopConConfigDbObjHandler") <<
"[getNewObjects] for PopCon application " <<
m_name;
46 ss <<
"\n\n------- " <<
m_name <<
" - > getNewObjects\n";
63 <<
"\n\n-- user text "
66 ss <<
" First object for this tag ";
68 edm::LogInfo(
"SiStripPopPopConConfigDbObjHandler") << ss.str();
74 <<
"[getNewObjects] for PopCon application " <<
m_name <<
" Done\n--------------\n";
85 <<
"[isTransferNeeded] checking for transfer: " <<
typeid(
T).
name() << std::endl;
86 std::stringstream ss_logdb,
ss;
102 label =
"ApvLatency";
107 <<
"[isTransferNeeded] the selected conditions are already uploaded in the last iov ("
110 <<
"\n NO TRANSFER NEEDED";
116 <<
"[isTransferNeeded] the selected conditions will be uploaded: " << ss.str()
117 <<
"\n Going to Upload: " << ss.str() <<
"\n Last Upload: " << ss_logdb.str() <<
"\n Fine";
126 <<
"[setForTransfer] " <<
m_name <<
" getting data to be transferred " << std::endl;
132 <<
"[setForTransfer] " <<
m_name <<
" got data to be transferred from condObjBuilder " << std::endl;
138 edm::LogInfo(
"SiStripPopPopConConfigDbObjHandler") <<
"[setForTransfer] setting since = " <<
m_since << std::endl;
140 if (obj !=
nullptr) {
141 edm::LogInfo(
"SiStripPopPopConConfigDbObjHandler") <<
"[setForTransfer] filling map m_to_transfer" << std::endl;
145 <<
"[setForTransfer] " <<
m_name <<
" : NULL pointer of obj " <<
typeid(
T).
name()
146 <<
" reported by SiStripCondObjBuilderFromDb\n Transfer aborted" << std::endl;
159 #endif //SISTRIPPOPCON_CONFIGDB_HANDLER_H
~SiStripPopConConfigDbObjHandler() override
std::string m_userTextLog
std::string const & userTextLog() const
std::string id() const override
edm::Service< SiStripCondObjBuilderFromDb > condObjBuilder
unsigned long long m_since
Log< level::Error, false > LogError
SiStripPopConConfigDbObjHandler(const edm::ParameterSet &pset)
bool checkForCompatibility(std::stringstream &input, std::stringstream &output, std::string &label)
std::vector< std::pair< T *, Time_t > > m_to_transfer
void getValue(SiStripFedCabling *&val)
cond::LogDBEntry_t const & logDBEntry() const
void getNewObjects() override
std::string destinationDB
Log< level::Info, false > LogInfo
Contains cabling info at the device level, including DetId, APV pair numbers, hardware addresses...
tuple size
Write out results.
cond::TagInfo_t const & tagInfo() const