Skip to content

Commit 3550db9

Browse files
committed
Add child classes of plane: scatterer and reference, merely for convenience
1 parent 170092c commit 3550db9

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

telescope/assembly.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,16 @@ namespace gblsim {
2424

2525
};
2626

27+
class scatterer : public plane {
28+
public:
29+
scatterer(double position, double material) : plane(position, material, false) {};
30+
};
31+
32+
class reference : public plane {
33+
public:
34+
reference(double position) : plane(position, 0.0, false) {};
35+
};
36+
2737
class telescope {
2838
public:
2939
telescope(std::vector<gblsim::plane> planes, double beam_energy, double material = X0_Air);

0 commit comments

Comments
 (0)