Changeset 1365 in svn for trunk/external/Hector/H_RomanPot.h
- Timestamp:
- Apr 16, 2014, 3:56:14 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/external/Hector/H_RomanPot.h
r1360 r1365 1 1 #ifndef _H_RomanPot_ 2 2 #define _H_RomanPot_ 3 4 /* * * * * * * * * * * * * * * * * * * * * * * * * * * *5 * *6 * --<--<-- A fast simulator --<--<-- *7 * / --<--<-- of particle --<--<-- *8 * ----HECTOR----< *9 * \ -->-->-- transport through -->-->-- *10 * -->-->-- generic beamlines -->-->-- *11 * *12 * JINST 2:P09005 (2007) *13 * X Rouby, J de Favereau, K Piotrzkowski (CP3) *14 * http://www.fynu.ucl.ac.be/hector.html *15 * *16 * Center for Cosmology, Particle Physics and Phenomenology *17 * Universite catholique de Louvain *18 * Louvain-la-Neuve, Belgium *19 * *20 * * * * * * * * * * * * * * * * * * * * * * * * * * * */21 3 22 4 /// \file H_RomanPot.h 23 5 /// \brief Roman pot class 24 6 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 25 18 // local #includes 26 #include "H_ Drift.h"19 #include "H_OpticalElement.h" 27 20 28 21 #define RP_LENGTH 0.0001 29 22 #define RP_HEIGHT 10000 30 23 /// Roman pot as an optics element. 31 class H_RomanPot : public H_ Drift {24 class H_RomanPot : public H_OpticalElement { 32 25 33 26 public: 34 27 /// Constructors and destructor 35 28 //@{ 36 H_RomanPot():H_ Drift() {type = RP;init();}37 H_RomanPot(const string &, const double, const double);29 H_RomanPot():H_OpticalElement(RP,0.,0.,RP_LENGTH) {init();} 30 H_RomanPot(const string, const double, const double); 38 31 H_RomanPot(const double, const double); 39 ~H_RomanPot() { };32 ~H_RomanPot() { return; }; 40 33 //@} 41 H_RomanPot* clone() const;34 virtual void printProperties() const; 42 35 void init(); 36 43 37 private: 44 38 virtual void setTypeString() {typestring=RPNAME;}; 45 virtual void setMatrix(const float, const float, const float) ;46 friend std::ostream& operator<< (std::ostream& os, const H_RomanPot& el); 39 virtual void setMatrix(const float, const float, const float) const; 40 47 41 }; 48 42
Note:
See TracChangeset
for help on using the changeset viewer.