CMS 3D CMS Logo

EcalTPGSpikeThresholdHandler.h
Go to the documentation of this file.
1 #ifndef ECAL_TPG_SPIKETHRESHOLD_HANDLER_H
2 #define ECAL_TPG_SPIKETHRESHOLD_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 
49  public:
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
Handle.h
MessageLogger.h
popcon::EcalTPGSpikeThresholdHandler::getNewObjects
void getNewObjects() override
Definition: EcalTPGSpikeThresholdHandler.cc:55
ESHandle.h
popcon::EcalTPGSpikeThresholdHandler::makeTTEBDetId
std::map< std::string, int > makeTTEBDetId()
EcalTPGSpikeRcd.h
popcon::EcalTPGSpikeThresholdHandler::to_string
std::string to_string(char value[])
Definition: EcalTPGSpikeThresholdHandler.h:66
EcalTPGSpike
Definition: EcalTPGSpike.h:9
edm
HLT enums.
Definition: AlignableModifier.h:19
EBDetId.h
EEDetId.h
popcon::EcalTPGSpikeThresholdHandler::m_runtype
std::string m_runtype
Definition: EcalTPGSpikeThresholdHandler.h:88
popcon::EcalTPGSpikeThresholdHandler::makeTTEEDetId
std::map< std::string, int > makeTTEEDetId()
popcon::EcalTPGSpikeThresholdHandler::m_i_spikeTh
int m_i_spikeTh
Definition: EcalTPGSpikeThresholdHandler.h:92
popcon::EcalTPGSpikeThresholdHandler::m_gentag
std::string m_gentag
Definition: EcalTPGSpikeThresholdHandler.h:81
popcon::EcalTPGSpikeThresholdHandler::id
std::string id() const override
Definition: EcalTPGSpikeThresholdHandler.h:58
MakerMacros.h
EcalTPGSpike.h
PoolDBOutputService.h
popcon::EcalTPGSpikeThresholdHandler::m_i_run_number
unsigned int m_i_run_number
Definition: EcalTPGSpikeThresholdHandler.h:91
Service.h
popcon::EcalTPGSpikeThresholdHandler::m_sid
std::string m_sid
Definition: EcalTPGSpikeThresholdHandler.h:82
popcon::EcalTPGSpikeThresholdHandler::mySpikeTh
const EcalTPGSpike * mySpikeTh
Definition: EcalTPGSpikeThresholdHandler.h:72
Event
popcon::EcalTPGSpikeThresholdHandler::m_user
std::string m_user
Definition: EcalTPGSpikeThresholdHandler.h:83
popcon::EcalTPGSpikeThresholdHandler::m_i_tag
std::string m_i_tag
Definition: EcalTPGSpikeThresholdHandler.h:89
popcon::EcalTPGSpikeThresholdHandler::m_pass
std::string m_pass
Definition: EcalTPGSpikeThresholdHandler.h:84
all_monitoring_types.h
edm::ParameterSet
Definition: ParameterSet.h:47
popcon::EcalTPGSpikeThresholdHandler::readFromFile
void readFromFile(const char *inputFile)
Definition: EcalTPGSpikeThresholdHandler.cc:275
popcon::EcalTPGSpikeThresholdHandler::m_locationsource
std::string m_locationsource
Definition: EcalTPGSpikeThresholdHandler.h:85
Timestamp.h
Event.h
ParameterSet
Definition: Functions.h:16
popcon::EcalTPGSpikeThresholdHandler::~EcalTPGSpikeThresholdHandler
~EcalTPGSpikeThresholdHandler() override
Definition: EcalTPGSpikeThresholdHandler.cc:53
popcon::EcalTPGSpikeThresholdHandler::m_name
std::string m_name
Definition: EcalTPGSpikeThresholdHandler.h:86
EcalElectronicsMapping.h
dtResolutionTest_cfi.inputFile
inputFile
Definition: dtResolutionTest_cfi.py:14
popcon::EcalTPGSpikeThresholdHandler::m_runnr
unsigned int m_runnr
Definition: EcalTPGSpikeThresholdHandler.h:87
value
Definition: value.py:1
popcon::PopConSourceHandler
Definition: PopConSourceHandler.h:30
popcon::EcalTPGSpikeThresholdHandler
Definition: EcalTPGSpikeThresholdHandler.h:48
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
popcon::EcalTPGSpikeThresholdHandler::m_i_version
int m_i_version
Definition: EcalTPGSpikeThresholdHandler.h:90
popcon::EcalTPGSpikeThresholdHandler::mapDetEEId
std::map< std::string, int > mapDetEEId
Definition: EcalTPGSpikeThresholdHandler.h:76
popcon
Definition: Exception.h:6
popcon::EcalTPGSpikeThresholdHandler::ecalMapping_
const EcalElectronicsMapping * ecalMapping_
Definition: EcalTPGSpikeThresholdHandler.h:78
popcon::EcalTPGSpikeThresholdHandler::m_location
std::string m_location
Definition: EcalTPGSpikeThresholdHandler.h:80
relativeConstraints.value
value
Definition: relativeConstraints.py:53
popcon::EcalTPGSpikeThresholdHandler::m_firstRun
unsigned int m_firstRun
Definition: EcalTPGSpikeThresholdHandler.h:73
ParameterSetfwd.h
EventSetup.h
Oracle.h
popcon::EcalTPGSpikeThresholdHandler::mapDetEBId
std::map< std::string, int > mapDetEBId
Definition: EcalTPGSpikeThresholdHandler.h:75
EventSetup
popcon::EcalTPGSpikeThresholdHandler::m_lastRun
unsigned int m_lastRun
Definition: EcalTPGSpikeThresholdHandler.h:74
ParameterSet.h
EventSetupRecordKey.h
popcon::EcalTPGSpikeThresholdHandler::writeFile
void writeFile(const char *inputFile)
Definition: EcalTPGSpikeThresholdHandler.cc:313
EcalCondDBInterface.h
popcon::EcalTPGSpikeThresholdHandler::EcalTPGSpikeThresholdHandler
EcalTPGSpikeThresholdHandler(edm::ParameterSet const &)
Definition: EcalTPGSpikeThresholdHandler.cc:37
popcon::EcalTPGSpikeThresholdHandler::econn
EcalCondDBInterface * econn
Definition: EcalTPGSpikeThresholdHandler.h:63