Skip to content

Commit 72f6798

Browse files
committed
Delete the copy operations of MCKinematicsReader
This makes the MCKinematicsReader non-copyable. - The destructor deletes the cached track vectors, so an implicit copy would free them twice. - No copy of a reader exists in AliceO2.
1 parent 2406170 commit 72f6798

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎Steer/include/Steer/MCKinematicsReader.h‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ class MCKinematicsReader
4242
/// destructor
4343
~MCKinematicsReader();
4444

45+
/// the reader owns cached track vectors, so it must not be copied
46+
MCKinematicsReader(const MCKinematicsReader&) = delete;
47+
MCKinematicsReader& operator=(const MCKinematicsReader&) = delete;
48+
4549
/// constructor taking a name and mode (either kDigiContext or kMCKine)
4650
/// In case of "context", the name is the filename of the digitization context.
4751
/// In case of MCKine mode, the name is the "prefix" referencing a single simulation production.

0 commit comments

Comments
 (0)