BmnRoot 26.10.0-210-gc52d34b0
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
CbmDigi.cxx
Go to the documentation of this file.
1/** @file CbmDigi.cxx
2 ** @author Volker Friese <v.friese@gsi.de>
3 ** @date 30.04.2013
4 **/
5
6#include "CbmDigi.h"
7
8#include "FairMultiLinkedData.h"
9
10#include <memory>
11
12// ----- Default constructor -------------------------------------------
14 : TObject()
15 , fLinks(NULL)
16{}
17// -------------------------------------------------------------------------
18
20 : TObject(rhs)
21 , fLinks(NULL)
22{
23 if (NULL != rhs.fLinks) {
24 fLinks = new FairMultiLinkedData(*(rhs.fLinks));
25 }
26}
27
29{
30
31 if (this != &rhs) {
33 if (NULL != rhs.fLinks) {
34 std::unique_ptr<FairMultiLinkedData> tmp(new FairMultiLinkedData(*rhs.fLinks));
35 delete fLinks;
36 fLinks = tmp.release();
37 } else {
38 fLinks = NULL;
39 }
40 }
41 return *this;
42}
CbmDigi & operator=(const CbmDigi &)
Definition CbmDigi.cxx:28
FairMultiLinkedData * fLinks
Monte-Carlo link collection.
Definition CbmDigi.h:67
CbmDigi()
Default constructor.
Definition CbmDigi.cxx:13
TObject & operator=(const TObject &rhs)