CMS 3D CMS Logo

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