BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
Calibration/rdbModel/include/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
2// 2005/10/17 06:10:53 maqm Exp $
3#ifndef RDBMODEL_INSERTNEW_H
4#define RDBMODEL_INSERTNEW_H
5#include "rdbModel/Management/Visitor.h"
6#include <string>
7#include <vector>
8
9namespace rdbModel {
10
11 class InterRow;
12 class Assertion;
13 class Table;
14
15 /**
16 Keep track of constraints on insertion of new row, not intended to
17 replace any existing row.
18 o Internal constraints to insure new row is self-consistent
19 o Look for conflicts with existing rows; specify what to
20 do to correct if found.
21 */
22 class InsertNew {
23 public:
24 InsertNew( Table* table, Assertion* internal, Assertion* official )
25 : m_myTable( table ), m_internal( internal ), m_official( official ) {
26 m_interRow.clear();
27 }
28
29 ~InsertNew();
30
31 const Assertion* getInternal() const { return m_internal; }
32 const Assertion* getOfficial() const { return m_official; }
33 const std::vector<InterRow*>& getInterRow() const { return m_interRow; }
34
35 const Table* getTable() const { return m_myTable; }
36
38 // void addInternal(Assertion* internal) {m_internal = internal;}
39 // void addOfficial(Assertion* official) {m_official = official;}
40 void addInterRow( InterRow* interRow ) { m_interRow.push_back( interRow ); }
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} // namespace rdbModel
52#endif
**********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:20
const std::vector< InterRow * > & getInterRow() const