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 "
72 ss <<
" First object for this tag ";
74 edm::LogInfo (
"SiStripPopPopConConfigDbObjHandler") << ss.str();
79 edm::LogInfo (
"SiStripPopPopConConfigDbObjHandler") <<
"[getNewObjects] for PopCon application " <<
m_name <<
" Done\n--------------\n";
92 edm::LogInfo (
"SiStripPopPopConConfigDbObjHandler") <<
"[isTransferNeeded] checking for transfer: " <<
typeid(T).
name() << std::endl;
93 std::stringstream ss_logdb, ss;
101 std::string
label=
"";
114 <<
"[isTransferNeeded] the selected conditions are already uploaded in the last iov ("
123 <<
"[isTransferNeeded] the selected conditions will be uploaded: " << ss.str()
124 <<
"\n Going to Upload: "<< ss.str() <<
"\n Last Upload: " << ss_logdb.str() <<
"\n Fine";
133 edm::LogInfo (
"SiStripPopPopConConfigDbObjHandler") <<
"[setForTransfer] " <<
m_name <<
" getting data to be transferred " << std::endl;
138 edm::LogInfo (
"SiStripPopPopConConfigDbObjHandler") <<
"[setForTransfer] " <<
m_name <<
" got data to be transferred from condObjBuilder " << std::endl;
145 edm::LogInfo (
"SiStripPopPopConConfigDbObjHandler") <<
"[setForTransfer] setting since = "<<
m_since <<std::endl;
149 edm::LogInfo (
"SiStripPopPopConConfigDbObjHandler") <<
"[setForTransfer] filling map m_to_transfer" <<std::endl;
152 edm::LogError (
"SiStripPopPopConConfigDbObjHandler") <<
"[setForTransfer] " <<
m_name <<
" : NULL pointer of obj " <<
typeid(T).
name() <<
" reported by SiStripCondObjBuilderFromDb\n Transfer aborted"<<std::endl;
165 #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)
tuple obj
Example code starts here #.
void getValue(SiStripFedCabling *&val)
std::string payloadContainer
Contains cabling info at the device level, including DetId, APV pair numbers, hardware addresses...
cond::ValidityInterval lastInterval
tuple size
Write out results.