CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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  virtual void getNewObjects(){
20 
21  EcalCondHeader header;
22  Payload * payload = new Payload;
23  XMLTranslator::readXML(xmlFileSource_,header,*payload);
25  std::make_pair(payload,since_));
26  }
27 
28  virtual std::string id() const {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
EcalCondHandler(const edm::ParameterSet &ps)
RegressionTestPayload Payload
Definition: TestFunct.cc:6
virtual std::string id() const
virtual void getNewObjects()
std::string xmlFileSource_