CMS 3D CMS Logo

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 <ctime>
10 
13 
24 
27 
31 
35 
37 
38 namespace edm {
39  class ParameterSet;
40  class Event;
41  class EventSetup;
42 } // namespace edm
43 
44 namespace popcon {
45 
46  class EcalTPGWeightGroupHandler : public popcon::PopConSourceHandler<EcalTPGWeightGroup> {
47  public:
49  ~EcalTPGWeightGroupHandler() override;
50 
51  std::map<std::string, int> makeStripId();
52 
53  void getNewObjects() override;
54 
55  std::string id() const override { return m_name; }
56 
57  void readtxtFile();
58  void readxmlFile();
59 
60  void readFromFile(const char* inputFile);
61  void writeFile(const char* inputFile);
62 
64 
65  private:
67  std::ostringstream streamOut;
68  streamOut << value;
69  return streamOut.str();
70  }
71 
72  unsigned int m_firstRun;
73  unsigned int m_lastRun;
74 
75  std::map<std::string, int> correspId;
76 
85  unsigned int m_runnr;
91  unsigned int m_i_run_number;
93  };
94 } // namespace popcon
95 #endif
popcon::EcalTPGWeightGroupHandler::m_runtype
std::string m_runtype
Definition: EcalTPGWeightGroupHandler.h:86
EcalCondDBInterface
Definition: EcalCondDBInterface.h:37
EcalElectronicsMapping
Definition: EcalElectronicsMapping.h:28
PopConSourceHandler.h
Handle.h
MessageLogger.h
ESHandle.h
popcon::EcalTPGWeightGroupHandler::m_name
std::string m_name
Definition: EcalTPGWeightGroupHandler.h:84
edm
HLT enums.
Definition: AlignableModifier.h:19
EBDetId.h
EEDetId.h
popcon::EcalTPGWeightGroupHandler::m_pass
std::string m_pass
Definition: EcalTPGWeightGroupHandler.h:82
popcon::EcalTPGWeightGroupHandler::m_file_type
std::string m_file_type
Definition: EcalTPGWeightGroupHandler.h:88
popcon::EcalTPGWeightGroupHandler::m_runnr
unsigned int m_runnr
Definition: EcalTPGWeightGroupHandler.h:85
MakerMacros.h
PoolDBOutputService.h
Service.h
popcon::EcalTPGWeightGroupHandler::m_file_name
std::string m_file_name
Definition: EcalTPGWeightGroupHandler.h:89
popcon::EcalTPGWeightGroupHandler::m_lastRun
unsigned int m_lastRun
Definition: EcalTPGWeightGroupHandler.h:73
popcon::EcalTPGWeightGroupHandler::EcalTPGWeightGroupHandler
EcalTPGWeightGroupHandler(edm::ParameterSet const &)
Definition: EcalTPGWeightGroupHandler.cc:30
Event
popcon::EcalTPGWeightGroupHandler::m_location
std::string m_location
Definition: EcalTPGWeightGroupHandler.h:78
popcon::EcalTPGWeightGroupHandler::to_string
std::string to_string(char value[])
Definition: EcalTPGWeightGroupHandler.h:66
popcon::EcalTPGWeightGroupHandler::m_user
std::string m_user
Definition: EcalTPGWeightGroupHandler.h:81
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
EcalTPGWeightGroup.h
popcon::EcalTPGWeightGroupHandler::makeStripId
std::map< std::string, int > makeStripId()
all_monitoring_types.h
edm::ParameterSet
Definition: ParameterSet.h:47
Timestamp.h
Event.h
ParameterSet
Definition: Functions.h:16
popcon::EcalTPGWeightGroupHandler::m_sid
std::string m_sid
Definition: EcalTPGWeightGroupHandler.h:80
popcon::EcalTPGWeightGroupHandler::m_i_version
int m_i_version
Definition: EcalTPGWeightGroupHandler.h:90
dtResolutionTest_cfi.inputFile
inputFile
Definition: dtResolutionTest_cfi.py:14
value
Definition: value.py:1
popcon::EcalTPGWeightGroupHandler::m_i_weightGroup
int m_i_weightGroup
Definition: EcalTPGWeightGroupHandler.h:92
popcon::EcalTPGWeightGroupHandler::readtxtFile
void readtxtFile()
Definition: EcalTPGWeightGroupHandler.cc:303
popcon::EcalTPGWeightGroupHandler::econn
EcalCondDBInterface * econn
Definition: EcalTPGWeightGroupHandler.h:63
popcon::PopConSourceHandler
Definition: PopConSourceHandler.h:30
popcon::EcalTPGWeightGroupHandler::getNewObjects
void getNewObjects() override
Definition: EcalTPGWeightGroupHandler.cc:50
popcon::EcalTPGWeightGroupHandler::readxmlFile
void readxmlFile()
Definition: EcalTPGWeightGroupHandler.cc:330
popcon
Definition: Exception.h:6
popcon::EcalTPGWeightGroupHandler::ecalMapping_
const EcalElectronicsMapping * ecalMapping_
Definition: EcalTPGWeightGroupHandler.h:77
relativeConstraints.value
value
Definition: relativeConstraints.py:53
popcon::EcalTPGWeightGroupHandler::~EcalTPGWeightGroupHandler
~EcalTPGWeightGroupHandler() override
Definition: EcalTPGWeightGroupHandler.cc:48
ParameterSetfwd.h
EventSetup.h
popcon::EcalTPGWeightGroupHandler::id
std::string id() const override
Definition: EcalTPGWeightGroupHandler.h:55
EcalTPGWeightGroupRcd.h
popcon::EcalTPGWeightGroupHandler::m_locationsource
std::string m_locationsource
Definition: EcalTPGWeightGroupHandler.h:83
Oracle.h
popcon::EcalTPGWeightGroupHandler::m_gentag
std::string m_gentag
Definition: EcalTPGWeightGroupHandler.h:79
EventSetup
popcon::EcalTPGWeightGroupHandler::m_firstRun
unsigned int m_firstRun
Definition: EcalTPGWeightGroupHandler.h:72
ParameterSet.h
popcon::EcalTPGWeightGroupHandler::m_i_tag
std::string m_i_tag
Definition: EcalTPGWeightGroupHandler.h:87
popcon::EcalTPGWeightGroupHandler::correspId
std::map< std::string, int > correspId
Definition: EcalTPGWeightGroupHandler.h:75
EventSetupRecordKey.h
EcalCondDBInterface.h
popcon::EcalTPGWeightGroupHandler::readFromFile
void readFromFile(const char *inputFile)
Definition: EcalTPGWeightGroupHandler.cc:391
popcon::EcalTPGWeightGroupHandler
Definition: EcalTPGWeightGroupHandler.h:46
popcon::EcalTPGWeightGroupHandler::writeFile
void writeFile(const char *inputFile)
Definition: EcalTPGWeightGroupHandler.cc:429
popcon::EcalTPGWeightGroupHandler::m_i_run_number
unsigned int m_i_run_number
Definition: EcalTPGWeightGroupHandler.h:91