CMS 3D CMS Logo

EcalTPGLutGroupHandler.h
Go to the documentation of this file.
1 #ifndef ECAL_TPG_LUTGROUP_HANDLER_H
2 #define ECAL_TPG_LUTGROUP_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 //class EcalElectronicsMapping;
45 
46 namespace popcon {
47 
48  class EcalTPGLutGroupHandler : public popcon::PopConSourceHandler<EcalTPGLutGroup> {
49  public:
51  ~EcalTPGLutGroupHandler() override;
52 
53  std::map<std::string, int> makeTTEBDetId();
54  std::map<std::string, int> makeTTEEDetId();
55 
56  void getNewObjects() override;
57 
58  std::string id() const override { return m_name; }
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 
73  unsigned int m_firstRun;
74  unsigned int m_lastRun;
75  std::map<std::string, int> mapDetEBId;
76  std::map<std::string, int> mapDetEEId;
77 
79 
87  unsigned int m_runnr;
91  unsigned int m_i_run_number;
93  };
94 } // namespace popcon
95 #endif
EcalCondDBInterface
Definition: EcalCondDBInterface.h:37
EcalElectronicsMapping
Definition: EcalElectronicsMapping.h:28
PopConSourceHandler.h
popcon::EcalTPGLutGroupHandler::m_i_lutGroup
int m_i_lutGroup
Definition: EcalTPGLutGroupHandler.h:92
EcalTPGLutGroupRcd.h
popcon::EcalTPGLutGroupHandler::m_firstRun
unsigned int m_firstRun
Definition: EcalTPGLutGroupHandler.h:73
Handle.h
MessageLogger.h
ESHandle.h
popcon::EcalTPGLutGroupHandler::getNewObjects
void getNewObjects() override
Definition: EcalTPGLutGroupHandler.cc:55
edm
HLT enums.
Definition: AlignableModifier.h:19
EBDetId.h
EEDetId.h
popcon::EcalTPGLutGroupHandler::m_i_run_number
unsigned int m_i_run_number
Definition: EcalTPGLutGroupHandler.h:91
popcon::EcalTPGLutGroupHandler::makeTTEBDetId
std::map< std::string, int > makeTTEBDetId()
popcon::EcalTPGLutGroupHandler::mapDetEBId
std::map< std::string, int > mapDetEBId
Definition: EcalTPGLutGroupHandler.h:75
popcon::EcalTPGLutGroupHandler::m_location
std::string m_location
Definition: EcalTPGLutGroupHandler.h:80
popcon::EcalTPGLutGroupHandler
Definition: EcalTPGLutGroupHandler.h:48
EcalTPGLutGroup
Definition: EcalTPGLutGroup.h:13
popcon::EcalTPGLutGroupHandler::readFromFile
void readFromFile(const char *inputFile)
Definition: EcalTPGLutGroupHandler.cc:333
popcon::EcalTPGLutGroupHandler::m_user
std::string m_user
Definition: EcalTPGLutGroupHandler.h:83
MakerMacros.h
popcon::EcalTPGLutGroupHandler::mypedestals
const EcalTPGLutGroup * mypedestals
Definition: EcalTPGLutGroupHandler.h:72
PoolDBOutputService.h
Service.h
popcon::EcalTPGLutGroupHandler::writeFile
void writeFile(const char *inputFile)
Definition: EcalTPGLutGroupHandler.cc:371
popcon::EcalTPGLutGroupHandler::ecalMapping_
const EcalElectronicsMapping * ecalMapping_
Definition: EcalTPGLutGroupHandler.h:78
popcon::EcalTPGLutGroupHandler::m_i_version
int m_i_version
Definition: EcalTPGLutGroupHandler.h:90
Event
popcon::EcalTPGLutGroupHandler::econn
EcalCondDBInterface * econn
Definition: EcalTPGLutGroupHandler.h:63
popcon::EcalTPGLutGroupHandler::mapDetEEId
std::map< std::string, int > mapDetEEId
Definition: EcalTPGLutGroupHandler.h:76
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
popcon::EcalTPGLutGroupHandler::m_sid
std::string m_sid
Definition: EcalTPGLutGroupHandler.h:82
EcalTPGLutGroup.h
popcon::EcalTPGLutGroupHandler::EcalTPGLutGroupHandler
EcalTPGLutGroupHandler(edm::ParameterSet const &)
Definition: EcalTPGLutGroupHandler.cc:37
all_monitoring_types.h
edm::ParameterSet
Definition: ParameterSet.h:47
Timestamp.h
Event.h
popcon::EcalTPGLutGroupHandler::makeTTEEDetId
std::map< std::string, int > makeTTEEDetId()
ParameterSet
Definition: Functions.h:16
popcon::EcalTPGLutGroupHandler::m_pass
std::string m_pass
Definition: EcalTPGLutGroupHandler.h:84
popcon::EcalTPGLutGroupHandler::id
std::string id() const override
Definition: EcalTPGLutGroupHandler.h:58
EcalElectronicsMapping.h
dtResolutionTest_cfi.inputFile
inputFile
Definition: dtResolutionTest_cfi.py:14
value
Definition: value.py:1
popcon::PopConSourceHandler
Definition: PopConSourceHandler.h:30
popcon::EcalTPGLutGroupHandler::m_name
std::string m_name
Definition: EcalTPGLutGroupHandler.h:86
popcon::EcalTPGLutGroupHandler::m_runnr
unsigned int m_runnr
Definition: EcalTPGLutGroupHandler.h:87
popcon
Definition: Exception.h:6
relativeConstraints.value
value
Definition: relativeConstraints.py:53
popcon::EcalTPGLutGroupHandler::m_runtype
std::string m_runtype
Definition: EcalTPGLutGroupHandler.h:88
popcon::EcalTPGLutGroupHandler::m_i_tag
std::string m_i_tag
Definition: EcalTPGLutGroupHandler.h:89
ParameterSetfwd.h
EventSetup.h
popcon::EcalTPGLutGroupHandler::~EcalTPGLutGroupHandler
~EcalTPGLutGroupHandler() override
Definition: EcalTPGLutGroupHandler.cc:53
Oracle.h
popcon::EcalTPGLutGroupHandler::m_locationsource
std::string m_locationsource
Definition: EcalTPGLutGroupHandler.h:85
popcon::EcalTPGLutGroupHandler::to_string
std::string to_string(char value[])
Definition: EcalTPGLutGroupHandler.h:66
EventSetup
ParameterSet.h
EventSetupRecordKey.h
popcon::EcalTPGLutGroupHandler::m_gentag
std::string m_gentag
Definition: EcalTPGLutGroupHandler.h:81
EcalCondDBInterface.h
popcon::EcalTPGLutGroupHandler::m_lastRun
unsigned int m_lastRun
Definition: EcalTPGLutGroupHandler.h:74