CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
EcalTPGFineGrainStripEEHandler.h
Go to the documentation of this file.
1 #ifndef ECAL_TPG_FINEGRAINSTRIPEE_HANDLER_H
2 #define ECAL_TPG_FINEGRAINSTRIPEE_HANDLER_H
3 
4 #include <vector>
5 #include <typeinfo>
6 #include <string>
7 #include <map>
8 #include <iostream>
9 #include <time.h>
10 
13 
14 
25 
26 
27 
30 
34 
38 
39 //class EcalElectronicsMapping;
40 
41 namespace edm {
42  class ParameterSet;
43  class Event;
44  class EventSetup;
45 }
46 
47 namespace popcon
48 {
49 
50 
51  class EcalTPGFineGrainStripEEHandler : public popcon::PopConSourceHandler<EcalTPGFineGrainStripEE>
52  {
53 
54  public:
57 
58  std::map<std::string, int> makeStripIdEB();
59  std::map<std::string, int> makeStripIdEE();
60 
61  void getNewObjects();
62 
63  std::string id() const { return m_name;}
64 
65  void readFromFile(const char* inputFile) ;
66  void writeFile(const char* inputFile);
67 
68 
70 
71  private:
72  std::string to_string( char value[]) {
73  std::ostringstream streamOut;
74  streamOut << value;
75  return streamOut.str();
76  }
77 
78  unsigned int m_firstRun ;
79  unsigned int m_lastRun ;
80  std::map<std::string, int> correspEBId;
81  std::map<std::string, int> correspEEId;
82 
83  std::string m_location;
84  std::string m_gentag;
85  std::string m_sid;
86  std::string m_user;
87  std::string m_pass;
88  std::string m_locationsource;
89  std::string m_name;
90  unsigned int m_runnr;
91  std::string m_runtype;
92  std::string m_i_tag;
94  unsigned int m_i_run_number;
96 
97  };
98 }
99 #endif
100 
std::map< std::string, int > makeStripIdEB()
std::map< std::string, int > makeStripIdEE()