Logo ROOT   6.30.04
Reference Guide
 All Namespaces Files Pages
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 
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 }