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
std::string id() const override
EcalCondHandler(const edm::ParameterSet &ps)
void getNewObjects() override
std::string xmlFileSource_