CMS 3D CMS Logo

EcalCondHandler.h
Go to the documentation of this file.
1 #ifndef _CondTools_Ecal_EcalCondHandler_
2 #define _CondTools_Ecal_EcalCondHandler_
3 
7 #include <string>
8 
9 template <typename Payload, typename XMLTranslator>
11 public:
13  : xmlFileSource_(ps.getUntrackedParameter<std::string>("xmlFile")),
14  since_(ps.getUntrackedParameter<long long>("since")) {}
15 
16  void getNewObjects() override {
18  Payload* payload = new Payload;
19  XMLTranslator::readXML(xmlFileSource_, header, *payload);
21  }
22 
23  std::string id() const override { return std::string("dummy"); }
24 
25 private:
27  long long since_;
28 };
29 
30 #endif
31 
32 // Configure (x)emacs for this file ...
33 // Local Variables:
34 // mode:c++
35 // compile-command: "scram b"
36 // End
EcalCondHandler::getNewObjects
void getNewObjects() override
Definition: EcalCondHandler.h:16
PopConSourceHandler.h
EcalCondHandler::xmlFileSource_
std::string xmlFileSource_
Definition: EcalCondHandler.h:26
EcalCondHandler::EcalCondHandler
EcalCondHandler(const edm::ParameterSet &ps)
Definition: EcalCondHandler.h:12
EcalCondHandler
Definition: EcalCondHandler.h:10
jets_cff.payload
payload
Definition: jets_cff.py:32
edm::ParameterSet
Definition: ParameterSet.h:47
EcalCondHeader
Definition: EcalCondHeader.h:16
popcon::PopConSourceHandler
Definition: PopConSourceHandler.h:30
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
std
Definition: JetResolutionObject.h:76
EcalCondHeader.h
RecoTauValidation_cfi.header
header
Definition: RecoTauValidation_cfi.py:291
EcalCondHandler::since_
long long since_
Definition: EcalCondHandler.h:27
ParameterSet.h
EcalCondHandler::id
std::string id() const override
Definition: EcalCondHandler.h:23