CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
EcalTPGLutGroupHandler.h
Go to the documentation of this file.
1 #ifndef ECAL_TPG_LUTGROUP_HANDLER_H
2 #define ECAL_TPG_LUTGROUP_HANDLER_H
3 
4 #include <vector>
5 #include <typeinfo>
6 #include <string>
7 #include <map>
8 #include <iostream>
9 #include <ctime>
10 
13 
24 
27 
31 
35 
37 
38 namespace edm {
39  class ParameterSet;
40  class Event;
41  class EventSetup;
42 } // namespace edm
43 
44 //class EcalElectronicsMapping;
45 
46 namespace popcon {
47 
48  class EcalTPGLutGroupHandler : public popcon::PopConSourceHandler<EcalTPGLutGroup> {
49  public:
51  ~EcalTPGLutGroupHandler() override;
52 
53  std::map<std::string, int> makeTTEBDetId();
54  std::map<std::string, int> makeTTEEDetId();
55 
56  void getNewObjects() override;
57 
58  std::string id() const override { return m_name; }
59 
60  void readFromFile(const char* inputFile);
61  void writeFile(const char* inputFile);
62 
64 
65  private:
67  std::ostringstream streamOut;
68  streamOut << value;
69  return streamOut.str();
70  }
71 
73  unsigned int m_firstRun;
74  unsigned int m_lastRun;
75  std::map<std::string, int> mapDetEBId;
76  std::map<std::string, int> mapDetEEId;
77 
79 
87  unsigned int m_runnr;
91  unsigned int m_i_run_number;
93  };
94 } // namespace popcon
95 #endif
void readFromFile(const char *inputFile)
const EcalElectronicsMapping * ecalMapping_
void writeFile(const char *inputFile)
std::map< std::string, int > makeTTEBDetId()
std::string to_string(char value[])
std::string id() const override
std::map< std::string, int > mapDetEEId
std::map< std::string, int > mapDetEBId
const EcalTPGLutGroup * mypedestals
std::map< std::string, int > makeTTEEDetId()
EcalTPGLutGroupHandler(edm::ParameterSet const &)