BOSS 8.0.0
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 // Default Parameters
9 m_jobOptionsPath = "jobOptions.txt";
10 m_messageSvcType = "MessageSvc";
11 m_evtSel = "NONE";
12 m_dllName = "";
13 m_factoryName = "";
14 m_pythonSetupFile = "ESController/ESControllerPythonSetup.py";
15
16 // Set Parameters
17 std::string tmp_string = objname;
18 // cout<<"objname: "<<objname<<endl;
19
20 // parameter 1 : jobOptionsPath
21 m_jobOptionsPath = tmp_string.substr( 0, tmp_string.find( ";" ) );
22 // tmp_string = tmp_string.substr(tmp_string.find(";")+1,tmp_string.size());
23 if ( tmp_string.substr( 0, tmp_string.find( ";" ) ) != "" )
24 {
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 // parameter 3 : Event selector
35 tmp_string = tmp_string.substr( tmp_string.find( ";" ) + 1, tmp_string.size() );
36 if ( tmp_string.substr( 0, tmp_string.find( ";" ) ) != "" )
37 { m_evtSel = tmp_string.substr( 0, tmp_string.find( ";" ) ); }
38
39 // parameter 4 : ApplicationMgr DLL
40 tmp_string = tmp_string.substr( tmp_string.find( ";" ) + 1, tmp_string.size() );
41 if ( tmp_string.substr( 0, tmp_string.find( ";" ) ) != "" )
42 { m_dllName = tmp_string.substr( 0, tmp_string.find( ";" ) ); }
43
44 // parameter 5 : ApplicationMgr Factory Name
45 tmp_string = tmp_string.substr( tmp_string.find( ";" ) + 1, tmp_string.size() );
46 if ( tmp_string.substr( 0, tmp_string.find( ";" ) ) != "" )
47 { m_factoryName = tmp_string.substr( 0, tmp_string.find( ";" ) ); }
48
49 // parameter 6 : Basic Python Setup File
50 tmp_string = tmp_string.substr( tmp_string.find( ";" ) + 1, tmp_string.size() );
51 if ( tmp_string.substr( 0, tmp_string.find( ";" ) ) != "" )
52 { m_pythonSetupFile = tmp_string.substr( 0, tmp_string.find( ";" ) ); }
53
54 // Print Parameters
55
56 EFPSC_DBG1( "efpsc::Config::Config",
57 " -> jobOptions Path = " << m_jobOptionsPath );
58 EFPSC_DBG1( "efpsc::Config::Config",
59 " -> MessageSvcType = " << m_messageSvcType );
60 EFPSC_DBG1( "efpsc::Config::Config", " -> Event Selector = " << m_evtSel );
61 EFPSC_DBG1( "efpsc::Config::Config", " -> ApplicationMgr DLL name = " << m_dllName );
62 EFPSC_DBG1( "efpsc::Config::Config", " -> ApplicationMgr Factory name = " << m_factoryName );
63 EFPSC_DBG1( "efpsc::Config::Config",
64 " -> Basic Python setup file = " << m_pythonSetupFile );
65}
66
Configuration for the implementations of EF algorithms.
Defines the error and reporting policies.
Config(const std::string &objname)
Definition Config.cxx:7