BOSS 6.6.4.p01
BESIII Offline Software System
Loading...
Searching...
No Matches
Config.cxx
Go to the documentation of this file.
1//Dear emacs, this is -*- c++ -*-
2
5#include <cstdlib>
6
7efpsc::Config::Config(const std::string& objname)
8{
9 // Default Parameters
10 m_jobOptionsPath = "jobOptions.txt";
11 m_messageSvcType = "MessageSvc";
12 m_evtSel = "NONE";
13 m_dllName = "";
14 m_factoryName = "";
15 m_pythonSetupFile = "ESController/ESControllerPythonSetup.py";
16
17 // Set Parameters
18 std::string tmp_string = objname;
19 //cout<<"objname: "<<objname<<endl;
20
21 // parameter 1 : jobOptionsPath
22 m_jobOptionsPath = tmp_string.substr(0, tmp_string.find(";"));
23 //tmp_string = tmp_string.substr(tmp_string.find(";")+1,tmp_string.size());
24 if (tmp_string.substr(0, tmp_string.find(";")) != "") {
25 m_jobOptionsPath = tmp_string.substr(0, tmp_string.find(";"));
26 // cout<<"m_jobOptionsPAth: "<<endl;
27 }
28
29 // parameter 2 : MessageSvcType
30 tmp_string = tmp_string.substr(tmp_string.find(";")+1,tmp_string.size());
31 if (tmp_string.substr(0, tmp_string.find(";")) != "") {
32 m_messageSvcType = tmp_string.substr(0, tmp_string.find(";"));
33 }
34
35 // parameter 3 : Event selector
36 tmp_string = tmp_string.substr(tmp_string.find(";")+1,tmp_string.size());
37 if (tmp_string.substr(0, tmp_string.find(";")) != "") {
38 m_evtSel = tmp_string.substr(0, tmp_string.find(";"));
39 }
40
41 // parameter 4 : ApplicationMgr DLL
42 tmp_string = tmp_string.substr(tmp_string.find(";")+1,tmp_string.size());
43 if (tmp_string.substr(0, tmp_string.find(";")) != "") {
44 m_dllName = tmp_string.substr(0, tmp_string.find(";"));
45 }
46
47 // parameter 5 : ApplicationMgr Factory Name
48 tmp_string = tmp_string.substr(tmp_string.find(";")+1,tmp_string.size());
49 if (tmp_string.substr(0, tmp_string.find(";")) != "") {
50 m_factoryName = tmp_string.substr(0, tmp_string.find(";"));
51 }
52
53 // parameter 6 : Basic Python Setup File
54 tmp_string = tmp_string.substr(tmp_string.find(";")+1,tmp_string.size());
55 if (tmp_string.substr(0, tmp_string.find(";")) != "") {
56 m_pythonSetupFile = tmp_string.substr(0, tmp_string.find(";"));
57 }
58
59 // Print Parameters
60
61 EFPSC_DBG1("efpsc::Config::Config"," -> jobOptions Path = " << m_jobOptionsPath);
62 EFPSC_DBG1("efpsc::Config::Config"," -> MessageSvcType = " << m_messageSvcType);
63 EFPSC_DBG1("efpsc::Config::Config"," -> Event Selector = " << m_evtSel);
64 EFPSC_DBG1("efpsc::Config::Config"," -> ApplicationMgr DLL name = " << m_dllName);
65 EFPSC_DBG1("efpsc::Config::Config"," -> ApplicationMgr Factory name = " << m_factoryName);
66 EFPSC_DBG1("efpsc::Config::Config"," -> Basic Python setup file = " << m_pythonSetupFile);
67}
68
70{
71}
72
73
Configuration for the implementations of EF algorithms.
Defines the error and reporting policies.
Config(const std::string &objname)
Definition: Config.cxx:7