source: trunk/examples/advanced/microbeam/include/MicrobeamCellParameterisation.hh@ 1281

Last change on this file since 1281 was 807, checked in by garnier, 17 years ago

update

  • Property svn:executable set to *
File size: 5.6 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// $Id: MicrobeamCellParameterisation.hh,v 1.5 2006/06/29 16:04:59 gunter Exp $
28// -------------------------------------------------------------------
29
30#ifndef MicrobeamCellParameterisation_H
31#define MicrobeamCellParameterisation_H 1
32
33#include "G4VPVParameterisation.hh"
34#include "G4ThreeVector.hh"
35#include "G4Material.hh"
36#include "G4VisAttributes.hh"
37
38class G4VPhysicalVolume;
39class G4Box;
40class G4Tubs;
41class G4Trd;
42class G4Trap;
43class G4Cons;
44class G4Sphere;
45class G4Orb;
46class G4Torus;
47class G4Para;
48class Polycone;
49class Polyhedra;
50class G4Hype;
51
52//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
53
54class MicrobeamCellParameterisation : public G4VPVParameterisation
55{
56 public:
57
58 MicrobeamCellParameterisation
59 (G4int NoBoxes, G4float DimBoxX, G4float DimBoxY, G4float DimBoxZ,
60 G4Material* nucleus1, G4Material* cytoplasm1,
61 G4Material* nucleus2, G4Material* cytoplasm2,
62 G4Material* nucleus3, G4Material* cytoplasm3
63 );
64
65 virtual
66 ~MicrobeamCellParameterisation();
67
68 void ComputeTransformation (const G4int copyNo,G4VPhysicalVolume* physVol) const;
69
70 void ComputeDimensions(G4Box&,
71 const G4int,
72 const G4VPhysicalVolume* ) const;
73
74 void ComputeDimensions(G4Tubs &,
75 const G4int,
76 const G4VPhysicalVolume *) const {}
77
78 void ComputeDimensions(G4Trd &,
79 const G4int,
80 const G4VPhysicalVolume *) const {}
81
82 void ComputeDimensions(G4Trap &,
83 const G4int,
84 const G4VPhysicalVolume *) const {}
85
86 void ComputeDimensions(G4Cons &,
87 const G4int,
88 const G4VPhysicalVolume *) const {}
89
90 void ComputeDimensions(G4Sphere &,
91 const G4int,
92 const G4VPhysicalVolume *) const {}
93
94 void ComputeDimensions(G4Orb &,
95 const G4int,
96 const G4VPhysicalVolume *) const {}
97
98 void ComputeDimensions(G4Torus &,
99 const G4int,
100 const G4VPhysicalVolume *) const {}
101
102 void ComputeDimensions(G4Para &,
103 const G4int,
104 const G4VPhysicalVolume *) const {}
105
106 void ComputeDimensions(G4Polycone &,
107 const G4int,
108 const G4VPhysicalVolume *) const {}
109
110 void ComputeDimensions(G4Polyhedra &,
111 const G4int,
112 const G4VPhysicalVolume *) const {}
113
114 void ComputeDimensions(G4Hype &,
115 const G4int,
116 const G4VPhysicalVolume *) const {}
117
118 G4int GetNoBoxes() {return NoCellBoxes;}
119
120 G4Material* ComputeMaterial(const G4int copyNo,
121 G4VPhysicalVolume* physVol,
122 const G4VTouchable*);
123
124 private:
125
126 G4int NoCellBoxes;
127 G4float DimCellBoxX;
128 G4float DimCellBoxY;
129 G4float DimCellBoxZ;
130
131 G4Material * nucleusMaterial1;
132 G4Material * cytoplasmMaterial1;
133 G4Material * nucleusMaterial2;
134 G4Material * cytoplasmMaterial2;
135 G4Material * nucleusMaterial3;
136 G4Material * cytoplasmMaterial3;
137
138 G4VisAttributes * nucleusAttributes1;
139 G4VisAttributes * cytoplasmAttributes1;
140 G4VisAttributes * nucleusAttributes2;
141 G4VisAttributes * cytoplasmAttributes2;
142 G4VisAttributes * nucleusAttributes3;
143 G4VisAttributes * cytoplasmAttributes3;
144
145 // PHANTOM SIZE IN VOXELS
146 G4ThreeVector *mapCell ; // VOXEL COORDINATES
147 G4float *material ; // MATERIAL
148 G4float *mass ; // DENSITY REGION
149
150};
151
152#endif
153
154
Note: See TracBrowser for help on using the repository browser.