source: trunk/examples/advanced/radiation_monitor/detector/include/RadmonDetectorLayerVolumeItem.hh @ 1288

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

update

File size: 5.0 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:     RadmonDetectorLayerVolumesItem.hh
28// Creation date: Sep 2005
29// Main author:   Riccardo Capra <capra@ge.infn.it>
30//
31// Id:            $Id: RadmonDetectorLayerVolumeItem.hh,v 1.5 2006/06/29 16:10:17 gunter Exp $
32// Tag:           $Name:  $
33//
34// Description:   solids, physical and logical volumes
35//
36
37#ifndef   RADMONDETECTORLAYERVOLUMEITEM_HH
38 #define  RADMONDETECTORLAYERVOLUMEITEM_HH
39 
40 // Include files
41 #include "G4RotationMatrix.hh"
42 #include "G4ThreeVector.hh"
43 #include "G4String.hh"
44 
45 // Forward declarations
46 class G4VisAttributes;
47 class G4VSolid;
48 class G4Material;
49 class G4LogicalVolume;
50 class G4VPhysicalVolume;
51 class G4VSensitiveDetector;
52
53 class RadmonDetectorLayerVolumeItem
54 {
55  public:
56   inline                                       RadmonDetectorLayerVolumeItem();
57                                               ~RadmonDetectorLayerVolumeItem();
58
59   inline void                                  SetSolid(G4VSolid * solid);
60   inline void                                  SetAttributes(G4VisAttributes * attrs);
61   inline void                                  SetMaterial(G4Material * material);
62   inline void                                  SetName(const G4String & name);
63   inline void                                  SetPosition(const G4ThreeVector & position);
64   inline void                                  SetRotation(const G4RotationMatrix & rotation);
65   inline void                                  SetSensitiveDetector(G4VSensitiveDetector * detector);
66   inline void                                  SetMotherVolumeItem(RadmonDetectorLayerVolumeItem * item);
67
68   inline G4VSolid *                            GetSolid(void) const;
69   inline G4VisAttributes *                     GetAttributes(void) const;
70   inline G4Material *                          GetMaterial(void) const;
71   inline const G4String &                      GetName(void) const;
72   inline const G4ThreeVector &                 GetPosition(void) const;
73   inline const G4RotationMatrix &              GetRotation(void) const;
74   inline G4VSensitiveDetector *                GetSensitiveDetector(void) const;
75   inline RadmonDetectorLayerVolumeItem *       GetMotherVolumeItem(void) const;
76
77   G4LogicalVolume *                            GetLogicalVolume(void);
78
79  private:
80  // Private methods
81   void                                         Assertion(void);
82 
83  // Hidden constructors and operators
84                                                RadmonDetectorLayerVolumeItem(const RadmonDetectorLayerVolumeItem & copy);
85   RadmonDetectorLayerVolumeItem &              operator=(const RadmonDetectorLayerVolumeItem & copy);
86
87  // Private attributes
88   G4VSolid *                                   volumeSolid;
89   G4VisAttributes *                            volumeAttributes;
90   G4Material *                                 volumeMaterial;
91   G4String                                     volumeName;
92   G4RotationMatrix                             volumeRotation;
93   G4ThreeVector                                volumePosition;
94   G4LogicalVolume *                            volumeLogical;
95   G4VPhysicalVolume *                          volumePhysical;
96   G4VSensitiveDetector *                       volumeSensitiveDetector;
97   RadmonDetectorLayerVolumeItem *              volumeMother;
98 };
99 
100 // Inline implementations
101 #include "RadmonDetectorLayerVolumeItem.icc"
102#endif /* RADMONDETECTORLAYERVOLUMEITEM_HH */
Note: See TracBrowser for help on using the repository browser.