CMS 3D CMS Logo

HcalPFCutsHandler.cc
Go to the documentation of this file.
3 
5  m_name = ps.getUntrackedParameter<std::string>("name", "HcalPFCutsHandler");
6  sinceTime = ps.getUntrackedParameter<unsigned>("IOVRun", 0);
7 }
8 
10 
12  edm::LogInfo("HcalPFCutsHandler") << "------- " << m_name << " - > getNewObjects\n"
13  <<
14  //check whats already inside of database
15  "got offlineInfo" << tagInfo().name << ", size " << tagInfo().size << ", last object valid since "
17 
18  if (!myDBObject)
19  throw cms::Exception("Empty DB object") << m_name << " has received empty object - nothing to write to DB";
20 
21  // IOV information
22  cond::Time_t myTime = sinceTime;
23 
24  edm::LogInfo("HcalPFCutsHandler") << "Using IOV run " << sinceTime;
25 
26  // prepare for transfer:
27  m_to_transfer.push_back(std::make_pair(myDBObject, myTime));
28 
29  edm::LogInfo("HcalPFCutsHandler") << "------- " << m_name << " - > getNewObjects" << std::endl;
30 }
31 
Iov_t lastInterval
Definition: Types.h:73
Time_t since
Definition: Types.h:53
size_t size
Definition: Types.h:74
HcalPFCuts * myDBObject
std::string name
Definition: Types.h:72
T getUntrackedParameter(std::string const &, T const &) const
cond::TagInfo_t const & tagInfo() const
void initObject(HcalPFCuts *)
void getNewObjects() override
unsigned long long Time_t
Definition: Time.h:14
std::vector< std::pair< HcalPFCuts *, Time_t > > m_to_transfer
unsigned int sinceTime
Log< level::Info, false > LogInfo
~HcalPFCutsHandler() override
HcalPFCutsHandler(edm::ParameterSet const &)