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) 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 BDSMUONCOOLER_H
19#define BDSMUONCOOLER_H
20#include "BDSAcceleratorComponent.hh"
21#include "BDSMuonCoolerStructs.hh"
22
23#include "G4String.hh"
24#include "G4ThreeVector.hh"
25#include "G4Types.hh"
26
27#include <vector>
28
29class BDSBeamPipeInfo;
30class BSDFieldInfo;
31class G4Material;
32
40{
41public:
42 BDSMuonCooler(const G4String& nameIn,
43 G4double lengthIn,
44 G4double containerRadiusIn,
45 G4Material* surroundingMaterialIn,
46 const std::vector<BDS::MuonCoolerCoilInfo>& coilInfosIn,
47 const std::vector<BDS::MuonCoolerDipoleInfo>& dipoleInfosIn,
48 const std::vector<BDS::MuonCoolerCavityInfo>& cavityInfosIn,
49 const std::vector<BDS::MuonCoolerAbsorberInfo>& absorberInfosIn,
50 BDSBeamPipeInfo* beamPipeTemplateIn,
51 BDSFieldInfo* outerFieldRecipeIn);
52 virtual ~BDSMuonCooler();
53
54protected:
56 virtual void Build();
57
59 virtual void BuildContainerLogicalVolume();
60
61private:
62 void BuildCoils();
63 void BuildDipoles();
64 void BuildAbsorbers();
65 void BuildCavities();
66 void BuildField();
67
68 G4double containerRadius;
69 G4Material* surroundingMaterial;
70 std::vector<BDS::MuonCoolerCoilInfo> coilInfos;
71 std::vector<BDS::MuonCoolerDipoleInfo> dipoleInfos;
72 std::vector<BDS::MuonCoolerCavityInfo> cavityInfos;
73 std::vector<BDS::MuonCoolerAbsorberInfo> absorberInfos;
74 BDSBeamPipeInfo* beamPipeTemplate;
75 BDSFieldInfo* outerFieldRecipe;
76};
77
78#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.