source: trunk/examples/advanced/radiation_monitor/detector/include/RadmonDetectorMultilayerPlacementLayout.hh @ 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.hh
28// Creation date: Sep 2005
29// Main author:   Riccardo Capra <capra@ge.infn.it>
30//
31// Id:            $Id: RadmonDetectorMultilayerPlacementLayout.hh,v 1.4 2006/06/29 16:10:45 gunter Exp $
32// Tag:           $Name:  $
33//
34// Description:   Internal class to manage placed multilayer
35//
36
37#ifndef   RADMONDETECTORMULTILAYERPLACEMENTLAYOUT_HH
38 #define  RADMONDETECTORMULTILAYERPLACEMENTLAYOUT_HH
39 
40 // Include files
41 #include "G4RotationMatrix.hh"
42 #include "G4ThreeVector.hh"
43 #include "G4String.hh"
44 
45 class RadmonDetectorMultilayerPlacementLayout
46 {
47  public:
48   inline                                       RadmonDetectorMultilayerPlacementLayout();
49   inline                                       RadmonDetectorMultilayerPlacementLayout(const RadmonDetectorMultilayerPlacementLayout & copy);
50   inline                                      ~RadmonDetectorMultilayerPlacementLayout();
51
52   inline RadmonDetectorMultilayerPlacementLayout & operator=(const RadmonDetectorMultilayerPlacementLayout & copy);
53
54   inline const G4String &                      GetLabel(void) const;
55   inline const G4String &                      GetMultilayerLabel(void) const;
56
57   inline void                                  SetLabel(const G4String & label);
58   inline void                                  SetMultilayerLabel(const G4String & label);
59
60   inline const G4ThreeVector &                 GetAbsolutePosition(void) const;
61   inline const G4RotationMatrix &              GetAbsoluteRotation(void) const;
62   G4ThreeVector                                GetRelativePosition(const RadmonDetectorMultilayerPlacementLayout & reference) const;
63   G4RotationMatrix                             GetRelativeRotation(const RadmonDetectorMultilayerPlacementLayout & reference) const;
64
65   inline void                                  SetAbsolutePosition(const G4ThreeVector & position);
66   inline void                                  SetAbsoluteRotation(const G4RotationMatrix & rotation);
67   void                                         SetRelativePosition(const RadmonDetectorMultilayerPlacementLayout & reference, const G4ThreeVector & position);
68   void                                         SetRelativeRotation(const RadmonDetectorMultilayerPlacementLayout & reference, const G4RotationMatrix & rotation);
69
70   void                                         DumpLayout(std::ostream & out, const G4String & indent=G4String()) const;
71
72  private:
73  // Private attributes
74   G4String                                     placementLabel;
75   G4String                                     multilayerLabel;
76   G4RotationMatrix                             multilayerRotation;
77   G4ThreeVector                                multilayerPosition;
78 };
79
80 // Inline implementations
81 #include "RadmonDetectorMultilayerPlacementLayout.icc"
82#endif /* RADMONDETECTORMULTILAYERPLACEMENTLAYOUT_HH */
Note: See TracBrowser for help on using the repository browser.