CMS 3D CMS Logo

DataPipe.h
Go to the documentation of this file.
1 #ifndef RecoLuminosity_LumiProducer_DataPipe_H
2 #define RecoLuminosity_LumiProducer_DataPipe_H
3 #include <string>
4 namespace edm {
5  class ParameterSet;
6 }
7 namespace lumi {
8  class DataPipe {
9  public:
10  explicit DataPipe(const std::string&);
11  DataPipe(const DataPipe&) = delete;
12  const DataPipe& operator=(const DataPipe&) = delete;
13  virtual unsigned long long retrieveData(unsigned int) = 0;
14  virtual const std::string dataType() const = 0;
15  virtual const std::string sourceType() const = 0;
16  virtual ~DataPipe() {}
17  void setNoValidate();
19  void setSource(const std::string& source);
20  void setAuthPath(const std::string& authpath);
21  void setMode(const std::string& mode);
22  void setNorm(float norm);
23  std::string getSource() const;
24  std::string getMode() const;
25  std::string getAuthPath() const;
26  float getNorm() const;
27 
28  protected:
34  float m_norm; //Lumi2DB specific
35  bool m_nocheckingstablebeam; //Lumi2DB specific
36  }; //class DataPipe
37 } // namespace lumi
38 #endif
void setSource(const std::string &source)
Definition: DataPipe.cc:5
void setNoValidate()
Definition: DataPipe.cc:4
void setNoCheckingStableBeam()
Definition: DataPipe.cc:9
std::string getAuthPath() const
Definition: DataPipe.cc:12
void setAuthPath(const std::string &authpath)
Definition: DataPipe.cc:6
DataPipe(const std::string &)
Definition: DataPipe.cc:2
bool m_novalidate
Definition: DataPipe.h:33
virtual const std::string dataType() const =0
std::string m_dest
Definition: DataPipe.h:29
void setMode(const std::string &mode)
Definition: DataPipe.cc:7
float getNorm() const
Definition: DataPipe.cc:13
string authpath
Definition: EcalCondDB.py:79
std::string getSource() const
Definition: DataPipe.cc:10
std::string m_source
Definition: DataPipe.h:30
float m_norm
Definition: DataPipe.h:34
virtual const std::string sourceType() const =0
HLT enums.
std::string m_authpath
Definition: DataPipe.h:31
std::string m_mode
Definition: DataPipe.h:32
virtual unsigned long long retrieveData(unsigned int)=0
std::string getMode() const
Definition: DataPipe.cc:11
virtual ~DataPipe()
Definition: DataPipe.h:16
static std::string const source
Definition: EdmProvDump.cc:49
bool m_nocheckingstablebeam
Definition: DataPipe.h:35
void setNorm(float norm)
Definition: DataPipe.cc:8
const DataPipe & operator=(const DataPipe &)=delete