CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HcalCovarianceMatricesHandler.cc
Go to the documentation of this file.
4 #include <memory>
5 
7 {
8  m_name = ps.getUntrackedParameter<std::string>("name","HcalCovarianceMatricesHandler");
9  sinceTime = ps.getUntrackedParameter<unsigned>("IOVRun",0);
10 }
11 
13 {
14 }
15 
17 {
18  // edm::LogInfo ("HcalCovarianceMatricesHandler")
19  std::cout
20  << "------- " << m_name
21  << " - > getNewObjects\n" <<
22  //check whats already inside of database
23  "got offlineInfo"<<
24  tagInfo().name << ", size " << tagInfo().size
25  << ", last object valid since "
26  << tagInfo().lastInterval.first << std::endl;
27 
28  if (!myDBObject)
29  throw cms::Exception("Empty DB object") << m_name
30  << " has received empty object - nothing to write to DB"
31  << std::endl;
32 
33  // IOV information
34  cond::Time_t myTime = sinceTime;
35 
36  std::cout << "Using IOV run " << sinceTime << std::endl;
37 
38  // prepare for transfer:
39  m_to_transfer.push_back(std::make_pair(myDBObject,myTime));
40 
41  edm::LogInfo("HcalCovarianceMatricesHandler") << "------- " << m_name << " - > getNewObjects" << std::endl;
42 
43 }
44 
46 {
47  myDBObject = fObject;
48 }
T getUntrackedParameter(std::string const &, T const &) const
void initObject(HcalCovarianceMatrices *)
std::string name
Definition: TagInfo.h:9
unsigned long long Time_t
Definition: Time.h:16
size_t size
Definition: TagInfo.h:13
cond::ValidityInterval lastInterval
Definition: TagInfo.h:11
tuple cout
Definition: gather_cfg.py:121
HcalCovarianceMatricesHandler(edm::ParameterSet const &)