-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathsample.h
61 lines (47 loc) · 1.51 KB
/
sample.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
/*
MyTRIM - a three dimensional binary collision Monte Carlo library.
Copyright (C) 2008-2018 Daniel Schwen <daniel@schwen.de>
This library is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as
published by the Free Software Foundation; either version 2.1 of the
License, or (at your option) any later version.
This library is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301 USA
*/
#ifndef MYTRIM_SAMPLE_H
#define MYTRIM_SAMPLE_H
#include <vector>
#include <queue>
#include "ion.h"
#include "material.h"
namespace MyTRIM_NS
{
class SampleBase
{
public:
SampleBase(Real x = 10000.0, Real y = 10000.0, Real z = 10000.0);
virtual void averages(const IonBase * pka);
virtual MaterialBase * lookupMaterial(Point & pos) = 0;
virtual Real rangeMaterial(Point & pos, Point & dir);
/// materials in the sample
std::vector<MaterialBase *> material;
/// simulation volume
Real w[3];
/// periodic, infinitly large, cut off cascades
enum sampleBoundary
{
PBC,
INF,
CUT
};
/// boundary conditions
sampleBoundary bc[3];
};
} // namespace MyTRIM_NS
#endif