Garfield++ v2r0
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
7
8namespace Heed {
9
10/// Mesh of \f$\beta\gamma\f$ values.
11
12class BGMesh : public RegPassivePtr {
13 public:
14 BGMesh() : xmin(0.0), xmax(0.0), q(0), x(0) {}
15 BGMesh(double fxmin, double fxmax, long fq);
16 double xmin;
17 double xmax;
18 /// Total number of points (not number of intervals).
19 long q;
20 std::vector<double> x;
21 virtual void print(std::ostream& file, int l) const;
22 virtual BGMesh* copy() const { return new BGMesh(*this); }
23};
24std::ostream& operator<<(std::ostream& file, const BGMesh& bgm);
25}
26
27#endif
Mesh of values.
Definition: BGMesh.h:12
virtual BGMesh * copy() const
Definition: BGMesh.h:22
virtual void print(std::ostream &file, int l) const
Definition: BGMesh.cpp:24
long q
Total number of points (not number of intervals).
Definition: BGMesh.h:19
double xmin
Definition: BGMesh.h:16
std::vector< double > x
Definition: BGMesh.h:20
double xmax
Definition: BGMesh.h:17
Definition: BGMesh.cpp:5
std::ostream & operator<<(std::ostream &file, const BGMesh &bgm)
Definition: BGMesh.cpp:36