CMS 3D CMS Logo

EcalTPGOddWeightIdMapHandler.h
Go to the documentation of this file.
1 #ifndef CONDTOOLS_ECAL_ECALTPGODDWEIGHTIDMAPHANDLER_H
2 #define CONDTOOLS_ECAL_ECALTPGODDWEIGHTIDMAPHANDLER_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 EcalTPGOddWeightIdMapHandler : public popcon::PopConSourceHandler<EcalTPGOddWeightIdMap> {
45  public:
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
popcon::EcalTPGOddWeightIdMapHandler::~EcalTPGOddWeightIdMapHandler
~EcalTPGOddWeightIdMapHandler() override
Definition: EcalTPGOddWeightIdMapHandler.cc:40
Handle.h
popcon::EcalTPGOddWeightIdMapHandler::id
std::string id() const override
Definition: EcalTPGOddWeightIdMapHandler.h:51
MessageLogger.h
popcon::EcalTPGOddWeightIdMapHandler::EcalTPGOddWeightIdMapHandler
EcalTPGOddWeightIdMapHandler(edm::ParameterSet const &)
Definition: EcalTPGOddWeightIdMapHandler.cc:22
ESHandle.h
popcon::EcalTPGOddWeightIdMapHandler::m_location
std::string m_location
Definition: EcalTPGOddWeightIdMapHandler.h:73
popcon::EcalTPGOddWeightIdMapHandler::writeFile
void writeFile(const char *inputFile)
Definition: EcalTPGOddWeightIdMapHandler.cc:381
popcon::EcalTPGOddWeightIdMapHandler::m_file_type
std::string m_file_type
Definition: EcalTPGOddWeightIdMapHandler.h:83
edm
HLT enums.
Definition: AlignableModifier.h:19
EBDetId.h
popcon::EcalTPGOddWeightIdMapHandler::m_i_oddweightIdMap
int m_i_oddweightIdMap
Definition: EcalTPGOddWeightIdMapHandler.h:87
EEDetId.h
popcon::EcalTPGOddWeightIdMapHandler::m_i_version
int m_i_version
Definition: EcalTPGOddWeightIdMapHandler.h:85
popcon::EcalTPGOddWeightIdMapHandler::myweightIdMap
const EcalTPGOddWeightIdMap * myweightIdMap
Definition: EcalTPGOddWeightIdMapHandler.h:68
EcalTPGOddWeightIdMapRcd.h
popcon::EcalTPGOddWeightIdMapHandler::readtxtFile
void readtxtFile()
Definition: EcalTPGOddWeightIdMapHandler.cc:248
popcon::EcalTPGOddWeightIdMapHandler::m_firstRun
unsigned int m_firstRun
Definition: EcalTPGOddWeightIdMapHandler.h:70
MakerMacros.h
PoolDBOutputService.h
EcalTPGOddWeightIdMap.h
EcalTPGOddWeightIdMap
Definition: EcalTPGOddWeightIdMap.h:10
popcon::EcalTPGOddWeightIdMapHandler::m_runtype
std::string m_runtype
Definition: EcalTPGOddWeightIdMapHandler.h:81
Service.h
Event
popcon::EcalTPGOddWeightIdMapHandler::m_gentag
std::string m_gentag
Definition: EcalTPGOddWeightIdMapHandler.h:74
popcon::EcalTPGOddWeightIdMapHandler::m_name
std::string m_name
Definition: EcalTPGOddWeightIdMapHandler.h:79
popcon::EcalTPGOddWeightIdMapHandler::m_runnr
unsigned int m_runnr
Definition: EcalTPGOddWeightIdMapHandler.h:80
popcon::EcalTPGOddWeightIdMapHandler::m_file_name
std::string m_file_name
Definition: EcalTPGOddWeightIdMapHandler.h:84
popcon::EcalTPGOddWeightIdMapHandler::readFromFile
void readFromFile(const char *inputFile)
Definition: EcalTPGOddWeightIdMapHandler.cc:343
popcon::EcalTPGOddWeightIdMapHandler::m_sid
std::string m_sid
Definition: EcalTPGOddWeightIdMapHandler.h:75
all_monitoring_types.h
edm::ParameterSet
Definition: ParameterSet.h:47
popcon::EcalTPGOddWeightIdMapHandler::m_locationsource
std::string m_locationsource
Definition: EcalTPGOddWeightIdMapHandler.h:78
Timestamp.h
Event.h
ParameterSet
Definition: Functions.h:16
popcon::EcalTPGOddWeightIdMapHandler::getNewObjects
void getNewObjects() override
Definition: EcalTPGOddWeightIdMapHandler.cc:42
dtResolutionTest_cfi.inputFile
inputFile
Definition: dtResolutionTest_cfi.py:14
popcon::EcalTPGOddWeightIdMapHandler::readxmlFile
void readxmlFile()
Definition: EcalTPGOddWeightIdMapHandler.cc:283
popcon::EcalTPGOddWeightIdMapHandler::m_lastRun
unsigned int m_lastRun
Definition: EcalTPGOddWeightIdMapHandler.h:71
value
Definition: value.py:1
popcon::EcalTPGOddWeightIdMapHandler::m_user
std::string m_user
Definition: EcalTPGOddWeightIdMapHandler.h:76
popcon::EcalTPGOddWeightIdMapHandler::econn
EcalCondDBInterface * econn
Definition: EcalTPGOddWeightIdMapHandler.h:59
popcon::PopConSourceHandler
Definition: PopConSourceHandler.h:30
popcon::EcalTPGOddWeightIdMapHandler::m_pass
std::string m_pass
Definition: EcalTPGOddWeightIdMapHandler.h:77
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
popcon
Definition: Exception.h:6
relativeConstraints.value
value
Definition: relativeConstraints.py:53
popcon::EcalTPGOddWeightIdMapHandler::m_i_tag
std::string m_i_tag
Definition: EcalTPGOddWeightIdMapHandler.h:82
ParameterSetfwd.h
EventSetup.h
popcon::EcalTPGOddWeightIdMapHandler::to_string
std::string to_string(char value[])
Definition: EcalTPGOddWeightIdMapHandler.h:62
Oracle.h
popcon::EcalTPGOddWeightIdMapHandler
Definition: EcalTPGOddWeightIdMapHandler.h:44
EventSetup
ParameterSet.h
EventSetupRecordKey.h
EcalCondDBInterface.h
popcon::EcalTPGOddWeightIdMapHandler::m_i_run_number
unsigned int m_i_run_number
Definition: EcalTPGOddWeightIdMapHandler.h:86