ROOT
6.18/05
Reference Guide
montecarlo
vmc
src
TVirtualMCSensitiveDetector.cxx
Go to the documentation of this file.
1
// @(#)root/vmc:$Id$
2
// Authors: Ivana Hrivnacova 19/04/2018
3
4
/*************************************************************************
5
* Copyright (C) 2006, Rene Brun and Fons Rademakers. *
6
* Copyright (C) 2018, ALICE Experiment at CERN. *
7
* All rights reserved. *
8
* *
9
* For the licensing terms see $ROOTSYS/LICENSE. *
10
* For the list of contributors see $ROOTSYS/README/CREDITS. *
11
*************************************************************************/
12
13
#include "
TVirtualMCSensitiveDetector.h
"
14
15
/** \class TVirtualMCSensitiveDetector
16
\ingroup vmc
17
18
Interface to a user defined sensitive detector.
19
*/
20
21
ClassImp
(
TVirtualMCSensitiveDetector
);
22
23
////////////////////////////////////////////////////////////////////////////////
24
/// Standard constructor
25
26
TVirtualMCSensitiveDetector::TVirtualMCSensitiveDetector
(
const
char
*
name
,
const
char
*title) :
TNamed
(
name
, title) {}
27
28
////////////////////////////////////////////////////////////////////////////////
29
/// Standard constructor
30
31
TVirtualMCSensitiveDetector::TVirtualMCSensitiveDetector
(
const
TString
&
name
,
const
TString
&title)
32
:
TNamed
(
name
, title)
33
{
34
}
35
36
////////////////////////////////////////////////////////////////////////////////
37
/// Default constructor
38
39
TVirtualMCSensitiveDetector::TVirtualMCSensitiveDetector
() :
TNamed
() {}
40
41
////////////////////////////////////////////////////////////////////////////////
42
/// Copy constructor
43
44
TVirtualMCSensitiveDetector::TVirtualMCSensitiveDetector
(
const
TVirtualMCSensitiveDetector
&rhs) :
TNamed
(rhs)
45
{
46
/// Copy constructor
47
48
*
this
= rhs;
49
}
50
51
////////////////////////////////////////////////////////////////////////////////
52
/// Destructor
53
54
TVirtualMCSensitiveDetector::~TVirtualMCSensitiveDetector
() {}
55
56
////////////////////////////////////////////////////////////////////////////////
57
/// Assignment operator
58
59
TVirtualMCSensitiveDetector
&
TVirtualMCSensitiveDetector::operator=
(
const
TVirtualMCSensitiveDetector
&rhs)
60
{
61
// check assignment to self
62
if
(
this
== &rhs)
63
return
*
this
;
64
65
// base class assignment
66
TNamed::operator=
(rhs);
67
68
return
*
this
;
69
}
ClassImp
#define ClassImp(name)
Definition:
Rtypes.h:365
name
char name[80]
Definition:
TGX11.cxx:109
TVirtualMCSensitiveDetector.h
TNamed
The TNamed class is the base class for all named ROOT classes.
Definition:
TNamed.h:29
TNamed::operator=
TNamed & operator=(const TNamed &rhs)
TNamed assignment operator.
Definition:
TNamed.cxx:51
TString
Basic string class.
Definition:
TString.h:131
TVirtualMCSensitiveDetector
Interface to a user defined sensitive detector.
Definition:
TVirtualMCSensitiveDetector.h:25
TVirtualMCSensitiveDetector::~TVirtualMCSensitiveDetector
virtual ~TVirtualMCSensitiveDetector()
Destructor.
Definition:
TVirtualMCSensitiveDetector.cxx:54
TVirtualMCSensitiveDetector::TVirtualMCSensitiveDetector
TVirtualMCSensitiveDetector()
Default constructor.
Definition:
TVirtualMCSensitiveDetector.cxx:39
TVirtualMCSensitiveDetector::operator=
TVirtualMCSensitiveDetector & operator=(const TVirtualMCSensitiveDetector &rhs)
Assignment operator.
Definition:
TVirtualMCSensitiveDetector.cxx:59