CMS 3D CMS Logo

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