]> git.uio.no Git - u/mrichter/AliRoot.git/blob - ITS/AliITSgeomSSD.cxx
Fixed bug in copy and operator =.
[u/mrichter/AliRoot.git] / ITS / AliITSgeomSSD.cxx
1 /**************************************************************************
2  * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
3  *                                                                        *
4  * Author: The ALICE Off-line Project.                                    *
5  * Contributors are mentioned in the code where appropriate.              *
6  *                                                                        *
7  * Permission to use, copy, modify and distribute this software and its   *
8  * documentation strictly for non-commercial purposes is hereby granted   *
9  * without fee, provided that the above copyright notice appears in all   *
10  * copies and that both the copyright notice and this permission notice   *
11  * appear in the supporting documentation. The authors make no claims     *
12  * about the suitability of this software for any purpose. It is          *
13  * provided "as is" without express or implied warranty.                  *
14  **************************************************************************/
15
16 /*
17 $Log$
18 Revision 1.2.4.2  2000/03/04 23:55:59  nilsen
19 Fixed up the comments/documentation
20
21 Revision 1.2.4.1  2000/01/12 19:03:32  nilsen
22 This is the version of the files after the merging done in December 1999.
23 See the ReadMe110100.txt file for details
24
25 Revision 1.2  1999/09/29 09:24:20  fca
26 Introduction of the Copyright and cvs Log
27
28 */
29  
30 #include "AliITSgeomSSD.h"
31
32 ClassImp(AliITSgeomSSD)
33 AliITSgeomSSD::AliITSgeomSSD(){
34 ////////////////////////////////////////////////////////////////////////
35 //    default constructor
36 ////////////////////////////////////////////////////////////////////////
37
38     Float_t dx = 3.65;  // cm. (Geant 3.12 units) Orthonormal to y and z
39     Float_t dy = 0.015; // cm. (Geant 3.12 units) Radialy from the Beam Pipe
40     Float_t dz = 2.0;   // cm. (Geant 3.12 units) Allong the Beam Pipe
41
42     fShapeSSD = new TBRIK("ActiveSSD","Active volume of SSD","SSD SI DET",
43                           dx,dy,dz);   
44 }
45
46 AliITSgeomSSD::AliITSgeomSSD(const AliITSgeomSSD &source){
47 ////////////////////////////////////////////////////////////////////////
48 //    copy  constructor
49 ////////////////////////////////////////////////////////////////////////
50
51     this->fShapeSSD = new TBRIK(*(source.fShapeSSD));
52     return;
53 }  
54
55 AliITSgeomSSD& AliITSgeomSSD::operator=(const AliITSgeomSSD &source) {
56 ////////////////////////////////////////////////////////////////////////
57 //    assignment operator
58 ////////////////////////////////////////////////////////////////////////
59
60     this->fShapeSSD = new TBRIK(*(source.fShapeSSD));
61     return *this;
62 }
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101