BmnRoot
26.10.0-210-gc52d34b0
Software framework of the BM@N experiment
Toggle main menu visibility
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 -------------------------------------------
13
CbmDigi::CbmDigi
()
14
:
TObject
()
15
,
fLinks
(NULL)
16
{}
17
// -------------------------------------------------------------------------
18
19
CbmDigi::CbmDigi
(
const
CbmDigi
& rhs)
20
:
TObject
(rhs)
21
,
fLinks
(NULL)
22
{
23
if
(NULL != rhs.
fLinks
) {
24
fLinks = new FairMultiLinkedData(*(rhs.fLinks));
25
}
26
}
27
28
CbmDigi
&
CbmDigi::operator=
(
const
CbmDigi
& rhs)
29
{
30
31
if
(
this
!= &rhs) {
32
TObject::operator=
(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.h
CbmDigi::operator=
CbmDigi & operator=(const CbmDigi &)
Definition
CbmDigi.cxx:28
CbmDigi::fLinks
FairMultiLinkedData * fLinks
Monte-Carlo link collection.
Definition
CbmDigi.h:67
CbmDigi::CbmDigi
CbmDigi()
Default constructor.
Definition
CbmDigi.cxx:13
FairMultiLinkedData
TObject::operator=
TObject & operator=(const TObject &rhs)
TObject::TObject
TObject()
base
cbm
CbmDigi.cxx
Generated on
for BmnRoot by
1.17.0