Last change
on this file since 3b02069 was 3c40083, checked in by pavel <pavel@…>, 11 years ago |
switch to a more stable Hector version
|
-
Property mode
set to
100644
|
File size:
1.0 KB
|
Rev | Line | |
---|
[5b822e5] | 1 | #ifndef _H_RomanPot_
|
---|
| 2 | #define _H_RomanPot_
|
---|
| 3 |
|
---|
| 4 | /// \file H_RomanPot.h
|
---|
| 5 | /// \brief Roman pot class
|
---|
| 6 |
|
---|
[3c40083] | 7 | /*
|
---|
| 8 | ---- Hector the simulator ----
|
---|
| 9 | A fast simulator of particles through generic beamlines.
|
---|
| 10 | J. de Favereau, X. Rouby ~~~ hector_devel@cp3.phys.ucl.ac.be
|
---|
| 11 |
|
---|
| 12 | http://www.fynu.ucl.ac.be/hector.html
|
---|
| 13 |
|
---|
| 14 | Centre de Physique des Particules et de Phénoménologie (CP3)
|
---|
| 15 | Université Catholique de Louvain (UCL)
|
---|
| 16 | */
|
---|
| 17 |
|
---|
[5b822e5] | 18 | // local #includes
|
---|
[3c40083] | 19 | #include "H_OpticalElement.h"
|
---|
[5b822e5] | 20 |
|
---|
| 21 | #define RP_LENGTH 0.0001
|
---|
| 22 | #define RP_HEIGHT 10000
|
---|
| 23 | /// Roman pot as an optics element.
|
---|
[3c40083] | 24 | class H_RomanPot : public H_OpticalElement {
|
---|
[5b822e5] | 25 |
|
---|
| 26 | public:
|
---|
| 27 | /// Constructors and destructor
|
---|
| 28 | //@{
|
---|
[3c40083] | 29 | H_RomanPot():H_OpticalElement(RP,0.,0.,RP_LENGTH) {init();}
|
---|
| 30 | H_RomanPot(const string, const double, const double);
|
---|
[5b822e5] | 31 | H_RomanPot(const double, const double);
|
---|
[3c40083] | 32 | ~H_RomanPot() { return; };
|
---|
[5b822e5] | 33 | //@}
|
---|
[3c40083] | 34 | virtual void printProperties() const;
|
---|
[5b822e5] | 35 | void init();
|
---|
[3c40083] | 36 |
|
---|
[5b822e5] | 37 | private:
|
---|
| 38 | virtual void setTypeString() {typestring=RPNAME;};
|
---|
[3c40083] | 39 | virtual void setMatrix(const float, const float, const float) const;
|
---|
| 40 |
|
---|
[5b822e5] | 41 | };
|
---|
| 42 |
|
---|
| 43 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.