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;
100 std::string
label=
"";
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)
std::string lastPayloadToken
OldContainer m_to_transfer
cond::TagInfo const & tagInfo() const
cond::LogDBEntry const & logDBEntry() const
bool checkForCompatibility(std::stringstream &input, std::stringstream &output, std::string &label)
void getValue(SiStripFedCabling *&val)
Contains cabling info at the device level, including DetId, APV pair numbers, hardware addresses...
cond::ValidityInterval lastInterval
tuple size
Write out results.