BmnRoot
Loading...
Searching...
No Matches
CbmDigi.cxx
Go to the documentation of this file.
1
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// -------------------------------------------------------------------------
19
21 : TObject(rhs),
22 fLinks(NULL)
23{
24 if (NULL != rhs.fLinks) {
25 fLinks = new FairMultiLinkedData(*(rhs.fLinks));
26 }
27}
28
30{
31
32 if (this != &rhs) {
33 TObject::operator=(rhs);
34 if (NULL != rhs.fLinks) {
35 std::unique_ptr<FairMultiLinkedData> tmp(new FairMultiLinkedData(*rhs.fLinks));
36 delete fLinks;
37 fLinks = tmp.release();
38 } else {
39 fLinks = NULL;
40 }
41
42 }
43 return *this;
44}
Base class for persistent representation of digital information.
Definition CbmDigi.h:44
CbmDigi & operator=(const CbmDigi &)
Definition CbmDigi.cxx:29
CbmDigi()
Definition CbmDigi.cxx:13
FairMultiLinkedData * fLinks
Monte-Carlo link collection.
Definition CbmDigi.h:83