OPAL (Object Oriented Parallel Accelerator Library)
2024.1
OPAL
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
src
Elements
OpalSlit.h
Go to the documentation of this file.
1
//
2
// Class OpalSlit
3
// The SLIT element.
4
//
5
// Copyright (c) 200x - 2020, Paul Scherrer Institut, Villigen PSI, Switzerland
6
// All rights reserved
7
//
8
// This file is part of OPAL.
9
//
10
// OPAL is free software: you can redistribute it and/or modify
11
// it under the terms of the GNU General Public License as published by
12
// the Free Software Foundation, either version 3 of the License, or
13
// (at your option) any later version.
14
//
15
// You should have received a copy of the GNU General Public License
16
// along with OPAL. If not, see <https://www.gnu.org/licenses/>.
17
//
18
#ifndef OPAL_OpalSlit_HH
19
#define OPAL_OpalSlit_HH
20
21
#include "
Elements/OpalElement.h
"
22
23
class
ParticleMatterInteraction
;
24
25
class
OpalSlit
:
public
OpalElement
{
26
27
public
:
28
30
enum
{
31
XSIZE
=
COMMON
,
// The horizontal half-size.
32
YSIZE
,
// The vertical half-size.
33
SIZE
34
};
35
37
OpalSlit
();
38
39
virtual
~OpalSlit
();
40
42
virtual
OpalSlit
*
clone
(
const
std::string&
name
);
43
45
virtual
void
update
();
46
47
private
:
48
49
// Not implemented.
50
OpalSlit
(
const
OpalSlit
&);
51
void
operator=
(
const
OpalSlit
&);
52
53
// Clone constructor.
54
OpalSlit
(
const
std::string&
name
,
OpalSlit
* parent);
55
56
ParticleMatterInteraction
*
parmatint_m
;
57
};
58
59
#endif // OPAL_OpalSlit_HH
OpalSlit::SIZE
Definition:
OpalSlit.h:33
OpalElement.h
OpalSlit::YSIZE
Definition:
OpalSlit.h:32
OpalSlit::~OpalSlit
virtual ~OpalSlit()
Definition:
OpalSlit.cpp:48
OpalSlit::OpalSlit
OpalSlit()
Exemplar constructor.
Definition:
OpalSlit.cpp:26
OpalSlit::clone
virtual OpalSlit * clone(const std::string &name)
Make clone.
Definition:
OpalSlit.cpp:54
OpalSlit::update
virtual void update()
Update the embedded CLASSIC collimator.
Definition:
OpalSlit.cpp:59
OpalSlit::operator=
void operator=(const OpalSlit &)
OpalElement
Definition:
OpalElement.h:28
OpalSlit::parmatint_m
ParticleMatterInteraction * parmatint_m
Definition:
OpalSlit.h:56
OpalSlit
Definition:
OpalSlit.h:25
name
const std::string name
Definition:
MaxNormRadialPeak.cpp:32
ParticleMatterInteraction
Definition:
ParticleMatterInteraction.h:34
OpalElement::COMMON
Definition:
OpalElement.h:56
OpalSlit::XSIZE
Definition:
OpalSlit.h:31
Generated on Tue Jul 2 2024 15:05:24 for OPAL (Object Oriented Parallel Accelerator Library) by
1.8.5