Fork me on GitHub

source: svn/trunk/external/Hector/H_RomanPot.h@ 1381

Last change on this file since 1381 was 1365, checked in by Pavel Demin, 11 years ago

switch to a more stable Hector version

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id Revision Date
File size: 1.0 KB
RevLine 
[1360]1#ifndef _H_RomanPot_
2#define _H_RomanPot_
3
4/// \file H_RomanPot.h
5/// \brief Roman pot class
6
[1365]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
[1360]18// local #includes
[1365]19#include "H_OpticalElement.h"
[1360]20
21#define RP_LENGTH 0.0001
22#define RP_HEIGHT 10000
23/// Roman pot as an optics element.
[1365]24class H_RomanPot : public H_OpticalElement {
[1360]25
26 public:
27 /// Constructors and destructor
28 //@{
[1365]29 H_RomanPot():H_OpticalElement(RP,0.,0.,RP_LENGTH) {init();}
30 H_RomanPot(const string, const double, const double);
[1360]31 H_RomanPot(const double, const double);
[1365]32 ~H_RomanPot() { return; };
[1360]33 //@}
[1365]34 virtual void printProperties() const;
[1360]35 void init();
[1365]36
[1360]37 private:
38 virtual void setTypeString() {typestring=RPNAME;};
[1365]39 virtual void setMatrix(const float, const float, const float) const;
40
[1360]41};
42
43#endif
Note: See TracBrowser for help on using the repository browser.