Skip to content

Commit

Permalink
Update anode ring vertex generator to actually simulated volume
Browse files Browse the repository at this point in the history
  • Loading branch information
paolafer committed Nov 8, 2023
1 parent 1650b3d commit b797c5b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions source/geometries/Next100FieldCage.cc
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,6 @@ void Next100FieldCage::Construct()
cathode_zpos_ = GetELzCoord() + gate_cathode_dist_ + cathode_thickn_/2.;
gate_zpos_ = GetELzCoord() - grid_thickn_ + gate_ring_thickn_/2.;
el_gap_zpos_ = GetELzCoord() - grid_thickn_ - el_gap_length_/2.;
anode_zpos_ = el_gap_zpos_ - el_gap_length_/2. - gate_ring_thickn_/2.;
anode_grid_zpos_ = el_gap_zpos_ - el_gap_length_/2. - grid_thickn_/2.;

teflon_drift_zpos_ = GetELzCoord() + gate_teflon_dist_ + teflon_drift_length_/2.;
Expand Down Expand Up @@ -572,8 +571,8 @@ void Next100FieldCage::BuildELRegion()
gate_gen_ = new CylinderPointSampler2020(gate_int_diam_/2., gate_ext_diam_/2., gate_ring_thickn_/2.,
0., twopi, nullptr, G4ThreeVector(0., 0., gate_zpos_));
// Anode ring vertex generator
anode_gen_ = new CylinderPointSampler2020(gate_int_diam_/2., gate_ext_diam_/2., gate_ring_thickn_/2.,
0., twopi, nullptr, G4ThreeVector(0., 0., anode_zpos_));
anode_gen_ = new CylinderPointSampler2020(gate_int_diam_/2., gate_ext_diam_/2.,anode_ring_thickn/2.,
0., twopi, nullptr, G4ThreeVector(0., 0., anode_sim_zpos));

/// Visibilities
if (visibility_) {
Expand Down
2 changes: 1 addition & 1 deletion source/geometries/Next100FieldCage.h
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ namespace nexus {

G4double active_length_, buffer_length_;
G4double teflon_drift_length_, teflon_drift_zpos_,teflon_buffer_zpos_;
G4double active_zpos_, cathode_zpos_, gate_zpos_, el_gap_zpos_, anode_zpos_;
G4double active_zpos_, cathode_zpos_, gate_zpos_, el_gap_zpos_;
G4double gate_grid_zpos_, anode_grid_zpos_;


Expand Down

0 comments on commit b797c5b

Please sign in to comment.