OPAL (Object Oriented Parallel Accelerator Library)  2021.1.99
OPAL
OpalCCollimator.h
Go to the documentation of this file.
1 //
2 // Class OpalCCollimator
3 // The CCOLLIMATOR 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_OpalCCollimator_HH
19 #define OPAL_OpalCCollimator_HH
20 
21 #include "Elements/OpalElement.h"
22 
24 
26 
27 public:
28 
30  enum {
31  XSTART = COMMON, // Start of x coordinate
32  XEND, // End of x coordinate
33  YSTART, // Start of y coordinate
34  YEND, // End of y coordinate
35  ZSTART, // Top boundary
36  ZEND, // Bottom boundary
37  WIDTH, // The width of collimator
38  SIZE
39  };
40 
43 
44  virtual ~OpalCCollimator();
45 
47  virtual OpalCCollimator* clone(const std::string& name);
48 
50  virtual void update();
51 
52 private:
53 
54  // Not implemented.
56  void operator=(const OpalCCollimator&);
57 
58  // Clone constructor.
59  OpalCCollimator(const std::string& name, OpalCCollimator* parent);
61 };
62 
63 #endif // OPAL_OpalCCollimator_HH
const std::string name
virtual void update()
Update the embedded CLASSIC collimator.
OpalCCollimator()
Exemplar constructor.
void operator=(const OpalCCollimator &)
virtual OpalCCollimator * clone(const std::string &name)
Make clone.
virtual ~OpalCCollimator()
ParticleMatterInteraction * parmatint_m
OpalCCollimator(const OpalCCollimator &)