CMS 3D CMS Logo

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