20#include "hltinterface/HLTInterface.h"
23#include "GaudiKernel/StatusCode.h"
24#include "GaudiKernel/SmartIF.h"
25#include "GaudiKernel/ISvcLocator.h"
34#include <boost/property_tree/ptree.hpp>
43 class Psc:
public hltinterface::HLTInterface
59 virtual bool configure (
const boost::property_tree::ptree&
config)
override;
64 virtual bool connect (
const boost::property_tree::ptree& args)
override;
69 virtual bool prepareForRun (
const boost::property_tree::ptree& args)
override;
74 virtual bool stopRun (
const boost::property_tree::ptree& args)
override;
79 virtual bool disconnect (
const boost::property_tree::ptree& args)
override;
84 virtual bool unconfigure (
const boost::property_tree::ptree& args)
override;
90 virtual bool publishStatistics (
const boost::property_tree::ptree& args)
override;
95 virtual bool hltUserCommand (
const boost::property_tree::ptree& args)
override;
106 virtual bool prepareWorker (
const boost::property_tree::ptree& args)
override;
112 virtual bool finalizeWorker (
const boost::property_tree::ptree& args)
override;
115 bool setDFProperties(
const std::map<std::string, std::string>& name_tr_table);
129 template <
typename T>
131 const std::string& name)
const;
bool setAthenaProperties()
uint32_t m_run_number
(initial) run number to be used for this run
bool setDFProperties(const std::map< std::string, std::string > &name_tr_table)
virtual bool unconfigure(const boost::property_tree::ptree &args) override
Unconfigures the framework, releasing all acquired resources.
int m_workerID
worker ID (0=mother)
virtual ~Psc()
Virtual desctuctor.
virtual bool hltUserCommand(const boost::property_tree::ptree &args) override
Calls the HLT framework to notify it that a user command has arrived.
virtual bool configure(const boost::property_tree::ptree &config) override
Configures the framework.
Psc()=default
Default constructor.
bool m_interactive
Running in interactive mode (athenaHLT)
IAppMgrUI * m_pesaAppMgr
Application Manager.
bool doAppMgrFinalize()
Finalize the application manager.
bool doAppMgrInit()
Initialize the application manager.
virtual bool prepareWorker(const boost::property_tree::ptree &args) override
Method which can be called for a worker to perform the necessary steps to set unique worker IDs and a...
virtual bool disconnect(const boost::property_tree::ptree &args) override
Disconnects the framework.
virtual bool publishStatistics(const boost::property_tree::ptree &args) override
Calls the HLT framework to publish statistics, after the run has finished.
std::string m_nameEventLoopMgr
name of the event loop manager
virtual bool prepareForRun(const boost::property_tree::ptree &args) override
prepares the HLT framework for a run
virtual bool connect(const boost::property_tree::ptree &args) override
Connects the framework.
virtual bool stopRun(const boost::property_tree::ptree &args) override
stops the HLT framework without re-configuring
SmartIF< ISvcLocator > m_svcLoc
Service locator handle.
StatusCode callOnEventLoopMgr(std::function< StatusCode(T *)> func, const std::string &name) const
Utility method to call a method on the event loop manager.
virtual bool finalizeWorker(const boost::property_tree::ptree &args) override
Method which can be called for a worker to perform a cleanup before the worker gets killed.
virtual bool doEventLoop() override
Starts the HLT event loop.
std::unique_ptr< psc::Config > m_config
Config derived from ptree.