source: trunk/examples/advanced/radiation_monitor/detector/include/RadmonDetectorMultilayerPlacementLayout.icc @ 893

Last change on this file since 893 was 807, checked in by garnier, 16 years ago

update

File size: 4.5 KB
Line 
1//
2// ********************************************************************
3// * License and Disclaimer                                           *
4// *                                                                  *
5// * The  Geant4 software  is  copyright of the Copyright Holders  of *
6// * the Geant4 Collaboration.  It is provided  under  the terms  and *
7// * conditions of the Geant4 Software License,  included in the file *
8// * LICENSE and available at  http://cern.ch/geant4/license .  These *
9// * include a list of copyright holders.                             *
10// *                                                                  *
11// * Neither the authors of this software system, nor their employing *
12// * institutes,nor the agencies providing financial support for this *
13// * work  make  any representation or  warranty, express or implied, *
14// * regarding  this  software system or assume any liability for its *
15// * use.  Please see the license in the file  LICENSE  and URL above *
16// * for the full disclaimer and the limitation of liability.         *
17// *                                                                  *
18// * This  code  implementation is the result of  the  scientific and *
19// * technical work of the GEANT4 collaboration.                      *
20// * By using,  copying,  modifying or  distributing the software (or *
21// * any work based  on the software)  you  agree  to acknowledge its *
22// * use  in  resulting  scientific  publications,  and indicate your *
23// * acceptance of all terms of the Geant4 Software license.          *
24// ********************************************************************
25//
26//
27// File name:     RadmonDetectorMultilayerPlacementLayout.icc
28// Creation date: Sep 2005
29// Main author:   Riccardo Capra <capra@ge.infn.it>
30//
31// Id:            $Id: RadmonDetectorMultilayerPlacementLayout.icc,v 1.3 2006/06/29 16:10:47 gunter Exp $
32// Tag:           $Name:  $
33//
34
35#ifndef   RADMONDETECTORMULTILAYERPLACEMENTLAYOUT_HH
36 #error "RadmonDetectorMultilayerPlacementLayout.icc cannot be included directly. Please use RadmonDetectorMultilayerPlacementLayout.hh"
37#else  /* RADMONDETECTORMULTILAYERPLACEMENTLAYOUT_HH */
38 inline                                         RadmonDetectorMultilayerPlacementLayout :: RadmonDetectorMultilayerPlacementLayout()
39 {
40 }
41 
42 
43 
44 inline                                         RadmonDetectorMultilayerPlacementLayout :: RadmonDetectorMultilayerPlacementLayout(const RadmonDetectorMultilayerPlacementLayout & copy)
45 :
46  placementLabel(copy.placementLabel),
47  multilayerLabel(copy.multilayerLabel),
48  multilayerRotation(copy.multilayerRotation),
49  multilayerPosition(copy.multilayerPosition)
50 {
51 }
52 
53 
54 
55 inline                                         RadmonDetectorMultilayerPlacementLayout :: ~RadmonDetectorMultilayerPlacementLayout()
56 {
57 }
58 
59 
60 
61
62
63 inline RadmonDetectorMultilayerPlacementLayout & RadmonDetectorMultilayerPlacementLayout :: operator=(const RadmonDetectorMultilayerPlacementLayout & copy)
64 {
65  placementLabel=copy.placementLabel;
66  multilayerLabel=copy.multilayerLabel;
67  multilayerRotation=copy.multilayerRotation;
68  multilayerPosition=copy.multilayerPosition;
69 
70  return (*this);
71 }
72 
73 
74 
75
76
77 inline const G4String &                        RadmonDetectorMultilayerPlacementLayout :: GetLabel(void) const
78 {
79  return placementLabel;
80 }
81 
82 
83 
84 inline const G4String &                        RadmonDetectorMultilayerPlacementLayout :: GetMultilayerLabel(void) const
85 {
86  return multilayerLabel;
87 }
88 
89 
90 
91
92
93 inline void                                    RadmonDetectorMultilayerPlacementLayout :: SetLabel(const G4String & label)
94 {
95  placementLabel=label;
96 }
97 
98 
99 
100 inline void                                    RadmonDetectorMultilayerPlacementLayout :: SetMultilayerLabel(const G4String & label)
101 {
102  multilayerLabel=label;
103 }
104 
105 
106 
107
108
109 inline const G4ThreeVector &                   RadmonDetectorMultilayerPlacementLayout :: GetAbsolutePosition(void) const
110 {
111  return multilayerPosition;
112 }
113 
114 
115 
116 inline const G4RotationMatrix &                RadmonDetectorMultilayerPlacementLayout :: GetAbsoluteRotation(void) const
117 {
118  return multilayerRotation;
119 }
120 
121 
122 
123
124
125 inline void                                    RadmonDetectorMultilayerPlacementLayout :: SetAbsolutePosition(const G4ThreeVector & position)
126 {
127  multilayerPosition=position;
128 }
129 
130 
131 
132 inline void                                    RadmonDetectorMultilayerPlacementLayout :: SetAbsoluteRotation(const G4RotationMatrix & rotation)
133 {
134  multilayerRotation=rotation;
135 }
136#endif /* RADMONDETECTORMULTILAYERPLACEMENTLAYOUT_HH */
Note: See TracBrowser for help on using the repository browser.