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) Royal Holloway,
3University of London 2001 - 2023.
4
5This file is part of BDSIM.
6
7BDSIM is free software: you can redistribute it and/or modify
8it under the terms of the GNU General Public License as published
9by the Free Software Foundation version 3 of the License.
10
11BDSIM is distributed in the hope that it will be useful, but
12WITHOUT ANY WARRANTY; without even the implied warranty of
13MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14GNU General Public License for more details.
15
16You should have received a copy of the GNU General Public License
17along with BDSIM. If not, see <http://www.gnu.org/licenses/>.
18*/
19#ifndef BDSSIMPLECOMPONENT_H
20#define BDSSIMPLECOMPONENT_H
21
22#include "BDSAcceleratorComponent.hh"
23
24#include "globals.hh" // geant4 types / globals
25
26class BDSExtent;
28
46{
47public:
51 BDSSimpleComponent(const G4String& name,
52 BDSGeometryComponent* componentIn,
53 G4double arcLength,
54 G4double angle = 0,
55 const G4ThreeVector& inputFaceNormal = G4ThreeVector(0,0,-1),
56 const G4ThreeVector& outputFaceNormal = G4ThreeVector(0,0, 1),
57 BDSBeamPipeInfo* beamPipeInfo = nullptr);
58
62 BDSSimpleComponent(const G4String& name,
63 G4double arcLength,
64 G4double angle,
65 G4VSolid* containerSolidIn,
66 G4LogicalVolume* containerLogicalVolumeIn,
67 const BDSExtent& extentIn,
68 const G4ThreeVector& inputFaceNormal = G4ThreeVector(0,0,-1),
69 const G4ThreeVector& outputFaceNormal = G4ThreeVector(0,0, 1),
70 BDSBeamPipeInfo* beamPipeInfo = nullptr);
71
75
76 BDSSimpleComponent() = delete;
77 BDSSimpleComponent& operator=(const BDSSimpleComponent&) = delete;
79
80protected:
83 virtual void Build();
84
87};
88
89#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:39
A generic geometry component for a bdsim model.
A BDSAcceleratorComponent wrapper for BDSGeometryComponent.
virtual void BuildContainerLogicalVolume()
Required implementation from base class.