BOSS 7.0.2
BESIII Offline Software System
Loading...
Searching...
No Matches
Calibration/rdbModel/rdbModel-00-01-01/rdbModel/Tables/InsertNew.h
Go to the documentation of this file.
1// $Header: /bes/bes/BossCvs/Calibration/rdbModel/rdbModel/Tables/InsertNew.h,v 1.1.1.1 2005/10/17 06:10:53 maqm Exp $
2#ifndef RDBMODEL_INSERTNEW_H
3#define RDBMODEL_INSERTNEW_H
4#include <vector>
5#include <string>
6#include "rdbModel/Management/Visitor.h"
7
8namespace rdbModel{
9
10 class InterRow;
11 class Assertion;
12 class Table;
13
14 /**
15 Keep track of constraints on insertion of new row, not intended to
16 replace any existing row.
17 o Internal constraints to insure new row is self-consistent
18 o Look for conflicts with existing rows; specify what to
19 do to correct if found.
20 */
21 class InsertNew {
22 public:
23 InsertNew(Table* table, Assertion* internal, Assertion* official)
24 : m_myTable(table), m_internal(internal), m_official(official) {
25 m_interRow.clear();
26 }
27
28 ~InsertNew();
29
30 const Assertion* getInternal() const {return m_internal;}
31 const Assertion* getOfficial() const {return m_official;}
32 const std::vector<InterRow*>& getInterRow() const {return m_interRow;}
33
34 const Table* getTable() const {return m_myTable;}
35
37 // void addInternal(Assertion* internal) {m_internal = internal;}
38 // void addOfficial(Assertion* official) {m_official = official;}
39 void addInterRow(InterRow* interRow) {m_interRow.push_back(interRow);}
40
41
42 private:
43 Table* m_myTable;
44 // bool m_keepOp;
45 /// internal consistency conditions
46 Assertion* m_internal;
47 /// conditions to be satisfied to show row is worth the extra trouble
48 Assertion* m_official;
49 std::vector<InterRow*> m_interRow;
50 };
51}
52#endif
53
**********Class see also m_nmax DOUBLE PRECISION m_amel DOUBLE PRECISION m_x2 DOUBLE PRECISION m_alfinv DOUBLE PRECISION m_Xenph INTEGER m_KeyWtm INTEGER m_idyfs DOUBLE PRECISION m_zini DOUBLE PRECISION m_q2 DOUBLE PRECISION m_Wt_KF DOUBLE PRECISION m_WtCut INTEGER m_KFfin *COMMON c_KarLud $ !Input CMS energy[GeV] $ !CMS energy after beam spread beam strahlung[GeV] $ !Beam energy spread[GeV] $ !z boost due to beam spread $ !electron beam mass *ff pair spectrum $ !minimum v
Definition: KarLud.h:35
InsertNew(Table *table, Assertion *internal, Assertion *official)
Visitor::VisitorState accept(Visitor *v)
Definition: InsertNew.cxx:18