Skip to content

Commit

Permalink
Fix the position of the holes in the ICS.
Browse files Browse the repository at this point in the history
  • Loading branch information
paolafer committed Feb 17, 2021
1 parent 294c27f commit 20d220c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
16 changes: 9 additions & 7 deletions source/geometries/NextNewIcs.cc
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ namespace nexus {
_lat_nozzle_x_pos (_body_inner_diam/2. + _body_thickness/2.), // lat_cathode_nozzle_xpos;
_up_small_nozzle_in_diam ( 5. * mm), // The upper central nozzle
_up_big_nozzle_in_diam (62. * mm), // The upper anode & cathode nozzles
_up_nozzle_y_pos (_lat_nozzle_x_pos)

_up_nozzle_y_pos (_lat_nozzle_x_pos),
_center_nozzle_z_pos (25. *mm) // position of the nozzles (lateral and upper side) with respect to the center of the volume
{
// Initializing the geometry navigator (used in vertex generation)
_geom_navigator = G4TransportationManager::GetTransportationManager()->GetNavigatorForTracking();
Expand Down Expand Up @@ -98,11 +98,12 @@ namespace nexus {

// Lateral anode nozzle
ics_solid = new G4SubtractionSolid("ICS", ics_solid, lateral_nozzle_hole_solid, roty,
G4ThreeVector(_lat_nozzle_x_pos, 0., 50. * mm - _lat_nozzle_z_pos));
G4ThreeVector(_lat_nozzle_x_pos, 0., _center_nozzle_z_pos - _lat_nozzle_z_pos));
// Lateral cathode nozzle
ics_solid = new G4SubtractionSolid("ICS", ics_solid, lateral_nozzle_hole_solid, roty,
G4ThreeVector(_lat_nozzle_x_pos, 0., 50. * mm + _lat_nozzle_z_pos));
G4ThreeVector(_lat_nozzle_x_pos, 0., _center_nozzle_z_pos + _lat_nozzle_z_pos));


// UPPER NOZZLES HOLES
G4Tubs* up_small_nozzle_hole_solid =
new G4Tubs("UP_SMALL_NOZZLE_HOLE", 0., _up_small_nozzle_in_diam/2.,
Expand All @@ -118,13 +119,14 @@ namespace nexus {

// Upper anode nozzle
ics_solid = new G4SubtractionSolid("ICS", ics_solid, up_big_nozzle_hole_solid, rotx,
G4ThreeVector( 0., _up_nozzle_y_pos, 50. * mm -_up_nozzle_z_pos));
G4ThreeVector( 0., _up_nozzle_y_pos, _center_nozzle_z_pos -_up_nozzle_z_pos));
// Upper central nozzle
ics_solid = new G4SubtractionSolid("ICS", ics_solid, up_small_nozzle_hole_solid, rotx,
G4ThreeVector( 0., _up_nozzle_y_pos, 50. * mm));
G4ThreeVector( 0., _up_nozzle_y_pos, _center_nozzle_z_pos));
// Upper cathode nozzle
ics_solid = new G4SubtractionSolid("ICS", ics_solid, up_big_nozzle_hole_solid, rotx,
G4ThreeVector( 0., _up_nozzle_y_pos, 50. * mm +_up_nozzle_z_pos));
G4ThreeVector( 0., _up_nozzle_y_pos, _center_nozzle_z_pos +_up_nozzle_z_pos));



G4LogicalVolume* ics_logic =
Expand Down
1 change: 1 addition & 0 deletions source/geometries/NextNewIcs.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ namespace nexus {
// Dimensions coming from outside
G4double _lat_nozzle_in_diam, _lat_nozzle_x_pos, _lat_nozzle_z_pos;
G4double _up_small_nozzle_in_diam, _up_big_nozzle_in_diam, _up_nozzle_y_pos, _up_nozzle_z_pos;
G4double _center_nozzle_z_pos;

// Visibility of the shielding
G4bool _visibility;
Expand Down

0 comments on commit 20d220c

Please sign in to comment.