CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
LMFCorrCoefDatComponent.h
Go to the documentation of this file.
1 #ifndef LMFCORRCOEFDATCOMPONENT_H
2 #define LMFCORRCOEFDATCOMPONENT_H
3 
4 /*
5  Last updated by Giovanni.Organtini@roma1.infn.it 2010
6 
7  This class represent a block of channels that share the same LMR_SUB_IOV_ID
8  It is then modeled as a standard DAT table
9 
10  It is used as a component of the LMF_CORR_COEF_DAT block of records
11  It should never been instantiated by a user
12 
13  */
14 
15 #include <vector>
16 
20 
22  public:
23  friend class EcalCondDBInterface;
24 
27  LMFCorrCoefDatComponent(oracle::occi::Environment* env,
28  oracle::occi::Connection* conn);
30 
32  LMFCorrCoefDatComponent& setP123(const EcalLogicID &id, float p1, float p2, float p3);
33  LMFCorrCoefDatComponent& setP123(const EcalLogicID &id, float p1, float p2, float p3,
34  float p1e, float p2e, float p3e);
35  LMFCorrCoefDatComponent& setP123Errors(const EcalLogicID &id, float p1e, float p2e,
36  float p3e);
37  LMFCorrCoefDatComponent& setFlag(const EcalLogicID &id, int flag);
38  LMFCorrCoefDatComponent& setSequence(const EcalLogicID &id, int seq_id);
40 
42  int getLMFLmrSubIOVID() const;
43  std::vector<float> getParameters(const EcalLogicID &id);
44  std::vector<float> getParameterErrors(const EcalLogicID &id);
45  std::vector<float> getParameters(int id);
46  std::vector<float> getParameterErrors(int id);
47  int getFlag(const EcalLogicID &id);
48  int getSeqID(const EcalLogicID &id);
49  int getSeqID(int id);
51 
53  std::string getTableName() const;
55  int writeDB() throw(std::runtime_error);
56 
57  private:
58  void init();
59 
60 };
61 
62 #endif
int getSeqID(const EcalLogicID &id)
std::string getIovIdFieldName() const
LMFCorrCoefDatComponent & setP123Errors(const EcalLogicID &id, float p1e, float p2e, float p3e)
LMFCorrCoefDatComponent & setSequence(const EcalLogicID &id, int seq_id)
LMFLmrSubIOV getLMFLmrSubIOV() const
tuple iov
Definition: o2o.py:307
std::vector< float > getParameters(const EcalLogicID &id)
Definition: LMFDat.h:19
std::string getTableName() const
#define private
Definition: FWEveView.cc:22
double p2[4]
Definition: TauolaWrapper.h:90
LMFSeqDat getSequence(const EcalLogicID &id)
LMFCorrCoefDatComponent & setP123(const EcalLogicID &id, float p1, float p2, float p3)
std::string foreignKeyName() const
double p1[4]
Definition: TauolaWrapper.h:89
std::vector< float > getParameterErrors(const EcalLogicID &id)
LMFCorrCoefDatComponent & setFlag(const EcalLogicID &id, int flag)
LMFCorrCoefDatComponent & setLMFLmrSubIOV(const LMFLmrSubIOV &iov)
tuple conn
Definition: results_mgr.py:53
int getFlag(const EcalLogicID &id)
double p3[4]
Definition: TauolaWrapper.h:91