Garfield++ 4.0
A toolkit for the detailed simulation of particle detectors based on ionisation measurement in gases and semiconductors
Loading...
Searching...
No Matches
BGMesh.h
Go to the documentation of this file.
1#ifndef BGMESH_H
2#define BGMESH_H
3
4#include <vector>
5
6namespace Heed {
7
8/// Mesh of \f$\beta\gamma\f$ values.
9
10class BGMesh {
11 public:
12 BGMesh() = default;
13 BGMesh(double fxmin, double fxmax, long fq);
14 double xmin = 0.;
15 double xmax = 0.;
16 /// Total number of points (not number of intervals).
17 long q = 0;
18 std::vector<double> x;
19 void print(std::ostream& file, int l) const;
20 BGMesh* copy() const { return new BGMesh(*this); }
21};
22std::ostream& operator<<(std::ostream& file, const BGMesh& bgm);
23}
24
25#endif
Mesh of values.
Definition: BGMesh.h:10
void print(std::ostream &file, int l) const
Definition: BGMesh.cpp:25
long q
Total number of points (not number of intervals).
Definition: BGMesh.h:17
double xmin
Definition: BGMesh.h:14
std::vector< double > x
Definition: BGMesh.h:18
BGMesh()=default
double xmax
Definition: BGMesh.h:15
BGMesh * copy() const
Definition: BGMesh.h:20
Definition: BGMesh.cpp:6
std::ostream & operator<<(std::ostream &file, const BGMesh &bgm)
Definition: BGMesh.cpp:37