CMS 3D CMS Logo

EcalTPGOddWeightGroupHandler.h
Go to the documentation of this file.
1 #ifndef CONDTOOLS_ECAL_ECALTPGODDWEIGHTGROUPHANDLER_H
2 #define CONDTOOLS_ECAL_ECALTPGODDWEIGHTGROUPHANDLER_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 
37 
38 namespace edm {
39  class ParameterSet;
40  class Event;
41  class EventSetup;
42 } // namespace edm
43 
44 namespace popcon {
45 
46  class EcalTPGOddWeightGroupHandler : public popcon::PopConSourceHandler<EcalTPGOddWeightGroup> {
47  public:
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
EcalCondDBInterface
Definition: EcalCondDBInterface.h:37
popcon::EcalTPGOddWeightGroupHandler::m_i_version
int m_i_version
Definition: EcalTPGOddWeightGroupHandler.h:90
EcalElectronicsMapping
Definition: EcalElectronicsMapping.h:28
PopConSourceHandler.h
Handle.h
popcon::EcalTPGOddWeightGroupHandler::m_i_run_number
unsigned int m_i_run_number
Definition: EcalTPGOddWeightGroupHandler.h:91
MessageLogger.h
popcon::EcalTPGOddWeightGroupHandler::m_runnr
unsigned int m_runnr
Definition: EcalTPGOddWeightGroupHandler.h:85
popcon::EcalTPGOddWeightGroupHandler::m_lastRun
unsigned int m_lastRun
Definition: EcalTPGOddWeightGroupHandler.h:73
popcon::EcalTPGOddWeightGroupHandler::m_i_oddweightGroup
int m_i_oddweightGroup
Definition: EcalTPGOddWeightGroupHandler.h:92
ESHandle.h
edm
HLT enums.
Definition: AlignableModifier.h:19
popcon::EcalTPGOddWeightGroupHandler::EcalTPGOddWeightGroupHandler
EcalTPGOddWeightGroupHandler(edm::ParameterSet const &)
Definition: EcalTPGOddWeightGroupHandler.cc:30
popcon::EcalTPGOddWeightGroupHandler::~EcalTPGOddWeightGroupHandler
~EcalTPGOddWeightGroupHandler() override
Definition: EcalTPGOddWeightGroupHandler.cc:48
popcon::EcalTPGOddWeightGroupHandler::m_firstRun
unsigned int m_firstRun
Definition: EcalTPGOddWeightGroupHandler.h:72
popcon::EcalTPGOddWeightGroupHandler::m_locationsource
std::string m_locationsource
Definition: EcalTPGOddWeightGroupHandler.h:83
EBDetId.h
EEDetId.h
popcon::EcalTPGOddWeightGroupHandler::m_sid
std::string m_sid
Definition: EcalTPGOddWeightGroupHandler.h:80
popcon::EcalTPGOddWeightGroupHandler::m_user
std::string m_user
Definition: EcalTPGOddWeightGroupHandler.h:81
MakerMacros.h
popcon::EcalTPGOddWeightGroupHandler::m_file_name
std::string m_file_name
Definition: EcalTPGOddWeightGroupHandler.h:89
popcon::EcalTPGOddWeightGroupHandler::econn
EcalCondDBInterface * econn
Definition: EcalTPGOddWeightGroupHandler.h:63
PoolDBOutputService.h
Service.h
popcon::EcalTPGOddWeightGroupHandler::id
std::string id() const override
Definition: EcalTPGOddWeightGroupHandler.h:55
popcon::EcalTPGOddWeightGroupHandler::readxmlFile
void readxmlFile()
Definition: EcalTPGOddWeightGroupHandler.cc:333
popcon::EcalTPGOddWeightGroupHandler::m_file_type
std::string m_file_type
Definition: EcalTPGOddWeightGroupHandler.h:88
Event
popcon::EcalTPGOddWeightGroupHandler::m_runtype
std::string m_runtype
Definition: EcalTPGOddWeightGroupHandler.h:86
popcon::EcalTPGOddWeightGroupHandler::to_string
std::string to_string(char value[])
Definition: EcalTPGOddWeightGroupHandler.h:66
popcon::EcalTPGOddWeightGroupHandler::ecalMapping_
const EcalElectronicsMapping * ecalMapping_
Definition: EcalTPGOddWeightGroupHandler.h:77
all_monitoring_types.h
edm::ParameterSet
Definition: ParameterSet.h:47
Timestamp.h
Event.h
ParameterSet
Definition: Functions.h:16
dtResolutionTest_cfi.inputFile
inputFile
Definition: dtResolutionTest_cfi.py:14
value
Definition: value.py:1
EcalTPGOddWeightGroupRcd.h
popcon::PopConSourceHandler
Definition: PopConSourceHandler.h:30
popcon::EcalTPGOddWeightGroupHandler::m_location
std::string m_location
Definition: EcalTPGOddWeightGroupHandler.h:78
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
popcon::EcalTPGOddWeightGroupHandler::makeStripId
std::map< std::string, int > makeStripId()
popcon::EcalTPGOddWeightGroupHandler::correspId
std::map< std::string, int > correspId
Definition: EcalTPGOddWeightGroupHandler.h:75
popcon::EcalTPGOddWeightGroupHandler::readtxtFile
void readtxtFile()
Definition: EcalTPGOddWeightGroupHandler.cc:306
popcon
Definition: Exception.h:6
relativeConstraints.value
value
Definition: relativeConstraints.py:53
popcon::EcalTPGOddWeightGroupHandler::m_gentag
std::string m_gentag
Definition: EcalTPGOddWeightGroupHandler.h:79
ParameterSetfwd.h
EventSetup.h
Oracle.h
popcon::EcalTPGOddWeightGroupHandler::getNewObjects
void getNewObjects() override
Definition: EcalTPGOddWeightGroupHandler.cc:50
EventSetup
ParameterSet.h
popcon::EcalTPGOddWeightGroupHandler::m_name
std::string m_name
Definition: EcalTPGOddWeightGroupHandler.h:84
popcon::EcalTPGOddWeightGroupHandler::readFromFile
void readFromFile(const char *inputFile)
Definition: EcalTPGOddWeightGroupHandler.cc:395
EventSetupRecordKey.h
EcalTPGOddWeightGroup.h
EcalCondDBInterface.h
popcon::EcalTPGOddWeightGroupHandler::m_pass
std::string m_pass
Definition: EcalTPGOddWeightGroupHandler.h:82
popcon::EcalTPGOddWeightGroupHandler::writeFile
void writeFile(const char *inputFile)
Definition: EcalTPGOddWeightGroupHandler.cc:433
popcon::EcalTPGOddWeightGroupHandler::m_i_tag
std::string m_i_tag
Definition: EcalTPGOddWeightGroupHandler.h:87
popcon::EcalTPGOddWeightGroupHandler
Definition: EcalTPGOddWeightGroupHandler.h:46