BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
Loading...
Searching...
No Matches
BDSSamplerPlane.cc
1/*
2Beam Delivery Simulation (BDSIM) Copyright (C) BDSIM Collaboration, 2001 - 2026.
3
4This file is part of BDSIM.
5
6BDSIM is free software: you can redistribute it and/or modify
7it under the terms of the GNU General Public License as published
8by the Free Software Foundation version 3 of the License.
9
10BDSIM is distributed in the hope that it will be useful, but
11WITHOUT ANY WARRANTY; without even the implied warranty of
12MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13GNU General Public License for more details.
14
15You should have received a copy of the GNU General Public License
16along with BDSIM. If not, see <http://www.gnu.org/licenses/>.
17*/
18#include "BDSSamplerPlane.hh"
19
20#include "G4Box.hh"
21#include "G4Types.hh"
22#include "G4String.hh"
23
25
26BDSSamplerPlane::BDSSamplerPlane(const G4String& nameIn,
27 G4double boxHalfWidth,
28 G4int filterSetIDIn):
29 BDSSampler(nameIn, filterSetIDIn)
30{
31 containerSolid = new G4Box(nameIn + "_solid",
32 boxHalfWidth,
33 boxHalfWidth,
34 chordLength*0.5);
35
36 SetExtent(BDSExtent(boxHalfWidth, boxHalfWidth, chordLength*0.5));
37 CommonConstruction();
38}
Holder for +- extents in 3 dimensions.
Definition BDSExtent.hh:38
BDSSamplerPlane()=delete
No default constructor.
static G4double chordLength
The chord length for all is fixed and can be static.
Base class and registry of sampler instances.
Definition BDSSampler.hh:35