Skip to content
Snippets Groups Projects
Commit f7d57492 authored by Frank Winklmeier's avatar Frank Winklmeier
Browse files

Delete obsolete TrigExMTHelloWorld package

For a simple HelloWorld example use
`AthExHelloWorld/HelloWorldOptions.py` instead.
parent e75de763
No related branches found
No related tags found
No related merge requests found
...@@ -138,8 +138,9 @@ if False: ...@@ -138,8 +138,9 @@ if False:
# Private Application Configuration options, replace with # Private Application Configuration options, replace with
# your configuration. # your configuration.
#-------------------------------------------------------------- #--------------------------------------------------------------
from TrigExMTHelloWorld.TrigExMTHelloWorldConf import MTHelloWorld from AthExHelloWorld.AthExHelloWorldConf import HelloAlg
HelloWorld = MTHelloWorld("HelloWorld")
HelloWorld = HelloAlg("HelloWorld")
from AthenaCommon.AlgSequence import AlgSequence from AthenaCommon.AlgSequence import AlgSequence
topSequence = AlgSequence() topSequence = AlgSequence()
......
################################################################################
# Package: TrigExMTHelloWorld
################################################################################
# Declare the package name:
atlas_subdir( TrigExMTHelloWorld )
# Declare the package's dependencies:
atlas_depends_on_subdirs( PUBLIC
Control/AthenaBaseComps
PRIVATE
GaudiKernel )
# Component(s) in the package:
atlas_add_component( TrigExMTHelloWorld
src/*.cxx
src/components/*.cxx
LINK_LIBRARIES AthenaBaseComps GaudiKernel )
# Install files from the package:
atlas_install_headers( TrigExMTHelloWorld )
atlas_install_joboptions( share/*.py )
/*
Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
*/
#include "AthenaBaseComps/AthAlgorithm.h"
/////////////////////////////////////////////////////////////////////////////
class MTHelloWorld : public AthAlgorithm {
public:
MTHelloWorld (const std::string& name, ISvcLocator* pSvcLocator);
virtual StatusCode initialize();
virtual StatusCode execute();
virtual StatusCode finalize();
virtual StatusCode start();
virtual StatusCode stop();
private:
IntegerProperty m_myInt;
BooleanProperty m_myBool;
DoubleProperty m_myDouble;
StringArrayProperty m_myStringVec;
};
#**************************************************************
#
# MTHelloWorld example
#
#==============================================================
from AthenaCommon.AppMgr import ServiceMgr as svcMgr
from AthenaCommon.Constants import *
#--------------------------------------------------------------
# Private Application Configuration options
#--------------------------------------------------------------
from TrigExMTHelloWorld.TrigExMTHelloWorldConf import MTHelloWorld
HelloWorld = MTHelloWorld("HelloWorld")
from AthenaCommon.AlgSequence import AlgSequence
topSequence = AlgSequence()
topSequence += HelloWorld
#--------------------------------------------------------------
# Algorithms Private Options
#--------------------------------------------------------------
# For the genuine HelloWorld algorithm
HelloWorld.MyInt = 42
HelloWorld.MyBool = TRUE
HelloWorld.MyDouble = 3.14159
HelloWorld.MyStringVec = [ "Welcome", "to", "Athena", "Framework", "Tutorial" ]
# For a special HelloWorld algorithm
#HelloWorld__1 = Algorithm( "HelloWorld__1" )
#HelloWorld__1.MyInt = 21
#HelloWorld__1.MyBool = FALSE
#HelloWorld__1.MyDouble = 6.28
#HelloWorld__1.MyStringVec = [ "Welcome", "to", "Thread", "1" ]
#==============================================================
#
# End of MTHelloWorld example
#
#**************************************************************
/*
Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
*/
#include "TrigExMTHelloWorld/MTHelloWorld.h"
MTHelloWorld::MTHelloWorld(const std::string& name, ISvcLocator* pSvcLocator) :
AthAlgorithm(name, pSvcLocator),
m_myInt(0), m_myBool(0), m_myDouble(0)
{
// Part 2: Declare the properties
declareProperty("MyInt", m_myInt);
declareProperty("MyBool", m_myBool);
declareProperty("MyDouble", m_myDouble);
declareProperty("MyStringVec",m_myStringVec);
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
StatusCode MTHelloWorld::initialize()
{
ATH_MSG_INFO("initialize()");
SmartIF<IService> tmp_msgSvc(msgSvc());
if(tmp_msgSvc.isValid()) {
ATH_MSG_INFO(" Algorithm = " << name() << " is connected to Message Service = " << tmp_msgSvc->name());
}
// Part 2: Print out the property values
ATH_MSG_INFO(" MyInt = " << m_myInt);
ATH_MSG_INFO(" MyBool = " << m_myBool);
ATH_MSG_INFO(" MyDouble = " << m_myDouble);
for (unsigned int i=0; i<m_myStringVec.value().size(); i++) {
ATH_MSG_INFO(" MyStringVec[" << i << "] = " << (m_myStringVec.value())[i]);
}
return StatusCode::SUCCESS;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
StatusCode MTHelloWorld::execute()
{
ATH_MSG_INFO("execute()");
// Part 1: Print out the different levels of messages
ATH_MSG_DEBUG( "A DEBUG message");
ATH_MSG_INFO( "An INFO message");
ATH_MSG_WARNING( "A WARNING message");
ATH_MSG_ERROR( "An ERROR message");
ATH_MSG_FATAL( "A FATAL error message");
return StatusCode::SUCCESS;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
StatusCode MTHelloWorld::finalize()
{
ATH_MSG_INFO( "finalize()");
return StatusCode::SUCCESS;
}
StatusCode MTHelloWorld::start()
{
ATH_MSG_INFO( "start()");
return StatusCode::SUCCESS;
}
StatusCode MTHelloWorld::stop()
{
ATH_MSG_INFO( "stop()");
return StatusCode::SUCCESS;
}
#include "TrigExMTHelloWorld/MTHelloWorld.h"
DECLARE_COMPONENT( MTHelloWorld )
...@@ -56,7 +56,7 @@ option['l2pu-worker'] = 1 ...@@ -56,7 +56,7 @@ option['l2pu-worker'] = 1
# ================================ # ================================
# Defines the L2 HLT Implementation to use. It has to be either a python dictionary (like the default argument), a dictionary that configures an HLTImplementation, or a string, that determines the path to the jobOptions to use. This parameter can also be set to dal.HLTImplementation object that will be used blindly to configure the L2 system at your partition. # Defines the L2 HLT Implementation to use. It has to be either a python dictionary (like the default argument), a dictionary that configures an HLTImplementation, or a string, that determines the path to the jobOptions to use. This parameter can also be set to dal.HLTImplementation object that will be used blindly to configure the L2 system at your partition.
# option['l2-hlt'] = {'jobOptionsPath': 'TrigExMTHelloWorld/MTHelloWorldOptions.py'} # option['l2-hlt'] = {'jobOptionsPath': 'AthExHelloWorld/HelloWorldOptions.py'}
# Defines the EF HLT Implementation to use. It has to be either a python dictionary (like the default argument), a dictionary that configures an HLTImplementation, or a string, that determines the path to the jobOptions to use. This parameter can also be set to dal.HLTImplementation object that will be used blindly to configure the EF system at your partition. # Defines the EF HLT Implementation to use. It has to be either a python dictionary (like the default argument), a dictionary that configures an HLTImplementation, or a string, that determines the path to the jobOptions to use. This parameter can also be set to dal.HLTImplementation object that will be used blindly to configure the EF system at your partition.
#option['ef-hlt'] = option['l2-hlt'] #option['ef-hlt'] = option['l2-hlt']
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment