CbmRoot
Loading...
Searching...
No Matches
CaInputData.cxx
Go to the documentation of this file.
1/* Copyright (C) 2022-2023 GSI Helmholtzzentrum fuer Schwerionenforschung, Darmstadt
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Sergey Gorbunov, Sergei Zharko [committer] */
4
9
10#include "CaInputData.h"
11
13
14// ---------------------------------------------------------------------------------------------------------------------
15//
16InputData::InputData() {}
17
18// ---------------------------------------------------------------------------------------------------------------------
19//
20InputData::InputData(const InputData& other)
21 : fvHits(other.fvHits)
22 , fvStreamStartIndices(other.fvStreamStartIndices)
23 , fvStreamStopIndices(other.fvStreamStopIndices)
24 , fNhitKeys(other.fNhitKeys)
25{
26}
27
28// ---------------------------------------------------------------------------------------------------------------------
29//
30InputData::InputData(InputData&& other) noexcept { this->Swap(other); }
31
32// ---------------------------------------------------------------------------------------------------------------------
33//
34InputData& InputData::operator=(const InputData& other)
35{
36 if (this != &other) {
37 InputData(other).Swap(*this);
38 }
39 return *this;
40}
41
42// ---------------------------------------------------------------------------------------------------------------------
43//
44InputData& InputData::operator=(InputData&& other) noexcept
45{
46 if (this != &other) {
47 InputData tmp(std::move(other));
48 this->Swap(tmp);
49 }
50 return *this;
51}
Structure for input data to the L1 tracking algorithm (declaration)
InputData()
Default constructor.