21#include "GaudiKernel/IIncidentSvc.h"
51 SmartIF<IIncidentSvc> incsvc{service(
"IncidentSvc")};
53 CHECK( incsvc.isValid() );
54 incsvc->addListener (
this,
"BeginProcessing");
55 incsvc->addListener (
this,
"BeginEvent");
64 return StatusCode::SUCCESS;
74 if (inc.type() ==
"BeginProcessing" || inc.type() ==
"BeginEvent")
76 static std::once_flag flag;
77 std::call_once(flag, [&]() {
Define converters for CLHEP types needed to read old data files.
Helpers for checking error return status codes and reporting errors.
#define CHECK(...)
Evaluate an expression and check for errors.
Provides backwards compatibility for reading DataVector (and other) classes.
Provide backwards compatibility for reading DataVector classes.
Allow converting std::vector to SG::PackedContainer.
A variant of TBranchElement that can call converters when reading objects in split mode.
Variant of TStreamerInfo to handle conversions.
Define converters for some standard vector types, needed to read old data files and for cross-platfor...
static void initialize()
Register all CLHEP converters.
static void initialize(RootUtils::ILogger *logfn=0)
Scan all known DataVector classes and fix up the Root data for any that need conversion.
DataModelCompatSvc(const std::string &name, ISvcLocator *svc)
Constructor.
virtual StatusCode initialize()
Service initialization; called at the beginning of the job.
virtual void handle(const Incident &inc)
Handle incidents.
virtual void error(const char *msg)
Log an error message.
virtual void debug(const char *msg)
Log a debugging message.
static void initialize()
Register all CLHEP converters.
static void Initialize()
Set up to allow for conversions in split mode.
static void Initialize()
Set up conversions.
void installPackedContainerConverters()
Install converters for supported instantiations.