BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
Loading...
Searching...
No Matches
BDSArrayOperatorValue.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 BDSARRAYOPERATORVALUE_H
19#define BDSARRAYOPERATORVALUE_H
20#include "G4String.hh"
21#include "G4Types.hh"
22
32{
33public:
34 explicit BDSArrayOperatorValue(const G4String& nameIn = "None"):
35 name(nameIn)
36 {;}
37 virtual ~BDSArrayOperatorValue(){;}
38
40 virtual G4String Name() const {return name;}
41
45 G4int /*xInd*/,
46 G4int /*yInd */ = 0,
47 G4int /*zInd */ = 0,
48 G4int /*tInd */ = 0) const
49 {return v;}
50
51protected:
52 G4String name;
53};
54
55#endif
Interface for modifying field values.
virtual BDSFieldValue Apply(BDSFieldValue v, G4int, G4int=0, G4int=0, G4int=0) const
virtual G4String Name() const
Return a name of the operator for feedback to the user in print out.