CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
EcalIntercalibHandler.cc
Go to the documentation of this file.
5 
6 #include<iostream>
7 
9  : m_name(ps.getUntrackedParameter<std::string>("name","EcalIntercalibHandler")) {
10 
11  std::cout << "EcalIntercalib Source handler constructor\n" << std::endl;
12  m_firstRun = static_cast<unsigned int>(atoi( ps.getParameter<std::string>("firstRun").c_str()));
13  m_file_highfield = ps.getParameter<std::string>("InputFile");
14 }
15 
17 
19 
20  std::cout << "------- Ecal - > getNewObjects\n";
21 
22  std::ostringstream ss;
23  ss<<"ECAL ";
24 
25  unsigned int irun = m_firstRun;
26 
27  std::cout << "Generating popcon record for run " << irun << "..." << std::flush;
28  std::string file_= m_file_highfield;
29  std::cout << "going to open file "<<file_ << std::flush;
30 
31  EcalCondHeader header;
34  Time_t snc= (Time_t) irun ;
35 
37  std::make_pair(payload,snc));
38 
39  ss << "Run=" << irun << "_Magnet_changed_"<<std::endl;
40  m_userTextLog = ss.str()+";";
41 
42  std::cout << "Ecal - > end of getNewObjects -----------\n";
43 }
T getParameter(std::string const &) const
static int readXML(const std::string &filename, EcalCondHeader &header, EcalFloatCondObjectContainer &record)
EcalIntercalibHandler(edm::ParameterSet const &)
cond::Time_t Time_t
Definition: Time.h:17
EcalIntercalibConstantMap EcalIntercalibConstants
tuple cout
Definition: gather_cfg.py:145