Skip to content

Hide 'write once, do not directly read' instance of RawEvent behind an opaque view

Gerhard Raven requested to merge issue-179 into sevda-issue-179

Address issue #179 (closed): make sure that a RawEvent which 'supports' RawBank::Views in the TES cannot be modified (which would invalidate the views) by writing it using writeViewFor with a view that does not allow access. Some syntactic sugar i.e. template <typename T> using writeOnly = writeViewFor<T,OpaqueView>; has been added to LHCbAlgs/Traits.h (which is included by the functional algorithms types defined in LHCbAlgs) for convenience.

Superseded by !3873 (merged).

Edited by Sevda Esen

Merge request reports