BOSS 7.0.9
BESIII Offline Software System
Loading...
Searching...
No Matches
efpsc::Config Class Reference

#include <Config.h>

Public Member Functions

 Config (const std::string &objname)
 
 ~Config ()
 
const std::string & jobOptionsPath () const
 
const std::string & messageSvcType () const
 
const std::string & evtSel () const
 
const std::string & dllName () const
 
const std::string & factoryName () const
 
const std::string & pythonSetupFile () const
 

Detailed Description

Defines the Dummy Algorithm setup. This class is thread-safe.

Definition at line 21 of file Config.h.

Constructor & Destructor Documentation

◆ Config()

efpsc::Config::Config ( const std::string &  objname)

Reads the efpscSteering configuration node.

Parameters
objnameThe name of the object in the configuration database, that contains the entry point for this dummy steering.

Definition at line 7 of file Config.cxx.

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}

◆ ~Config()

efpsc::Config::~Config ( void  )

D'tor.

Definition at line 69 of file Config.cxx.

70{
71}

Member Function Documentation

◆ dllName()

const std::string & efpsc::Config::dllName ( ) const
inline

Definition at line 45 of file Config.h.

45{ return m_dllName; }

◆ evtSel()

const std::string & efpsc::Config::evtSel ( ) const
inline

Definition at line 43 of file Config.h.

43{ return m_evtSel; }

◆ factoryName()

const std::string & efpsc::Config::factoryName ( ) const
inline

Definition at line 47 of file Config.h.

47{ return m_factoryName; }

◆ jobOptionsPath()

const std::string & efpsc::Config::jobOptionsPath ( ) const
inline

Definition at line 39 of file Config.h.

39{ return m_jobOptionsPath; }

◆ messageSvcType()

const std::string & efpsc::Config::messageSvcType ( ) const
inline

Definition at line 41 of file Config.h.

41{ return m_messageSvcType; }

◆ pythonSetupFile()

const std::string & efpsc::Config::pythonSetupFile ( ) const
inline

Definition at line 49 of file Config.h.

49{ return m_pythonSetupFile; }

The documentation for this class was generated from the following files: