CMS 3D CMS Logo

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);
29  ~LMFCorrCoefDatComponent() override {};
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);
38  LMFCorrCoefDatComponent& setSequence(const EcalLogicID &id, int seq_id);
40 
42  int getLMFLmrSubIOVID() const;
43  friend class LMFUnique;
45  std::vector<float> getParameters(const EcalLogicID &id);
46  std::vector<float> getParameterErrors(const EcalLogicID &id);
47  std::vector<float> getParameters(int id);
48  std::vector<float> getParameterErrors(int id);
49  int getFlag(const EcalLogicID &id);
50  int getSeqID(const EcalLogicID &id);
51  int getSeqID(int id);
53 
54  std::string foreignKeyName() const override;
55  std::string getTableName() const override;
56  std::string getIovIdFieldName() const override;
57  int writeDB() noexcept(false) override;
58 
59  private:
60  void init();
61 
62 };
63 
64 #endif
std::string getTableName() const override
std::string getIovIdFieldName() const override
int getSeqID(const EcalLogicID &id)
LMFCorrCoefDatComponent & setP123Errors(const EcalLogicID &id, float p1e, float p2e, float p3e)
LMFCorrCoefDatComponent & setSequence(const EcalLogicID &id, int seq_id)
LMFLmrSubIOV getLMFLmrSubIOV() const
oracle::occi::Connection * conn
std::string foreignKeyName() const override
std::vector< float > getParameters(const EcalLogicID &id)
Definition: LMFDat.h:19
int writeDB() noexcept(false) override
double p2[4]
Definition: TauolaWrapper.h:90
Definition: init.py:1
#define noexcept
LMFSeqDat getSequence(const EcalLogicID &id)
LMFCorrCoefDatComponent & setP123(const EcalLogicID &id, float p1, float p2, float p3)
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)
virtual void getParameters(ResultSet *rset)
Definition: LMFUnique.h:93
int getFlag(const EcalLogicID &id)
double p3[4]
Definition: TauolaWrapper.h:91