BOSS 6.6.4.p03
BESIII Offline Software System
Loading...
Searching...
No Matches
Manager.cxx
Go to the documentation of this file.
1// $Header: /bes/bes/BossCvs/Calibration/rdbModel/src/Management/Manager.cxx,v 1.1.1.1 2005/10/17 06:10:53 maqm Exp $
2#include <string>
3#include <iostream>
4#include <fstream>
5#include <vector>
6
7
9
12#include "rdbModel/Rdb.h"
13
14namespace rdbModel{
15
16 Manager* Manager::s_pMyself = 0;
17
19 delete m_rdb;
20 delete m_builder;
21 s_pMyself = 0;
22 }
23
25 {
26 if (s_pMyself == 0)
27 s_pMyself = new Manager;
28 return s_pMyself;
29 }
30
32 delete m_rdb;
33 m_rdb = new Rdb;
34 // delete manBuilder;
35 }
36
38 {
39 m_builder = b;
40
41 }
42
44 int errCode = m_builder->parseInput(m_filename);
45
46 // Unlike geometry description/detModel, there is only one way to
47 // build here: build everything.
48 if (!errCode) {
49 return m_builder->buildRdb();
50 }
51 else return errCode;
52 }
54 {
55 // if (TablesVisitor* tv = dynamic_cast<TablesVisitor*>(v))
56 // { // the only kind we support, at least for now
57
58 // if (v->getRecursive())
59 m_rdb->accept(v);
60 // else
61 // m_rdb->acceptNotRec(sv);
62 // }
63 }
64
65}
**********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
virtual unsigned int parseInput(const std::string &)=0
virtual int buildRdb()=0
void startVisitor(Visitor *)
This method starts the visit of a hierarchy with a specified visitor.
Definition: Manager.cxx:53
void setBuilder(Builder *b)
Definition: Manager.cxx:37
static Manager * getManager()
Definition: Manager.cxx:24
unsigned int accept(Visitor *v)
This is the recursive accept for the visitor pattern.
Definition: Rdb.cxx:98