1 #ifndef SISTRIPPOPCON_CONFIGDB_HANDLER_H 2 #define SISTRIPPOPCON_CONFIGDB_HANDLER_H 32 m_name(pset.getUntrackedParameter<
std::
string>(
"name",
"SiStripPopPopConConfigDbObjHandler")),
33 m_since(pset.getUntrackedParameter<uint32_t>(
"since",5)),
43 edm::LogInfo (
"SiStripPopPopConConfigDbObjHandler") <<
"[getNewObjects] for PopCon application " <<
m_name;
47 ss <<
"\n\n------- " <<
m_name 48 <<
" - > getNewObjects\n";
51 ss <<
"got offlineInfo"<<
53 <<
" , last object valid since " 70 ss <<
" First object for this tag ";
72 edm::LogInfo (
"SiStripPopPopConConfigDbObjHandler") << ss.str();
77 edm::LogInfo (
"SiStripPopPopConConfigDbObjHandler") <<
"[getNewObjects] for PopCon application " <<
m_name <<
" Done\n--------------\n";
90 edm::LogInfo (
"SiStripPopPopConConfigDbObjHandler") <<
"[isTransferNeeded] checking for transfer: " <<
typeid(
T).
name() << std::endl;
91 std::stringstream ss_logdb, ss;
112 <<
"[isTransferNeeded] the selected conditions are already uploaded in the last iov (" 121 <<
"[isTransferNeeded] the selected conditions will be uploaded: " << ss.str()
122 <<
"\n Going to Upload: "<< ss.str() <<
"\n Last Upload: " << ss_logdb.str() <<
"\n Fine";
131 edm::LogInfo (
"SiStripPopPopConConfigDbObjHandler") <<
"[setForTransfer] " <<
m_name <<
" getting data to be transferred " << std::endl;
136 edm::LogInfo (
"SiStripPopPopConConfigDbObjHandler") <<
"[setForTransfer] " <<
m_name <<
" got data to be transferred from condObjBuilder " << std::endl;
143 edm::LogInfo (
"SiStripPopPopConConfigDbObjHandler") <<
"[setForTransfer] setting since = "<<
m_since <<std::endl;
147 edm::LogInfo (
"SiStripPopPopConConfigDbObjHandler") <<
"[setForTransfer] filling map m_to_transfer" <<std::endl;
150 edm::LogError (
"SiStripPopPopConConfigDbObjHandler") <<
"[setForTransfer] " <<
m_name <<
" : NULL pointer of obj " <<
typeid(
T).
name() <<
" reported by SiStripCondObjBuilderFromDb\n Transfer aborted"<<std::endl;
163 #endif //SISTRIPPOPCON_CONFIGDB_HANDLER_H ~SiStripPopConConfigDbObjHandler() override
std::string m_userTextLog
std::string const & userTextLog() const
edm::Service< SiStripCondObjBuilderFromDb > condObjBuilder
unsigned long long m_since
SiStripPopConConfigDbObjHandler(const edm::ParameterSet &pset)
OldContainer m_to_transfer
cond::ValidityInterval lastInterval
bool checkForCompatibility(std::stringstream &input, std::stringstream &output, std::string &label)
void getValue(SiStripFedCabling *&val)
cond::LogDBEntry_t const & logDBEntry() const
void getNewObjects() override
std::string destinationDB
std::string id() const override
std::string lastPayloadToken
Contains cabling info at the device level, including DetId, APV pair numbers, hardware addresses...
cond::TagInfo_t const & tagInfo() const