1 #ifndef DQMOffline_CalibTracker_SiStripDQMPopConSourceHandler_H
2 #define DQMOffline_CalibTracker_SiStripDQMPopConSourceHandler_H
24 m_since{
pset.getUntrackedParameter<uint32_t>(
"since", 5)},
69 <<
"[SiStripPopConDbObjHandler::getNewObjects] for PopCon application " << m_name;
73 ss <<
"\n\n------- " << m_name <<
" - > getNewObjects\n";
76 ss <<
"\ngot offlineInfo" << this->
tagInfo().name <<
"\n size " << this->
tagInfo().size
77 <<
"\n last object valid since " << this->
tagInfo().lastInterval.since <<
"\n token "
78 << this->
tagInfo().lastInterval.payloadId <<
"\n UserText " << this->userTextLog() <<
"\n LogDBEntry \n"
79 << this->logDBEntry().logId <<
"\n"
80 << this->logDBEntry().destinationDB <<
"\n"
81 << this->logDBEntry().provenance <<
"\n"
82 << this->logDBEntry().usertext <<
"\n"
83 << this->logDBEntry().iovtag <<
"\n"
84 << this->logDBEntry().iovtimetype <<
"\n"
85 << this->logDBEntry().payloadIdx <<
"\n"
86 << this->logDBEntry().payloadClass <<
"\n"
87 << this->logDBEntry().payloadToken <<
"\n"
88 << this->logDBEntry().exectime <<
"\n"
89 << this->logDBEntry().execmessage <<
"\n";
90 if (!this->logDBEntry().usertext.empty())
91 ss <<
"\n-- user text " << this->logDBEntry().usertext.substr(this->logDBEntry().usertext.find_last_of(
"@"));
93 ss <<
" First object for this tag ";
98 if (isTransferNeeded())
102 <<
"[SiStripPopConDbObjHandler::getNewObjects] for PopCon application " << m_name <<
" Done\n--------------\n";
105 template <
typename T>
107 edm::LogInfo(
"SiStripPopConDbObjHandler") <<
"[SiStripPopConDbObjHandler::isTransferNeeded] checking for transfer ";
109 if (m_iovSequence && (m_since <= this->
tagInfo().lastInterval.since)) {
111 <<
"[SiStripPopConDbObjHandler::isTransferNeeded] \nthe current starting iov " << m_since
112 <<
"\nis not compatible with the last iov (" << this->
tagInfo().lastInterval.since <<
") open for the object "
113 << this->logDBEntry().payloadClass <<
" \nin the db " << this->logDBEntry().destinationDB
114 <<
" \n NO TRANSFER NEEDED";
121 if (!this->logDBEntry().usertext.empty())
122 ss_logdb = this->logDBEntry().usertext.substr(this->logDBEntry().usertext.find_last_of(
"@") + 2);
125 if ((!m_iovSequence) || checkForCompatibility(ss_logdb)) {
126 this->m_userTextLog =
"@ " +
ss;
129 <<
"[SiStripPopConDbObjHandler::isTransferNeeded] \nthe selected conditions will be uploaded: " <<
ss
130 <<
"\n Current MetaData - " <<
ss <<
"\n Last Uploaded MetaData- " << ss_logdb <<
"\n Fine";
133 }
else if (m_iovSequence) {
135 <<
"[SiStripPopConDbObjHandler::isTransferNeeded] \nthe current MetaData conditions " <<
ss
136 <<
"\nare not compatible with the MetaData Conditions of the last iov (" << this->
tagInfo().lastInterval.since
137 <<
") open for the object " << this->logDBEntry().payloadClass <<
" \nin the db "
138 << this->logDBEntry().destinationDB <<
" \nConditions: " << ss_logdb <<
"\n NO TRANSFER NEEDED";
145 template <
typename T>
148 <<
"[SiStripPopConDbObjHandler::setForTransfer] " << m_name <<
" getting data to be transferred ";
152 else if (m_debugMode)
153 m_since = this->
tagInfo().lastInterval.since + 1;
155 T*
obj = this->getObj();
157 edm::LogInfo(
"SiStripPopConDbObjHandler") <<
"setting since = " << m_since;
158 this->m_to_transfer.push_back(std::make_pair(
obj, m_since));
161 <<
"[SiStripPopConDbObjHandler::setForTransfer] " << m_name <<
" : NULL pointer of obj " <<
typeid(
T).
name()
162 <<
" reported by SiStripCondObjBuilderFromDb\n Transfer aborted";
168 std::cout <<
"SiStripPedestalsDQMService::getMetaDataString" << std::endl;
169 std::stringstream
ss;
170 ss <<
"Run " << m_runNumber << std::endl;
174 #endif // DQMOffline_CalibTracker_SiStripDQMPopConSourceHandler_H