OPAL (Object Oriented Parallel Accelerator Library)  2.2.0
OPAL
Diagnostic.h
Go to the documentation of this file.
1 #ifndef CLASSIC_Diagnostic_HH
2 #define CLASSIC_Diagnostic_HH
3 
4 // ------------------------------------------------------------------------
5 // $RCSfile: Diagnostic.h,v $
6 // ------------------------------------------------------------------------
7 // $Revision: 1.1.1.1 $
8 // ------------------------------------------------------------------------
9 // Copyright: see Copyright.readme
10 // ------------------------------------------------------------------------
11 //
12 // Class: Diagnostic
13 // *** MISSING *** Diagnostic interface is still incomplete.
14 //
15 // ------------------------------------------------------------------------
16 // Class category: AbsBeamline
17 // ------------------------------------------------------------------------
18 //
19 // $Date: 2000/03/27 09:32:31 $
20 // $Author: fci $
21 //
22 // ------------------------------------------------------------------------
23 
24 #include "AbsBeamline/Component.h"
25 
26 
27 // Class Diagnostic
28 // ------------------------------------------------------------------------
30 // Class Diagnostic defines the abstract interface for a beam diagnostic.
31 
32 class Diagnostic: public Component {
33 
34 public:
35 
37  explicit Diagnostic(const std::string &name);
38 
39  Diagnostic();
40  Diagnostic(const Diagnostic &rhs);
41  virtual ~Diagnostic();
42 
44  virtual void accept(BeamlineVisitor &) const override;
45 
46  virtual void initialise(PartBunchBase<double, 3> *bunch, double &startField, double &endField) override;
47 
48  virtual void finalise() override;
49 
50  virtual bool bends() const override;
51 
52  virtual ElementBase::ElementType getType() const override;
53 
54  virtual void getDimensions(double &zBegin, double &zEnd) const override;
55 
56 private:
57 
58  // Not implemented.
59  void operator=(const Diagnostic &);
60 };
61 
62 #endif // CLASSIC_Diagnostic_HH
virtual bool bends() const override
Definition: Diagnostic.cpp:58
virtual void accept(BeamlineVisitor &) const override
Apply visitor to Diagnostic.
Definition: Diagnostic.cpp:47
Interface for beam diagnostics.
Definition: Diagnostic.h:32
virtual ~Diagnostic()
Definition: Diagnostic.cpp:43
virtual void finalise() override
Definition: Diagnostic.cpp:55
virtual ElementBase::ElementType getType() const override
Get element type std::string.
Definition: Diagnostic.cpp:62
virtual void getDimensions(double &zBegin, double &zEnd) const override
Definition: Diagnostic.cpp:66
const std::string name
virtual void initialise(PartBunchBase< double, 3 > *bunch, double &startField, double &endField) override
Definition: Diagnostic.cpp:51
Interface for a single beam element.
Definition: Component.h:51
Abstract algorithm.
void operator=(const Diagnostic &)