Skip to content

Commit 07e18d3

Browse files
author
Matilde Carminati
committed
fixing typos using codespell in the geometry package
1 parent c980cf8 commit 07e18d3

17 files changed

+32
-32
lines changed

geometry/bfieldmap/include/BFieldComponentQuad.h

+7-7
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,12 @@ namespace Belle2 {
5050
struct ParamPoint3 {
5151
double s{0}; /**< s in [cm] */
5252
double L{0}; /**< element length in [cm] */
53-
double mxx{0}; /**< xx coefficents to calculate Bx */
54-
double mxy{0}; /**< xy coefficents to calculate Bx */
55-
double mx0{0}; /**< x0 coefficents to calculate Bx */
56-
double myx{0}; /**< yx coefficents to calculate By */
57-
double myy{0}; /**< yy coefficents to calculate By */
58-
double my0{0}; /**< y0 coefficents to calculate By */
53+
double mxx{0}; /**< xx coefficients to calculate Bx */
54+
double mxy{0}; /**< xy coefficients to calculate Bx */
55+
double mx0{0}; /**< x0 coefficients to calculate Bx */
56+
double myx{0}; /**< yx coefficients to calculate By */
57+
double myy{0}; /**< yy coefficients to calculate By */
58+
double my0{0}; /**< y0 coefficients to calculate By */
5959
/**
6060
* Calculates the X component of the magnetic field vector at
6161
* the specified space point from a quadrupole lense.
@@ -93,7 +93,7 @@ namespace Belle2 {
9393
}
9494
};
9595

96-
/** start and stop indicies to narrow search in array */
96+
/** start and stop indices to narrow search in array */
9797
struct irange_t {
9898
short int i0{0}; /**< start index */
9999
short int i1{0}; /**< stop index */

geometry/bfieldmap/include/BFieldFrameworkInterface.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ namespace Belle2 {
2020
BFieldFrameworkInterface(): MagneticFieldComponent(true) {}
2121
/** everything is inside this component */
2222
virtual bool inside(const ROOT::Math::XYZVector&) const final override { return true; }
23-
/** and we return the values from the exsiting BFieldMap */
23+
/** and we return the values from the existing BFieldMap */
2424
virtual ROOT::Math::XYZVector getField(const ROOT::Math::XYZVector& position) const final override
2525
{
2626
return BFieldMap::Instance().getBField(position) * Unit::T;

geometry/bfieldmap/src/BFieldComponentBeamline.cc

+3-3
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ namespace Belle2 {
3838
short int n2{0};
3939
};
4040

41-
/** A simple 2d vector stucture */
41+
/** A simple 2d vector structure */
4242
struct xy_t {
4343
double x{0}; /**< x component */
4444
double y{0}; /**< y component */
@@ -56,7 +56,7 @@ namespace Belle2 {
5656
*/
5757
class TriangularInterpolation {
5858
public:
59-
/** returns list of verticies */
59+
/** returns list of vertices */
6060
[[nodiscard]] const vector<xy_t>& getPoints() const { return m_points;}
6161
/** returns list of triangles */
6262
[[nodiscard]] const vector<triangle_t>& getTriangles() const { return m_triangles;}
@@ -77,7 +77,7 @@ namespace Belle2 {
7777
* Calculate extents of a triangular mesh and build spatial
7878
* index. Moves vector contents inside the class.
7979
*
80-
* @param points List of verticies
80+
* @param points List of vertices
8181
* @param triangles List of triangles
8282
* @param d Hint how close spatial index should be built
8383
*/

geometry/bfieldmap/src/BFieldComponentQuad.cc

+4-4
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ void BFieldComponentQuad::initialize()
6060
return;
6161
}
6262

63-
// check if input files exsits
63+
// check if input files exist
6464
string fullPathMapHER = FileSystem::findFile("/data/" + m_mapFilenameHER);
6565
if (!FileSystem::fileExists(fullPathMapHER)) {
6666
B2FATAL("The HER quadrupole magnetic field map file '" << m_mapFilenameHER << "' could not be found !");
@@ -225,7 +225,7 @@ void BFieldComponentQuad::initialize()
225225
m_l3 = proc3(params_ler, p0_LER);
226226

227227
/** In case several maps in the same position we can simply
228-
* sum up all matricies since magnetic field has superposition
228+
* sum up all matrices since magnetic field has superposition
229229
* properties as well as keep only one vector of parameters for each
230230
* beamline
231231
*
@@ -246,7 +246,7 @@ void BFieldComponentQuad::initialize()
246246
};
247247
merge(m_h3, hleak3);
248248

249-
/** calculate ranges where quadrupole lenses continously fill the
249+
/** calculate ranges where quadrupole lenses continuously fill the
250250
* beamline
251251
*
252252
* @param v lense vector
@@ -300,7 +300,7 @@ void BFieldComponentQuad::initialize()
300300
*
301301
* @param ap the vector of lenses
302302
* @param v the vector of ranges
303-
* @return the vector of iterators which points to the begining of the continous area of lenses
303+
* @return the vector of iterators which points to the beginning of the continuous area of lenses
304304
*/
305305
auto associate_lenses = [](const vector<ParamPoint3>& ap, const ranges_t& v) {
306306
vector<std::vector<ParamPoint3>::const_iterator> res;

geometry/dbobjects/include/GeoMaterial.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#include <geometry/dbobjects/GeoMaterialComponent.h>
1515

1616
namespace Belle2 {
17-
/** Class to represent a material informaion in the Database */
17+
/** Class to represent a material information in the Database */
1818
class GeoMaterial: public TObject {
1919
public:
2020
/** default constructor */

geometry/examples/create_and_plot_magneticfield.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
##############################################################################
1212
# This steering file creates the Belle II Magnetic field map and plots the
13-
# result overlayed over the Material distribution
13+
# result overlaid over the Material distribution
1414
##############################################################################
1515

1616
from matplotlib.backends.backend_pdf import PdfPages

geometry/examples/create_geometry_payloads.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
"""
1414
Create a full set of consistent geometry payloads for nominal geometry, phase 2
15-
geometry, and early phase 3 gometry from XML files.
15+
geometry, and early phase 3 geometry from XML files.
1616
1717
Optionally one can give a list of payload names to keep only a subset of payloads
1818
"""

geometry/include/CreatorBase.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ namespace Belle2 {
4747
virtual void createFromDB(const std::string& name, G4LogicalVolume& topVolume, GeometryTypes type);
4848

4949
/** Function to create the geometry database.
50-
* This function should be implemented to convert Gearbox parameters to one ore more database payloads
50+
* This function should be implemented to convert Gearbox parameters to one or more database payloads
5151
* @param content GearDir pointing to the parameters which should be used for construction
5252
* @param iov interval of validity to use when generating payloads
5353
*/

geometry/include/CreatorFactory.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ namespace Belle2 {
2121
*
2222
* CreatorFactory<Classname> Classname_factory("CreatorName");
2323
*
24-
* or similiar to the source file to automatically provide the needed
24+
* or similar to the source file to automatically provide the needed
2525
* factory function and register the creator with the CreatorManager
2626
*/
2727
template<class T> struct CreatorFactory {

geometry/include/GeometryManager.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ namespace Belle2 {
2727
class CreatorBase;
2828

2929
/**
30-
* Flag indiciating the type of geometry to be used
30+
* Flag indicating the type of geometry to be used
3131
*/
3232
enum GeometryTypes {
3333
FullGeometry, /**< Full geometry for simulation */
@@ -110,7 +110,7 @@ namespace Belle2 {
110110
}
111111

112112
/**
113-
* Set the names of addtional components to be added to the default set.
113+
* Set the names of additional components to be added to the default set.
114114
* This member allows to set a list of component names. When creating the
115115
* the geometry, components matching names in the list will be added if
116116
* they are not disabled by default. If a list of components is already

geometry/include/Materials.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ namespace Belle2 {
6767
* G4_Si, G4_Al and other materials are defined all uppercase, e.g.
6868
* G4_AIR, G4_TEFLON.
6969
*
70-
* Found materials are cached internaly using an MRU cache so repitive
70+
* Found materials are cached internally using an MRU cache so repetitive
7171
* access to materials should be O(1) in most cases
7272
*
7373
* @param name Name of the material to be found

geometry/include/utilities.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ namespace Belle2 {
8080
G4Polycone* createPolyCone(const std::string& name, const GearDir& params, double& minZ, double& maxZ);
8181

8282
/**
83-
* Create a solid by roating two polylines around the Z-Axis.
83+
* Create a solid by rotating two polylines around the Z-Axis.
8484
* This function will create a polycone shape directly from Gearbox
8585
* Parameters describing the inner and the outer envelope of the polycone.
8686
* The XML Parameters should be of the form

geometry/modules/fbxWriter/include/FBXWriterModule.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ namespace Belle2 {
9696
//! Once-only flag to write FBX only on the first event
9797
bool m_First{true};
9898

99-
//! User-specified flag to select whether to write and re-use logical- and physical-volume
99+
//! User-specified flag to select whether to write and reuse logical- and physical-volume
100100
//! prototypes once (true) or to write duplicates of each such volume (false).
101101
bool m_UsePrototypes{false};
102102

geometry/modules/src/DensityScalerModule.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ change the density of all materials which are created using the Materials servic
4040
"can be used to scale all components by the same factor. If a component is "
4141
"specified manually and '*' is present the result will be the product of both)");
4242
addParam("ignoredMaterials", m_ignoredMaterials, "A set of material names which should "
43-
"**not** be scaled, usually things like vaccum or air. To scale everything this "
43+
"**not** be scaled, usually things like vacuum or air. To scale everything this "
4444
"parameter should be set to an empty set (``{}`` or ``set()``)",
4545
geometry::Materials::getInstance().getDensityScaleIgnoredMaterials());
4646
}

geometry/src/Materials.cc

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ namespace Belle2 {
3838
{
3939
// check if we have properties defined for this material
4040
if (parameters.getNumberNodes("Property") > 0) {
41-
//Apparantly we have properties, so lets add them to the Material
41+
//Apparently we have properties, so lets add them to the Material
4242
for (const GearDir& property : parameters.getNodes("Property")) {
4343
string name;
4444
try {
@@ -176,7 +176,7 @@ namespace Belle2 {
176176
//elements do not have density
177177
if (component.getIselement()) {
178178
B2ERROR("createMaterial " << parameters.getName()
179-
<< ": Cannot calculate density when adding elements, please provde a density");
179+
<< ": Cannot calculate density when adding elements, please provide a density");
180180
return nullptr;
181181
}
182182
G4Material* mat = getMaterial(component.getName());

geometry/src/utilities.cc

+3-3
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ namespace Belle2 {
149149
* This function subdivides the polyline given by segments to contain a
150150
* point at every z position in points. Furthermore, the polyline will
151151
* be extended to cover the same range of z as the points by appending
152-
* the first or last point of points to the polyline if neccessary.
152+
* the first or last point of points to the polyline if necessary.
153153
*
154154
* This function also checks if the points have ascending z positions.
155155
*
@@ -186,7 +186,7 @@ namespace Belle2 {
186186
}
187187

188188
//Now make sure the polyline extend over the same z range by adding the
189-
//first/last point of points when neccessary
189+
//first/last point of points when necessary
190190
if (points.front().first < segments.front().first) {
191191
segments.insert(segments.begin(), points.front());
192192
}
@@ -230,7 +230,7 @@ namespace Belle2 {
230230
//We could have more than one point at the same z position for segments
231231
//going directly along x. because of that we check that the z
232232
//coordinates for inner and outer line are always the same, reusing one
233-
//point if neccessary
233+
//point if necessary
234234
if (!innerPoints.empty() && innerPoints.front().first <= outerPoints.front().first) {
235235
boost::tie(innerZ, innerX) = innerPoints.front();
236236
popInner = true;

geometry/tests/test_density_scaler.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
'''
1010
Test if the DensityScaler module works.
11-
N.B.: this test can not be run in a light-release enviroment.
11+
N.B.: this test can not be run in a light-release environment.
1212
'''
1313

1414
import basf2 as b2

0 commit comments

Comments
 (0)