CMS 3D CMS Logo

PixelPopConSourceHandler.h
Go to the documentation of this file.
1 #ifndef PIXELPOPCONSOURCEHANDLER_H
2 #define PIXELPOPCONSOURCEHANDLER_H
3 
4 // Package: CondTools/SiPixel
5 // Class: PixelPopConSourceHandler
13 //
14 // Original Author: Michael Eads
15 // Created: 19 Apr 2008
16 //
17 //
18 
20 #include <string>
21 #include <iostream>
23 
24 template <class T>
26 public:
27  //PixelPopConSourceHandler(edm::ParameterSet const &) {;}
28 
29  void getNewObjects() override {
30  // look at _connectString to see which method to call
31  if (_connectString.find("oracle") == 0)
33  else if (_connectString.find("file") == 0)
35  else {
36  std::cout << " PixelPopConSourceHandler::getNewObjects() - unknown connect string:" << _connectString
37  << std::endl;
38  std::cout << " connect string must begin with \"oracle\" or \"file\"" << std::endl;
39  }
40 
41  } // virtual void getNewObjects()
42 
43  virtual void getNewObjects_coral() { ; }
44  virtual void getNewObjects_file() { ; }
45  std::string id() const override { return std::string("PixelPopConSourceHandler"); }
46 
47 protected:
53  unsigned int _sinceIOV;
54 };
55 
56 #endif
std::string id() const override