CMS 3D CMS Logo

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 <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 EcalTPGWeightIdMapHandler : public popcon::PopConSourceHandler<EcalTPGWeightIdMap> {
45  public:
47  ~EcalTPGWeightIdMapHandler() override;
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
EcalCondDBInterface
Definition: EcalCondDBInterface.h:37
PopConSourceHandler.h
Handle.h
EcalTPGWeightIdMap
Definition: EcalTPGWeightIdMap.h:10
popcon::EcalTPGWeightIdMapHandler::m_pass
std::string m_pass
Definition: EcalTPGWeightIdMapHandler.h:77
MessageLogger.h
popcon::EcalTPGWeightIdMapHandler::readxmlFile
void readxmlFile()
Definition: EcalTPGWeightIdMapHandler.cc:272
popcon::EcalTPGWeightIdMapHandler::m_i_tag
std::string m_i_tag
Definition: EcalTPGWeightIdMapHandler.h:82
popcon::EcalTPGWeightIdMapHandler::id
std::string id() const override
Definition: EcalTPGWeightIdMapHandler.h:51
popcon::EcalTPGWeightIdMapHandler::m_locationsource
std::string m_locationsource
Definition: EcalTPGWeightIdMapHandler.h:78
ESHandle.h
edm
HLT enums.
Definition: AlignableModifier.h:19
EBDetId.h
EEDetId.h
popcon::EcalTPGWeightIdMapHandler::m_name
std::string m_name
Definition: EcalTPGWeightIdMapHandler.h:79
popcon::EcalTPGWeightIdMapHandler::getNewObjects
void getNewObjects() override
Definition: EcalTPGWeightIdMapHandler.cc:42
popcon::EcalTPGWeightIdMapHandler::m_runnr
unsigned int m_runnr
Definition: EcalTPGWeightIdMapHandler.h:80
popcon::EcalTPGWeightIdMapHandler::myweightIdMap
const EcalTPGWeightIdMap * myweightIdMap
Definition: EcalTPGWeightIdMapHandler.h:68
popcon::EcalTPGWeightIdMapHandler::m_location
std::string m_location
Definition: EcalTPGWeightIdMapHandler.h:73
MakerMacros.h
PoolDBOutputService.h
popcon::EcalTPGWeightIdMapHandler::writeFile
void writeFile(const char *inputFile)
Definition: EcalTPGWeightIdMapHandler.cc:369
Service.h
popcon::EcalTPGWeightIdMapHandler::m_file_type
std::string m_file_type
Definition: EcalTPGWeightIdMapHandler.h:83
Event
EcalTPGWeightIdMapRcd.h
popcon::EcalTPGWeightIdMapHandler
Definition: EcalTPGWeightIdMapHandler.h:44
popcon::EcalTPGWeightIdMapHandler::m_user
std::string m_user
Definition: EcalTPGWeightIdMapHandler.h:76
popcon::EcalTPGWeightIdMapHandler::m_runtype
std::string m_runtype
Definition: EcalTPGWeightIdMapHandler.h:81
all_monitoring_types.h
edm::ParameterSet
Definition: ParameterSet.h:47
Timestamp.h
Event.h
ParameterSet
Definition: Functions.h:16
popcon::EcalTPGWeightIdMapHandler::to_string
std::string to_string(char value[])
Definition: EcalTPGWeightIdMapHandler.h:62
popcon::EcalTPGWeightIdMapHandler::m_gentag
std::string m_gentag
Definition: EcalTPGWeightIdMapHandler.h:74
popcon::EcalTPGWeightIdMapHandler::~EcalTPGWeightIdMapHandler
~EcalTPGWeightIdMapHandler() override
Definition: EcalTPGWeightIdMapHandler.cc:40
popcon::EcalTPGWeightIdMapHandler::m_firstRun
unsigned int m_firstRun
Definition: EcalTPGWeightIdMapHandler.h:70
dtResolutionTest_cfi.inputFile
inputFile
Definition: dtResolutionTest_cfi.py:14
value
Definition: value.py:1
popcon::EcalTPGWeightIdMapHandler::m_sid
std::string m_sid
Definition: EcalTPGWeightIdMapHandler.h:75
popcon::EcalTPGWeightIdMapHandler::m_lastRun
unsigned int m_lastRun
Definition: EcalTPGWeightIdMapHandler.h:71
popcon::EcalTPGWeightIdMapHandler::readFromFile
void readFromFile(const char *inputFile)
Definition: EcalTPGWeightIdMapHandler.cc:331
popcon::PopConSourceHandler
Definition: PopConSourceHandler.h:30
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
popcon
Definition: Exception.h:6
popcon::EcalTPGWeightIdMapHandler::m_file_name
std::string m_file_name
Definition: EcalTPGWeightIdMapHandler.h:84
relativeConstraints.value
value
Definition: relativeConstraints.py:53
popcon::EcalTPGWeightIdMapHandler::readtxtFile
void readtxtFile()
Definition: EcalTPGWeightIdMapHandler.cc:238
popcon::EcalTPGWeightIdMapHandler::EcalTPGWeightIdMapHandler
EcalTPGWeightIdMapHandler(edm::ParameterSet const &)
Definition: EcalTPGWeightIdMapHandler.cc:22
ParameterSetfwd.h
EventSetup.h
Oracle.h
EventSetup
ParameterSet.h
EventSetupRecordKey.h
popcon::EcalTPGWeightIdMapHandler::m_i_run_number
unsigned int m_i_run_number
Definition: EcalTPGWeightIdMapHandler.h:86
EcalCondDBInterface.h
popcon::EcalTPGWeightIdMapHandler::m_i_weightIdMap
int m_i_weightIdMap
Definition: EcalTPGWeightIdMapHandler.h:87
EcalTPGWeightIdMap.h
popcon::EcalTPGWeightIdMapHandler::m_i_version
int m_i_version
Definition: EcalTPGWeightIdMapHandler.h:85
popcon::EcalTPGWeightIdMapHandler::econn
EcalCondDBInterface * econn
Definition: EcalTPGWeightIdMapHandler.h:59