BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
Loading...
Searching...
No Matches
BDSSampler.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 BDSSAMPLER_H
19#define BDSSAMPLER_H
20
21#include "BDSGeometryComponent.hh"
22
23#include "globals.hh" // geant4 types / globals
24
25class BDSApertureInfo;
26class BDSBeamPipe;
27
35{
36public:
37 explicit BDSSampler(const G4String& nameIn,
38 G4int filterSetIDIn = -1);
39 BDSSampler() = delete;
40
42 BDSSampler& operator=(const BDSSampler&) = delete;
45 virtual ~BDSSampler(){;}
46
48 virtual inline G4String GetName() const {return name;}
49 inline G4int GetFilterSetID() const {return filterSetID;}
51
55
56protected:
59 virtual void CommonConstruction();
60
62 virtual void SetSensitivity();
63
64 const G4String name;
65 const G4int filterSetID;
66};
67
68#endif
Holder class for all information required to describe an aperture.
A holder class for a piece of beam pipe geometry.
A generic geometry component for a bdsim model.
Base class and registry of sampler instances.
Definition BDSSampler.hh:35
void MakeMaterialValidForUseInMassWorld()
Definition BDSSampler.cc:49
virtual void CommonConstruction()
Definition BDSSampler.cc:35
G4int GetFilterSetID() const
Accessor.
Definition BDSSampler.hh:49
BDSSampler & operator=(const BDSSampler &)=delete
Assignment and copy constructor not implemented nor used.
BDSSampler(BDSSampler &)=delete
Assignment and copy constructor not implemented nor used.
virtual G4String GetName() const
Accessor.
Definition BDSSampler.hh:48
BDSSampler()=delete
No default constructor.
virtual void SetSensitivity()
Attach sensitive detector to containerLogicalVolume.
Definition BDSSampler.cc:42