CMS 3D CMS Logo

EcalTPGSlidingWindowHandler.h
Go to the documentation of this file.
1 #ifndef ECAL_TPG_SLIDINGWINDOW_HANDLER_H
2 #define ECAL_TPG_SLIDINGWINDOW_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 
36 //class EcalElectronicsMapping;
37 
38 namespace edm {
39  class ParameterSet;
40  class Event;
41  class EventSetup;
42 } // namespace edm
43 
44 namespace popcon {
45 
46  class EcalTPGSlidingWindowHandler : public popcon::PopConSourceHandler<EcalTPGSlidingWindow> {
47  public:
50 
51  std::map<std::string, int> makeStripIdEB();
52  std::map<std::string, int> makeStripIdEE();
53  void getNewObjects() override;
54 
55  std::string id() const override { return m_name; }
56 
57  void readFromFile(const char* inputFile);
58  void writeFile(const char* inputFile);
59 
61 
62  private:
64  std::ostringstream streamOut;
65  streamOut << value;
66  return streamOut.str();
67  }
68 
69  unsigned int m_firstRun;
70  unsigned int m_lastRun;
71  std::map<std::string, int> correspEBId;
72  std::map<std::string, int> correspEEId;
73 
81  unsigned int m_runnr;
85  unsigned int m_i_run_number;
87  };
88 } // namespace popcon
89 #endif
EcalCondDBInterface
Definition: EcalCondDBInterface.h:37
PopConSourceHandler.h
Handle.h
MessageLogger.h
popcon::EcalTPGSlidingWindowHandler::m_name
std::string m_name
Definition: EcalTPGSlidingWindowHandler.h:80
popcon::EcalTPGSlidingWindowHandler::m_pass
std::string m_pass
Definition: EcalTPGSlidingWindowHandler.h:78
popcon::EcalTPGSlidingWindowHandler::correspEBId
std::map< std::string, int > correspEBId
Definition: EcalTPGSlidingWindowHandler.h:71
popcon::EcalTPGSlidingWindowHandler::m_user
std::string m_user
Definition: EcalTPGSlidingWindowHandler.h:77
ESHandle.h
popcon::EcalTPGSlidingWindowHandler::m_i_run_number
unsigned int m_i_run_number
Definition: EcalTPGSlidingWindowHandler.h:85
popcon::EcalTPGSlidingWindowHandler::id
std::string id() const override
Definition: EcalTPGSlidingWindowHandler.h:55
popcon::EcalTPGSlidingWindowHandler::econn
EcalCondDBInterface * econn
Definition: EcalTPGSlidingWindowHandler.h:60
edm
HLT enums.
Definition: AlignableModifier.h:19
EBDetId.h
EEDetId.h
popcon::EcalTPGSlidingWindowHandler::to_string
std::string to_string(char value[])
Definition: EcalTPGSlidingWindowHandler.h:63
popcon::EcalTPGSlidingWindowHandler::EcalTPGSlidingWindowHandler
EcalTPGSlidingWindowHandler(edm::ParameterSet const &)
Definition: EcalTPGSlidingWindowHandler.cc:30
popcon::EcalTPGSlidingWindowHandler::getNewObjects
void getNewObjects() override
Definition: EcalTPGSlidingWindowHandler.cc:48
MakerMacros.h
PoolDBOutputService.h
popcon::EcalTPGSlidingWindowHandler::writeFile
void writeFile(const char *inputFile)
Definition: EcalTPGSlidingWindowHandler.cc:330
Service.h
popcon::EcalTPGSlidingWindowHandler::m_i_version
int m_i_version
Definition: EcalTPGSlidingWindowHandler.h:84
popcon::EcalTPGSlidingWindowHandler::makeStripIdEB
std::map< std::string, int > makeStripIdEB()
popcon::EcalTPGSlidingWindowHandler::m_location
std::string m_location
Definition: EcalTPGSlidingWindowHandler.h:74
Event
EcalTPGSlidingWindowRcd.h
popcon::EcalTPGSlidingWindowHandler::m_lastRun
unsigned int m_lastRun
Definition: EcalTPGSlidingWindowHandler.h:70
popcon::EcalTPGSlidingWindowHandler::m_firstRun
unsigned int m_firstRun
Definition: EcalTPGSlidingWindowHandler.h:69
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
popcon::EcalTPGSlidingWindowHandler::m_runtype
std::string m_runtype
Definition: EcalTPGSlidingWindowHandler.h:82
all_monitoring_types.h
edm::ParameterSet
Definition: ParameterSet.h:47
popcon::EcalTPGSlidingWindowHandler::~EcalTPGSlidingWindowHandler
~EcalTPGSlidingWindowHandler() override
Definition: EcalTPGSlidingWindowHandler.cc:46
popcon::EcalTPGSlidingWindowHandler::m_locationsource
std::string m_locationsource
Definition: EcalTPGSlidingWindowHandler.h:79
Timestamp.h
popcon::EcalTPGSlidingWindowHandler::correspEEId
std::map< std::string, int > correspEEId
Definition: EcalTPGSlidingWindowHandler.h:72
Event.h
ParameterSet
Definition: Functions.h:16
popcon::EcalTPGSlidingWindowHandler::m_sid
std::string m_sid
Definition: EcalTPGSlidingWindowHandler.h:76
popcon::EcalTPGSlidingWindowHandler
Definition: EcalTPGSlidingWindowHandler.h:46
dtResolutionTest_cfi.inputFile
inputFile
Definition: dtResolutionTest_cfi.py:14
value
Definition: value.py:1
popcon::PopConSourceHandler
Definition: PopConSourceHandler.h:30
popcon::EcalTPGSlidingWindowHandler::m_i_sliding
int m_i_sliding
Definition: EcalTPGSlidingWindowHandler.h:86
EcalTPGSlidingWindow.h
popcon
Definition: Exception.h:6
popcon::EcalTPGSlidingWindowHandler::readFromFile
void readFromFile(const char *inputFile)
Definition: EcalTPGSlidingWindowHandler.cc:292
relativeConstraints.value
value
Definition: relativeConstraints.py:53
ParameterSetfwd.h
EventSetup.h
popcon::EcalTPGSlidingWindowHandler::m_i_tag
std::string m_i_tag
Definition: EcalTPGSlidingWindowHandler.h:83
popcon::EcalTPGSlidingWindowHandler::makeStripIdEE
std::map< std::string, int > makeStripIdEE()
Oracle.h
EventSetup
ParameterSet.h
EventSetupRecordKey.h
popcon::EcalTPGSlidingWindowHandler::m_runnr
unsigned int m_runnr
Definition: EcalTPGSlidingWindowHandler.h:81
EcalCondDBInterface.h
popcon::EcalTPGSlidingWindowHandler::m_gentag
std::string m_gentag
Definition: EcalTPGSlidingWindowHandler.h:75