Logo ROOT  
Reference Guide
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 
14 
15 /** \class TVirtualMCSensitiveDetector
16  \ingroup vmc
17 
18 Interface to a user defined sensitive detector.
19 */
20 
22 
23 ////////////////////////////////////////////////////////////////////////////////
24 /// Standard constructor
25 
26 TVirtualMCSensitiveDetector::TVirtualMCSensitiveDetector(const char *name, const char *title) : TNamed(name, title) {}
27 
28 ////////////////////////////////////////////////////////////////////////////////
29 /// Standard constructor
30 
32  : TNamed(name, title)
33 {
34 }
35 
36 ////////////////////////////////////////////////////////////////////////////////
37 /// Default constructor
38 
40 
41 ////////////////////////////////////////////////////////////////////////////////
42 /// Copy constructor
43 
45 {
46  /// Copy constructor
47 
48  *this = rhs;
49 }
50 
51 ////////////////////////////////////////////////////////////////////////////////
52 /// Destructor
53 
55 
56 ////////////////////////////////////////////////////////////////////////////////
57 /// Assignment operator
58 
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 }
TVirtualMCSensitiveDetector::~TVirtualMCSensitiveDetector
virtual ~TVirtualMCSensitiveDetector()
Destructor.
Definition: TVirtualMCSensitiveDetector.cxx:54
TNamed::operator=
TNamed & operator=(const TNamed &rhs)
TNamed assignment operator.
Definition: TNamed.cxx:51
ClassImp
#define ClassImp(name)
Definition: Rtypes.h:364
TVirtualMCSensitiveDetector::TVirtualMCSensitiveDetector
TVirtualMCSensitiveDetector()
Default constructor.
Definition: TVirtualMCSensitiveDetector.cxx:39
TString
Basic string class.
Definition: TString.h:136
TNamed
The TNamed class is the base class for all named ROOT classes.
Definition: TNamed.h:29
TVirtualMCSensitiveDetector.h
TVirtualMCSensitiveDetector
Interface to a user defined sensitive detector.
Definition: TVirtualMCSensitiveDetector.h:25
name
char name[80]
Definition: TGX11.cxx:110
TVirtualMCSensitiveDetector::operator=
TVirtualMCSensitiveDetector & operator=(const TVirtualMCSensitiveDetector &rhs)
Assignment operator.
Definition: TVirtualMCSensitiveDetector.cxx:59