CMS 3D CMS Logo

HcalTPParametersHandler.cc
Go to the documentation of this file.
4 #include <memory>
5 
7  m_name = ps.getUntrackedParameter<std::string>("name","HcalTPParametersHandler");
8  sinceTime = ps.getUntrackedParameter<unsigned>("IOVRun",0);
9 }
10 
12 
14  edm::LogInfo ("HcalCondTools") << "------- " << m_name
15  << " - > getNewObjects\n" << "got offlineInfo"
16  << tagInfo().name << ", size "
17  << tagInfo().size
18  << ", last object valid since "
19  << tagInfo().lastInterval.first << std::endl;
20 
21  if (!myDBObject)
22  throw cms::Exception("Empty DB object") << m_name
23  << " has received empty object - nothing to write to DB"
24  << std::endl;
25 
26  // IOV information
27  cond::Time_t myTime = sinceTime;
28 
29  edm::LogInfo ("HcalCondTools") << "Using IOV run " << sinceTime << std::endl;
30 
31  // prepare for transfer:
32  m_to_transfer.push_back(std::make_pair(myDBObject,myTime));
33 
34  edm::LogInfo ("HcalCondTools") << "------- " << m_name
35  << " - > getNewObjects" << std::endl;
36 
37 }
38 
40  myDBObject = fObject;
41 }
T getUntrackedParameter(std::string const &, T const &) const
size_t size
Definition: Types.h:78
std::string name
Definition: Types.h:74
cond::ValidityInterval lastInterval
Definition: Types.h:76
void initObject(HcalTPParameters *)
unsigned long long Time_t
Definition: Time.h:16
HcalTPParametersHandler(edm::ParameterSet const &)