CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HcalZSThresholdsHandler.cc
Go to the documentation of this file.
4 #include <memory>
5 
7 {
8  m_name = ps.getUntrackedParameter<std::string>("name","HcalZSThresholdsHandler");
9  sinceTime = ps.getUntrackedParameter<unsigned>("IOVRun",0);
10 }
11 
13 {
14 }
15 
17 {
18  // edm::LogInfo ("HcalZSThresholdsHandler")
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("HcalZSThresholdsHandler") << "------- " << m_name << " - > getNewObjects" << std::endl;
42 
43 }
44 
46 {
47  myDBObject = fObject;
48 }
T getUntrackedParameter(std::string const &, T const &) const
HcalZSThresholdsHandler(edm::ParameterSet const &)
size_t size
Definition: Types.h:77
std::string name
Definition: Types.h:73
cond::ValidityInterval lastInterval
Definition: Types.h:75
unsigned long long Time_t
Definition: Time.h:16
void initObject(HcalZSThresholds *)
tuple cout
Definition: gather_cfg.py:121