BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
Loading...
Searching...
No Matches
BDSSimpleComponent.hh
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#ifndef BDSSIMPLECOMPONENT_H
19#define BDSSIMPLECOMPONENT_H
20
21#include "BDSAcceleratorComponent.hh"
22
23#include "globals.hh" // geant4 types / globals
24
25class BDSExtent;
27
45{
46public:
50 BDSSimpleComponent(const G4String& name,
51 BDSGeometryComponent* componentIn,
52 G4double arcLength,
53 G4double angle = 0,
54 const G4ThreeVector& inputFaceNormal = G4ThreeVector(0,0,-1),
55 const G4ThreeVector& outputFaceNormal = G4ThreeVector(0,0, 1),
56 BDSBeamPipeInfo* beamPipeInfo = nullptr);
57
61 BDSSimpleComponent(const G4String& name,
62 G4double arcLength,
63 G4double angle,
64 G4VSolid* containerSolidIn,
65 G4LogicalVolume* containerLogicalVolumeIn,
66 const BDSExtent& extentIn,
67 const G4ThreeVector& inputFaceNormal = G4ThreeVector(0,0,-1),
68 const G4ThreeVector& outputFaceNormal = G4ThreeVector(0,0, 1),
69 BDSBeamPipeInfo* beamPipeInfo = nullptr);
70
74
75 BDSSimpleComponent() = delete;
76 BDSSimpleComponent& operator=(const BDSSimpleComponent&) = delete;
78
79protected:
82 virtual void Build();
83
86};
87
88#endif
Abstract class that represents a component of an accelerator.
G4ThreeVector outputFaceNormal
Output face unit normal vector in outgoing reference coordinate frame.
G4ThreeVector inputFaceNormal
Input face unit normal vector in incoming reference coordinate frame.
const G4double arcLength
Const protected member variable that may not be changed by derived classes.
const G4String name
Const protected member variable that may not be changed by derived classes.
G4double angle
Protected member variable that can be modified by derived classes.
BDSBeamPipeInfo * beamPipeInfo
Optional beam pipe recipe that is written out to the survey if it exists.
Holder class for all information required to describe a beam pipe model.
Holder for +- extents in 3 dimensions.
Definition BDSExtent.hh:38
A generic geometry component for a bdsim model.
A BDSAcceleratorComponent wrapper for BDSGeometryComponent.
virtual void BuildContainerLogicalVolume()
Required implementation from base class.