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 
10 template <typename Payload, typename XMLTranslator>
12  public popcon::PopConSourceHandler<Payload> {
13 
14  public:
15 
17  xmlFileSource_(ps.getUntrackedParameter<std::string>("xmlFile")),
18  since_(ps.getUntrackedParameter<long long>("since")){}
19 
20  void getNewObjects() override{
21 
23  Payload * payload = new Payload;
24  XMLTranslator::readXML(xmlFileSource_,header,*payload);
26  std::make_pair(payload,since_));
27  }
28 
29  std::string id() const override {return std::string("dummy");}
30 
31  private:
32 
34  long long since_;
35 
36 
37 };
38 
39 #endif
40 
41 // Configure (x)emacs for this file ...
42 // Local Variables:
43 // mode:c++
44 // compile-command: "scram b"
45 // End
def readXML(fileName)
EcalCondHandler(const edm::ParameterSet &ps)
void getNewObjects() override
std::string id() const override
std::string xmlFileSource_