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