CMS 3D CMS Logo

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