CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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  virtual unsigned long long retrieveData( unsigned int ) = 0;
12  virtual const std::string dataType() const = 0;
13  virtual const std::string sourceType() const = 0;
14  virtual ~DataPipe(){}
15  void setNoValidate();
17  void setSource( const std::string& source );
18  void setAuthPath( const std::string& authpath );
19  void setMode( const std::string& mode );
20  void setNorm( float norm );
21  std::string getSource() const;
22  std::string getMode() const;
23  std::string getAuthPath() const;
24  float getNorm() const;
25 
26  protected:
32  float m_norm; //Lumi2DB specific
33  bool m_nocheckingstablebeam; //Lumi2DB specific
34  private:
35  DataPipe( const DataPipe& );
36  const DataPipe& operator=( const DataPipe& );
37  };//class DataPipe
38 }//ns lumi
39 #endif
void setSource(const std::string &source)
Definition: DataPipe.cc:7
void setNoValidate()
Definition: DataPipe.cc:4
void setNoCheckingStableBeam()
Definition: DataPipe.cc:19
tuple lumi
Definition: fjr2json.py:35
void setAuthPath(const std::string &authpath)
Definition: DataPipe.cc:10
DataPipe(const std::string &)
Definition: DataPipe.cc:2
bool m_novalidate
Definition: DataPipe.h:31
virtual const std::string dataType() const =0
std::string getAuthPath() const
Definition: DataPipe.cc:28
std::string m_dest
Definition: DataPipe.h:27
void setMode(const std::string &mode)
Definition: DataPipe.cc:13
std::string getMode() const
Definition: DataPipe.cc:25
string authpath
Definition: EcalCondDB.py:77
float getNorm() const
Definition: DataPipe.cc:31
std::string m_source
Definition: DataPipe.h:28
float m_norm
Definition: DataPipe.h:32
std::string getSource() const
Definition: DataPipe.cc:22
virtual const std::string sourceType() const =0
const DataPipe & operator=(const DataPipe &)
std::string m_authpath
Definition: DataPipe.h:29
std::string m_mode
Definition: DataPipe.h:30
virtual unsigned long long retrieveData(unsigned int)=0
virtual ~DataPipe()
Definition: DataPipe.h:14
static std::string const source
Definition: EdmProvDump.cc:42
bool m_nocheckingstablebeam
Definition: DataPipe.h:33
void setNorm(float norm)
Definition: DataPipe.cc:16