test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
EcalTPGWeightGroupHandler.h
Go to the documentation of this file.
1 #ifndef ECAL_TPG_WEIGHTGROUP_HANDLER_H
2 #define ECAL_TPG_WEIGHTGROUP_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 
40 
41 namespace edm {
42  class ParameterSet;
43  class Event;
44  class EventSetup;
45 }
46 
47 namespace popcon
48 {
49 
50 
51  class EcalTPGWeightGroupHandler : public popcon::PopConSourceHandler<EcalTPGWeightGroup>
52  {
53 
54  public:
57 
58  std::map<std::string, int> makeStripId();
59 
60  void getNewObjects();
61 
62  std::string id() const { return m_name;}
63 
64  void readFromFile(const char* inputFile) ;
65  void writeFile(const char* inputFile);
66 
68 
69  private:
71  std::ostringstream streamOut;
72  streamOut << value;
73  return streamOut.str();
74  }
75 
76  unsigned int m_firstRun ;
77  unsigned int m_lastRun ;
78 
79  std::map<std::string, int> correspId;
80 
89  unsigned int m_runnr;
93  unsigned int m_i_run_number;
95  };
96 }
97 #endif
98 
EcalTPGWeightGroupHandler(edm::ParameterSet const &)
const EcalElectronicsMapping * ecalMapping_
std::map< std::string, int > correspId
std::map< std::string, int > makeStripId()