BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
Loading...
Searching...
No Matches
BDSMuonCooler.hh
1/*
2Beam Delivery Simulation (BDSIM) Copyright (C) Royal Holloway,
3University of London 2001 - 2022.
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 BDSMUONCOOLER_H
20#define BDSMUONCOOLER_H
21#include "BDSAcceleratorComponent.hh"
22#include "BDSMuonCoolerStructs.hh"
23
24#include "G4String.hh"
25#include "G4ThreeVector.hh"
26#include "G4Types.hh"
27
28#include <vector>
29
30class BDSBeamPipeInfo;
31class BSDFieldInfo;
32class G4Material;
33
41{
42public:
43 BDSMuonCooler(const G4String& nameIn,
44 G4double lengthIn,
45 G4double containerRadiusIn,
46 G4Material* surroundingMaterialIn,
47 const std::vector<BDS::MuonCoolerCoilInfo>& coilInfosIn,
48 const std::vector<BDS::MuonCoolerDipoleInfo>& dipoleInfosIn,
49 const std::vector<BDS::MuonCoolerCavityInfo>& cavityInfosIn,
50 const std::vector<BDS::MuonCoolerAbsorberInfo>& absorberInfosIn,
51 BDSBeamPipeInfo* beamPipeTemplateIn,
52 BDSFieldInfo* outerFieldRecipeIn);
53 virtual ~BDSMuonCooler();
54
55protected:
57 virtual void Build();
58
60 virtual void BuildContainerLogicalVolume();
61
62private:
63 void BuildCoils();
64 void BuildDipoles();
65 void BuildAbsorbers();
66 void BuildCavities();
67 void BuildField();
68
69 G4double containerRadius;
70 G4Material* surroundingMaterial;
71 std::vector<BDS::MuonCoolerCoilInfo> coilInfos;
72 std::vector<BDS::MuonCoolerDipoleInfo> dipoleInfos;
73 std::vector<BDS::MuonCoolerCavityInfo> cavityInfos;
74 std::vector<BDS::MuonCoolerAbsorberInfo> absorberInfos;
75 BDSBeamPipeInfo* beamPipeTemplate;
76 BDSFieldInfo* outerFieldRecipe;
77};
78
79#endif
Abstract class that represents a component of an accelerator.
Holder class for all information required to describe a beam pipe model.
All info required to build complete field of any type.
A muon cooling module.
virtual void BuildContainerLogicalVolume()
Void function to fulfill BDSAcceleratorComponent requirements.
virtual void Build()
Construct geometry.