OPAL (Object Oriented Parallel Accelerator Library)  2.2.0
OPAL
ThreadAll.h
Go to the documentation of this file.
1 #ifndef OPAL_ThreadAll_HH
2 #define OPAL_ThreadAll_HH
3 
4 // ------------------------------------------------------------------------
5 // $RCSfile: ThreadAll.h,v $
6 // ------------------------------------------------------------------------
7 // $Revision: 1.1.1.1 $
8 // ------------------------------------------------------------------------
9 // Copyright: see Copyright.readme
10 // ------------------------------------------------------------------------
11 //
12 // Class: ThreadAll
13 //
14 // ------------------------------------------------------------------------
15 //
16 // $Date: 2000/03/27 09:33:46 $
17 // $Author: Andreas Adelmann $
18 //
19 // ------------------------------------------------------------------------
20 
21 #include "Tables/CorrectionBase.h"
24 
25 
27 // ------------------------------------------------------------------------
29 
30 class ThreadAll: public CorrectionBase {
31 
32 public:
33 
35  ThreadAll();
36 
37  virtual ~ThreadAll();
38 
40  virtual ThreadAll *clone(const std::string &name);
41 
43  virtual void execute();
44 
45 private:
46 
48  enum {
49  TOLQ = CorrectionBase::SIZE, // Tolerance for the closed orbit positions.
50  TOLP, // Tolerance for the closed orbit angles.
51  LISTC, // List the correctors after correction.
52  LISTM, // List the monitors after correction.
54  };
55 
56  // Not implemented.
57  ThreadAll(const ThreadAll &);
58  void operator=(const ThreadAll &);
59 
61  ThreadAll(const std::string &name, ThreadAll *parent);
62 
63  // Backtrack to correct in one plane.
64  virtual void correct(int plane, TLine::iterator &);
65 
67  bool thread(double tolq, double tolp);
68 
69  // The tracker.
71 };
72 
73 #endif // OPAL_ThreadAll_HH
Abstract base class for all orbit correction commands.
ThreadAll()
Exemplar constructor.
Definition: ThreadAll.cpp:41
OwnPtr< OrbitTracker > itsTracker
Definition: ThreadAll.h:70
virtual void execute()
Check validity of the table definition.
Definition: ThreadAll.cpp:72
void operator=(const ThreadAll &)
virtual ~ThreadAll()
Definition: ThreadAll.cpp:63
virtual void correct(int plane, TLine::iterator &)
Definition: ThreadAll.cpp:156
Class ThreadAll.
Definition: ThreadAll.h:30
const std::string name
std::string::iterator iterator
Definition: MSLang.h:16
bool thread(double tolq, double tolp)
Find the closed orbit by threading.
virtual ThreadAll * clone(const std::string &name)
Make clone.
Definition: ThreadAll.cpp:67