BOSS 8.0.0
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.

7 {
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}

◆ ~Config()

efpsc::Config::~Config ( void )

D'tor.

Definition at line 67 of file Config.cxx.

67{}

Member Function Documentation

◆ dllName()

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

Definition at line 43 of file Config.h.

43{ return m_dllName; }

◆ evtSel()

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

Definition at line 41 of file Config.h.

41{ return m_evtSel; }

◆ factoryName()

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

Definition at line 45 of file Config.h.

45{ return m_factoryName; }

◆ jobOptionsPath()

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

Definition at line 37 of file Config.h.

37{ return m_jobOptionsPath; }

◆ messageSvcType()

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

Definition at line 39 of file Config.h.

39{ return m_messageSvcType; }

◆ pythonSetupFile()

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

Definition at line 47 of file Config.h.

47{ return m_pythonSetupFile; }

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