ATLAS Offline Software
Loading...
Searching...
No Matches
TrackContainerHandlesHelper.cxx File Reference
#include "ActsEvent/TrackContainerHandlesHelper.h"
#include "xAODTracking/TrackStateContainer.h"
#include "xAODTracking/TrackState.h"
#include "xAODMeasurementBase/UncalibratedMeasurementContainer.h"
#include "GeoModelKernel/throwExcept.h"
#include <string>
#include <sstream>
#include <regex>
#include <span>
#include "StoreGate/WriteHandle.h"

Go to the source code of this file.

Namespaces

namespace  ActsTrk
 The AlignStoreProviderAlg loads the rigid alignment corrections and pipes them through the readout geometry to cache the final transformations of the sensor surfaces associated to one particular detector technology (Pixel, Sct, etc.).

Macros

#define RECORD_xAOD(key, container, auxContainer, ctx)
#define INIT_CHECK(key)

Functions

std::string ActsTrk::prefixFromTrackContainerName (const std::string &tracks)
 Parse TrackContainer name to get the prefix for backends The name has to contain XYZTracks, the XYZ is returned.

Macro Definition Documentation

◆ INIT_CHECK

#define INIT_CHECK ( key)
Value:
if (!key.initialize().isSuccess()) { \
THROW_EXCEPTION("Failed to initialize key "<<key.fullKey()); \
}

Definition at line 42 of file TrackContainerHandlesHelper.cxx.

42#define INIT_CHECK(key) \
43 if (!key.initialize().isSuccess()) { \
44 THROW_EXCEPTION("Failed to initialize key "<<key.fullKey()); \
45 }

◆ RECORD_xAOD

#define RECORD_xAOD ( key,
container,
auxContainer,
ctx )
Value:
{ \
SG::WriteHandle handle{key, ctx}; \
if (!handle.record(std::move(container), \
std::move(auxContainer)).isSuccess()){ \
THROW_EXCEPTION("Cannot record "<<key.fullKey()<<" backend"); \
} \
}
StatusCode record(std::unique_ptr< T > data)
Record a const object to the store.

Definition at line 33 of file TrackContainerHandlesHelper.cxx.

33#define RECORD_xAOD(key, container, auxContainer, ctx) \
34 { \
35 SG::WriteHandle handle{key, ctx}; \
36 if (!handle.record(std::move(container), \
37 std::move(auxContainer)).isSuccess()){ \
38 THROW_EXCEPTION("Cannot record "<<key.fullKey()<<" backend"); \
39 } \
40 }