CMS 3D CMS Logo

EcalCondHandler.h
Go to the documentation of this file.
1 #ifndef _CondTools_Ecal_EcalCondHandler_
2 #define _CondTools_Ecal_EcalCondHandler_
3 
6 #include <string>
7 
8 
9 template <typename Payload, typename XMLTranslator>
11  public popcon::PopConSourceHandler<Payload> {
12 
13  public:
14 
16  xmlFileSource_(ps.getUntrackedParameter<std::string>("xmlFile")),
17  since_(ps.getUntrackedParameter<long long>("since")){}
18 
19  void getNewObjects() override{
20 
22  Payload * payload = new Payload;
23  XMLTranslator::readXML(xmlFileSource_,header,*payload);
25  std::make_pair(payload,since_));
26  }
27 
28  std::string id() const override {return std::string("dummy");}
29 
30  private:
31 
33  long long since_;
34 
35 
36 };
37 
38 #endif
39 
40 // Configure (x)emacs for this file ...
41 // Local Variables:
42 // mode:c++
43 // compile-command: "scram b"
44 // End
def readXML(fileName)
EcalCondHandler(const edm::ParameterSet &ps)
void getNewObjects() override
std::string id() const override
std::string xmlFileSource_