CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
EcalTPGOddWeightIdMapHandler.h
Go to the documentation of this file.
1 #ifndef CONDTOOLS_ECAL_ECALTPGODDWEIGHTIDMAPHANDLER_H
2 #define CONDTOOLS_ECAL_ECALTPGODDWEIGHTIDMAPHANDLER_H
3 
4 #include <ctime>
5 #include <iostream>
6 #include <map>
7 #include <string>
8 #include <typeinfo>
9 #include <vector>
10 
13 
24 
27 
31 
35 
36 namespace edm {
37  class ParameterSet;
38  class Event;
39  class EventSetup;
40 } // namespace edm
41 
42 namespace popcon {
43 
44  class EcalTPGOddWeightIdMapHandler : public popcon::PopConSourceHandler<EcalTPGOddWeightIdMap> {
45  public:
48 
49  void getNewObjects() override;
50 
51  std::string id() const override { return m_name; }
52 
53  void readtxtFile();
54  void readxmlFile();
55 
56  void readFromFile(const char* inputFile);
57  void writeFile(const char* inputFile);
58 
60 
61  private:
63  std::ostringstream streamOut;
64  streamOut << value;
65  return streamOut.str();
66  }
67 
69 
70  unsigned int m_firstRun;
71  unsigned int m_lastRun;
72 
80  unsigned int m_runnr;
86  unsigned int m_i_run_number;
88  };
89 } // namespace popcon
90 #endif
EcalTPGOddWeightIdMapHandler(edm::ParameterSet const &)