BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
Loading...
Searching...
No Matches
BDSScorerInfo.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 BDSSCORERINFO_H
19#define BDSSCORERINFO_H
20
21#include "BDSScorerType.hh"
22
23#include "globals.hh" // geant4 types / globals
24
25#include <vector>
26
27namespace GMAD
28{
29 class Scorer;
30 class ScorerMesh;
31}
32class G4Material;
33class G4ParticleDefinition;
34
45{
46public:
48 BDSScorerInfo() = delete;
49
52 explicit BDSScorerInfo(const GMAD::Scorer& scorer,
53 G4bool upgradeTo3D = false);
54
56 void CheckParticle(G4ParticleDefinition* particleIn,
57 const G4String& nameIn);
58
60 G4String name;
61 G4ParticleDefinition* particle;
62 G4double minimumKineticEnergy;
63 G4double maximumKineticEnergy;
64 G4double minimumTime;
65 G4double maximumTime;
66 G4String filename;
67 G4String pathname;
68 std::vector<G4Material*> materialsToInclude;
69 std::vector<G4Material*> materialsToExclude;
71 G4bool primariesOnly;
72};
73
74#endif
Recipe class for scorer. Checks values.
BDSScorerType scorerType
Scorer type.
G4bool worldVolumeOnly
Which materials to exclude for scoring.
std::vector< G4Material * > materialsToExclude
Which materials to include for scoring.
G4String name
Scorer name.
G4String filename
Name of the conversion factor file.
G4String pathname
Path of the conversion factor file (for ambient dose)
void CheckParticle(G4ParticleDefinition *particleIn, const G4String &nameIn)
Utility function to check valid pointer and throw exception if not.
BDSScorerInfo()=delete
No default constructor as unused.
G4ParticleDefinition * particle
Particle filter.
Scorer class for parser.
Definition scorer.h:36
Parser namespace for GMAD language. Combination of Geant4 and MAD.