CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
EcalTPGWeightIdMapHandler.h
Go to the documentation of this file.
1 #ifndef ECAL_TPG_WEIGHTIDMAP_HANDLER_H
2 #define ECAL_TPG_WEIGHTIDMAP_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 namespace edm {
40  class ParameterSet;
41  class Event;
42  class EventSetup;
43 }
44 
45 namespace popcon
46 {
47 
48 
49  class EcalTPGWeightIdMapHandler : public popcon::PopConSourceHandler<EcalTPGWeightIdMap>
50  {
51 
52  public:
55 
56  void getNewObjects();
57 
58  std::string id() const { return m_name;}
59 
60  void readFromFile(const char* inputFile) ;
61  void writeFile(const char* inputFile);
62 
64 
65  private:
66  std::string to_string( char value[]) {
67  std::ostringstream streamOut;
68  streamOut << value;
69  return streamOut.str();
70  }
71 
73 
74  unsigned int m_firstRun ;
75  unsigned int m_lastRun ;
76 
77  std::string m_location;
78  std::string m_gentag;
79  std::string m_sid;
80  std::string m_user;
81  std::string m_pass;
82  std::string m_locationsource;
83  std::string m_name;
84  unsigned int m_runnr;
85  std::string m_runtype;
86  std::string m_i_tag;
88  unsigned int m_i_run_number;
90 
91  };
92 }
93 #endif
94 
const EcalTPGWeightIdMap * myweightIdMap
EcalTPGWeightIdMapHandler(edm::ParameterSet const &)