CMS 3D CMS Logo

EcalTPGBadTTHandler.h
Go to the documentation of this file.
1 #ifndef ECAL_TPG_BADTT_HANDLER_H
2 #define ECAL_TPG_BADTT_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 EcalTPGBadTTHandler : public popcon::PopConSourceHandler<EcalTPGTowerStatus> {
45  public:
47  ~EcalTPGBadTTHandler() 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;
85  int m_i_badTT;
86  };
87 } // namespace popcon
88 #endif
popcon::EcalTPGBadTTHandler::~EcalTPGBadTTHandler
~EcalTPGBadTTHandler() override
Definition: EcalTPGBadTTHandler.cc:40
EcalCondDBInterface
Definition: EcalCondDBInterface.h:37
PopConSourceHandler.h
Handle.h
popcon::EcalTPGBadTTHandler::m_user
std::string m_user
Definition: EcalTPGBadTTHandler.h:76
MessageLogger.h
popcon::EcalTPGBadTTHandler::m_gentag
std::string m_gentag
Definition: EcalTPGBadTTHandler.h:74
popcon::EcalTPGBadTTHandler::m_name
std::string m_name
Definition: EcalTPGBadTTHandler.h:79
ESHandle.h
popcon::EcalTPGBadTTHandler::m_pass
std::string m_pass
Definition: EcalTPGBadTTHandler.h:77
popcon::EcalTPGBadTTHandler
Definition: EcalTPGBadTTHandler.h:44
popcon::EcalTPGBadTTHandler::getNewObjects
void getNewObjects() override
Definition: EcalTPGBadTTHandler.cc:42
edm
HLT enums.
Definition: AlignableModifier.h:19
popcon::EcalTPGBadTTHandler::m_lastRun
unsigned int m_lastRun
Definition: EcalTPGBadTTHandler.h:70
popcon::EcalTPGBadTTHandler::econn
EcalCondDBInterface * econn
Definition: EcalTPGBadTTHandler.h:58
EBDetId.h
EEDetId.h
popcon::EcalTPGBadTTHandler::m_sid
std::string m_sid
Definition: EcalTPGBadTTHandler.h:75
popcon::EcalTPGBadTTHandler::m_i_version
int m_i_version
Definition: EcalTPGBadTTHandler.h:83
popcon::EcalTPGBadTTHandler::m_runtype
std::string m_runtype
Definition: EcalTPGBadTTHandler.h:81
popcon::EcalTPGBadTTHandler::m_firstRun
unsigned int m_firstRun
Definition: EcalTPGBadTTHandler.h:69
popcon::EcalTPGBadTTHandler::mapDetEEId
std::map< std::string, int > mapDetEEId
Definition: EcalTPGBadTTHandler.h:71
popcon::EcalTPGBadTTHandler::m_i_run_number
unsigned int m_i_run_number
Definition: EcalTPGBadTTHandler.h:84
MakerMacros.h
PoolDBOutputService.h
popcon::EcalTPGBadTTHandler::writeFile
void writeFile(const char *inputFile)
Definition: EcalTPGBadTTHandler.cc:334
popcon::EcalTPGBadTTHandler::makeTTEEDetId
std::map< std::string, int > makeTTEEDetId()
Service.h
Event
popcon::EcalTPGBadTTHandler::m_i_badTT
int m_i_badTT
Definition: EcalTPGBadTTHandler.h:85
popcon::EcalTPGBadTTHandler::m_runnr
unsigned int m_runnr
Definition: EcalTPGBadTTHandler.h:80
popcon::EcalTPGBadTTHandler::m_locationsource
std::string m_locationsource
Definition: EcalTPGBadTTHandler.h:78
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
all_monitoring_types.h
edm::ParameterSet
Definition: ParameterSet.h:36
Timestamp.h
Event.h
ParameterSet
Definition: Functions.h:16
dtResolutionTest_cfi.inputFile
inputFile
Definition: dtResolutionTest_cfi.py:14
value
Definition: value.py:1
popcon::EcalTPGBadTTHandler::mytowerStat
const EcalTPGTowerStatus * mytowerStat
Definition: EcalTPGBadTTHandler.h:67
popcon::PopConSourceHandler
Definition: PopConSourceHandler.h:30
EcalTPGTowerStatus.h
popcon::EcalTPGBadTTHandler::readFromFile
void readFromFile(const char *inputFile)
Definition: EcalTPGBadTTHandler.cc:296
popcon::EcalTPGBadTTHandler::m_location
std::string m_location
Definition: EcalTPGBadTTHandler.h:73
EcalTPGTowerStatus
Definition: EcalTPGTowerStatus.h:9
popcon
Definition: Exception.h:6
popcon::EcalTPGBadTTHandler::to_string
std::string to_string(char value[])
Definition: EcalTPGBadTTHandler.h:61
relativeConstraints.value
value
Definition: relativeConstraints.py:53
ParameterSetfwd.h
EventSetup.h
EcalTPGTowerStatusRcd.h
Oracle.h
EventSetup
ParameterSet.h
EventSetupRecordKey.h
EcalCondDBInterface.h
popcon::EcalTPGBadTTHandler::id
std::string id() const override
Definition: EcalTPGBadTTHandler.h:53
popcon::EcalTPGBadTTHandler::EcalTPGBadTTHandler
EcalTPGBadTTHandler(edm::ParameterSet const &)
Definition: EcalTPGBadTTHandler.cc:24
popcon::EcalTPGBadTTHandler::m_i_tag
std::string m_i_tag
Definition: EcalTPGBadTTHandler.h:82