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