3#include "rdbModel/Tables/Set.h"
4#include "rdbModel/Tables/Supersede.h"
5#include "rdbModel/RdbException.h"
10 m_myTable(table), m_onlyIf(onlyIf), m_normalized(
false) {
13 m_oldDefaults.clear();
24 m_setOld.push_back(
s);
break;
27 m_setNew.push_back(
s);
break;
28 default:
throw RdbException(
"Bad value type for <set> destination");
35 if (m_normalized)
return;
37 unsigned nNew = m_setNew.size();
40 for (
unsigned iNew = 0; iNew < nNew; iNew++) {
43 switch (m_setNew[iNew]->getSrcType()) {
45 m_oldForced.push_back(m_setNew[iNew]->getDestColName());
48 m_oldDefaults.push_back(m_setNew[iNew]->getDestColName());
51 m_ask.push_back(m_setNew[iNew]->getDestColName());
54 m_fixed.push_back(
FieldVal(m_setNew[iNew]->getDestColName(),
55 m_setNew[iNew]->getSrcValue()));
56 m_fixedInterp.push_back(m_setNew[iNew]->getInterp());
59 throw RdbException(
"Supersede::normalize Unrecognized <set>");
63 m_fromOld.reserve(m_oldDefaults.size() + m_oldForced.size());
65 for (
unsigned i = 0; i < m_oldDefaults.size(); i++) {
66 m_fromOld.push_back(m_oldDefaults[i]);
68 for (
unsigned i = 0; i < m_oldForced.size(); i++) {
69 m_fromOld.push_back(m_oldForced[i]);
76 while (m_setOld.size() ) {
77 Set*
s = m_setOld.back();
81 while (m_setNew.size() ) {
82 Set*
s = m_setNew.back();
**********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
Supersede(Table *table, Assertion *onlyIf=0)
Visitor::VisitorState accept(Visitor *v)