1 #ifndef SISTRIPPOPCON_CONFIGDB_HANDLER_H
2 #define SISTRIPPOPCON_CONFIGDB_HANDLER_H
33 m_name(pset.getUntrackedParameter<std::
string>(
"name",
"SiStripPopPopConConfigDbObjHandler")),
34 m_since(pset.getUntrackedParameter<uint32_t>(
"since",5)),
44 edm::LogInfo (
"SiStripPopPopConConfigDbObjHandler") <<
"[getNewObjects] for PopCon application " <<
m_name;
48 ss <<
"\n\n------- " <<
m_name
49 <<
" - > getNewObjects\n";
52 ss <<
"got offlineInfo"<<
54 <<
" , last object valid since "
71 ss <<
" First object for this tag ";
73 edm::LogInfo (
"SiStripPopPopConConfigDbObjHandler") << ss.str();
78 edm::LogInfo (
"SiStripPopPopConConfigDbObjHandler") <<
"[getNewObjects] for PopCon application " <<
m_name <<
" Done\n--------------\n";
91 edm::LogInfo (
"SiStripPopPopConConfigDbObjHandler") <<
"[isTransferNeeded] checking for transfer: " <<
typeid(
T).
name() << std::endl;
92 std::stringstream ss_logdb,
ss;
113 <<
"[isTransferNeeded] the selected conditions are already uploaded in the last iov ("
122 <<
"[isTransferNeeded] the selected conditions will be uploaded: " << ss.str()
123 <<
"\n Going to Upload: "<< ss.str() <<
"\n Last Upload: " << ss_logdb.str() <<
"\n Fine";
132 edm::LogInfo (
"SiStripPopPopConConfigDbObjHandler") <<
"[setForTransfer] " <<
m_name <<
" getting data to be transferred " << std::endl;
137 edm::LogInfo (
"SiStripPopPopConConfigDbObjHandler") <<
"[setForTransfer] " <<
m_name <<
" got data to be transferred from condObjBuilder " << std::endl;
144 edm::LogInfo (
"SiStripPopPopConConfigDbObjHandler") <<
"[setForTransfer] setting since = "<<
m_since <<std::endl;
148 edm::LogInfo (
"SiStripPopPopConConfigDbObjHandler") <<
"[setForTransfer] filling map m_to_transfer" <<std::endl;
151 edm::LogError (
"SiStripPopPopConConfigDbObjHandler") <<
"[setForTransfer] " <<
m_name <<
" : NULL pointer of obj " <<
typeid(
T).
name() <<
" reported by SiStripCondObjBuilderFromDb\n Transfer aborted"<<std::endl;
164 #endif //SISTRIPPOPCON_CONFIGDB_HANDLER_H
~SiStripPopConConfigDbObjHandler()
std::string m_userTextLog
std::string const & userTextLog() const
edm::Service< SiStripCondObjBuilderFromDb > condObjBuilder
unsigned long long m_since
std::string destinationDB
SiStripPopConConfigDbObjHandler(const edm::ParameterSet &pset)
OldContainer m_to_transfer
cond::LogDBEntry const & logDBEntry() const
cond::ValidityInterval lastInterval
bool checkForCompatibility(std::stringstream &input, std::stringstream &output, std::string &label)
void getValue(SiStripFedCabling *&val)
std::string lastPayloadToken
Contains cabling info at the device level, including DetId, APV pair numbers, hardware addresses...
volatile std::atomic< bool > shutdown_flag false
tuple size
Write out results.
cond::TagInfo_t const & tagInfo() const