Changeset 216 in svn for trunk/Utilities/Hector/include
- Timestamp:
- Feb 2, 2009, 12:26:00 PM (16 years ago)
- Location:
- trunk/Utilities/Hector/include
- Files:
-
- 23 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Utilities/Hector/include/H_AbstractBeamLine.h
r3 r216 67 67 const TMatrix getPartialMatrix(const unsigned int ) const; 68 68 /// Returns the transport matrix for a part of the beam from the IP to a given element, given energy loss/mass/charge 69 const TMatrix getPartialMatrix(const string , const float, const float, const float);69 const TMatrix getPartialMatrix(const string&, const float, const float, const float); 70 70 /// Returns the ith element of the beamline 71 71 //@{ … … 75 75 /// Returns a given element of the beamline, choosen by name 76 76 //@{ 77 H_OpticalElement * getElement(const string );78 H_OpticalElement * getElement(const string ) const;77 H_OpticalElement * getElement(const string& ); 78 H_OpticalElement * getElement(const string& ) const; 79 79 //@} 80 80 /// Print some info … … 99 99 void drawY(const float, const float) const; 100 100 /// Moves an element in the list, reorders the lists and recomputes the transport matrix 101 void moveElement(const string , const float );101 void moveElement(const string&, const float ); 102 102 /// Moves the given element tranversely by given amounts. 103 void alignElement(const string , const float, const float);103 void alignElement(const string&, const float, const float); 104 104 /// Tilts the given element tranversely by given angles. 105 void tiltElement(const string , const float, const float);105 void tiltElement(const string&, const float, const float); 106 106 /// Offsets all element in X pos from the start position 107 107 void offsetElements(const float start, const float offset); -
trunk/Utilities/Hector/include/H_Aperture.h
r3 r216 42 42 H_Aperture(const H_Aperture&); 43 43 H_Aperture& operator=(const H_Aperture&); 44 virtual ~H_Aperture() { return;};44 virtual ~H_Aperture() { }; 45 45 virtual H_Aperture* clone() const { return new H_Aperture(type,x1,x2,x3,x4,fx,fy); }; 46 46 //@} -
trunk/Utilities/Hector/include/H_BeamLine.h
r3 r216 36 36 H_BeamLine(const int, const float); 37 37 H_BeamLine& operator=(const H_BeamLine& ); 38 ~H_BeamLine() { return;};38 ~H_BeamLine() {}; 39 39 //@ 40 40 /// Finds the IP position (s) from the MAD table. Should be "IP5" or "IP1". 41 41 //@{ 42 void findIP(const string );43 void findIP(const string , const string);42 void findIP(const string&); 43 void findIP(const string&, const string&); 44 44 //@} 45 45 /// Reader for the external MAD table 46 46 //@{ 47 void fill(const string );48 void fill(const string , const int, const string);47 void fill(const string&); 48 void fill(const string&, const int, const string& ); 49 49 //@} 50 50 /// Returns the IP position (s) -
trunk/Utilities/Hector/include/H_BeamLineParser.h
r3 r216 71 71 */ 72 72 73 extern int column_identification(const string );73 extern int column_identification(const string& ); 74 74 75 75 /// \brief Reader for madx tables to use in H_BeamLine … … 82 82 //@{ 83 83 H_BeamLineParser() {init();} 84 ~H_BeamLineParser() { return;}84 ~H_BeamLineParser() {} 85 85 //@} 86 86 void init(); -
trunk/Utilities/Hector/include/H_BeamParticle.h
r3 r216 46 46 H_BeamParticle(const double, const double); 47 47 H_BeamParticle& operator=(const H_BeamParticle&); 48 ~H_BeamParticle() {if(stop_position) delete stop_position; if(!stop_element) delete stop_element; positions.clear(); return;}48 ~H_BeamParticle() {if(stop_position) delete stop_position; if(!stop_element) delete stop_element; positions.clear();} 49 49 //@} 50 50 /// Smears the (x,y) coordinates of the particle [\f$ \mu m \f$] … … 112 112 void propagate(const H_AbstractBeamLine *, const H_OpticalElement *); 113 113 /// Propagates the particle accross the beamline until a given element 114 void propagate(const H_AbstractBeamLine *, const string );114 void propagate(const H_AbstractBeamLine *, const string&); 115 115 /// Propagates the particle until the end of the beamline 116 116 void propagate(const H_AbstractBeamLine *); -
trunk/Utilities/Hector/include/H_CircularAperture.h
r3 r216 28 28 H_CircularAperture():H_EllipticAperture(0,0,0,0) {type = CIRCULAR; setApertureString();} 29 29 H_CircularAperture(const float, const float, const float); 30 ~H_CircularAperture() { return;};30 ~H_CircularAperture() {}; 31 31 H_CircularAperture* clone() const; 32 32 //@} -
trunk/Utilities/Hector/include/H_Dipole.h
r3 r216 26 26 H_Dipole():H_OpticalElement() {} 27 27 H_Dipole(const int dtype, const double s, const double k, const double l):H_OpticalElement(dtype,s,k,l){} 28 H_Dipole(const string nameE, const int dtype, const double s, const double k, const double l):H_OpticalElement(nameE,dtype,s,k,l){}29 virtual ~H_Dipole() { return;};28 H_Dipole(const string& nameE, const int dtype, const double s, const double k, const double l):H_OpticalElement(nameE,dtype,s,k,l){} 29 virtual ~H_Dipole() {}; 30 30 //@} 31 31 /// Prints the properties of the element -
trunk/Utilities/Hector/include/H_Drift.h
r3 r216 25 25 /// Constructors and destructor 26 26 //@{ 27 27 H_Drift():H_OpticalElement(DRIFT,0.,0.,0.) {init();} 28 28 H_Drift(const double s, const double l):H_OpticalElement(DRIFT,s,0.,l){init();} 29 H_Drift(const string nameE, const double s, const double l):H_OpticalElement(nameE,DRIFT,s,0.,l){init();}30 ~H_Drift() { return;};29 H_Drift(const string& nameE, const double s, const double l):H_OpticalElement(nameE,DRIFT,s,0.,l){init();} 30 ~H_Drift() { }; 31 31 //@} 32 32 virtual void printProperties() const; 33 33 void init(); 34 34 H_Drift* clone() const; 35 35 36 36 protected: -
trunk/Utilities/Hector/include/H_EllipticAperture.h
r3 r216 27 27 H_EllipticAperture():H_Aperture(ELLIPTIC,0,0,0,0,0,0) {} 28 28 H_EllipticAperture(const float, const float, const float, const float); 29 ~H_EllipticAperture() { return;};29 ~H_EllipticAperture() {}; 30 30 virtual H_EllipticAperture* clone() const; 31 31 //@} -
trunk/Utilities/Hector/include/H_HorizontalKicker.h
r3 r216 29 29 H_HorizontalKicker():H_Kicker(HKICKER,0.,0.,0.) {init();} 30 30 H_HorizontalKicker(const double s, const double k, const double l) :H_Kicker(HKICKER,s,k,l){init();} 31 H_HorizontalKicker(const string nameE, const double s, const double k, const double l) :H_Kicker(nameE,HKICKER,s,k,l){init();}32 ~H_HorizontalKicker() { return;};31 H_HorizontalKicker(const string &nameE, const double s, const double k, const double l) :H_Kicker(nameE,HKICKER,s,k,l){init();} 32 ~H_HorizontalKicker() {}; 33 33 //@} 34 34 H_HorizontalKicker* clone() const; -
trunk/Utilities/Hector/include/H_HorizontalQuadrupole.h
r3 r216 27 27 H_HorizontalQuadrupole():H_Quadrupole(HQUADRUPOLE,0.,0.,0.) {init();} 28 28 H_HorizontalQuadrupole(const double s, const double k, const double l) : H_Quadrupole(HQUADRUPOLE,s,k,l){init();} 29 H_HorizontalQuadrupole(const string nameE, const double s, const double k, const double l) : H_Quadrupole(nameE,HQUADRUPOLE,s,k,l){init();}30 ~H_HorizontalQuadrupole() { return;};29 H_HorizontalQuadrupole(const string& nameE, const double s, const double k, const double l) : H_Quadrupole(nameE,HQUADRUPOLE,s,k,l){init();} 30 ~H_HorizontalQuadrupole() {}; 31 31 //@} 32 32 H_HorizontalQuadrupole* clone() const ; -
trunk/Utilities/Hector/include/H_Kicker.h
r3 r216 28 28 H_Kicker():H_OpticalElement() {} 29 29 H_Kicker(const int dtype, const double s, const double k, const double l):H_OpticalElement(dtype,s,k,l){} 30 H_Kicker(const string nameE, const int dtype, const double s, const double k, const double l):H_OpticalElement(nameE,dtype,s,k,l){}31 virtual ~H_Kicker() { return;};30 H_Kicker(const string& nameE, const int dtype, const double s, const double k, const double l):H_OpticalElement(nameE,dtype,s,k,l){} 31 virtual ~H_Kicker() {}; 32 32 //@} 33 33 /// prints the kicker properties -
trunk/Utilities/Hector/include/H_Marker.h
r3 r216 27 27 H_Marker():H_Drift() { type = MARKER; init();} 28 28 H_Marker(const double s):H_Drift(s,0.) { type =MARKER; init();} 29 H_Marker(const string nameE, const double s):H_Drift(nameE,s,0.) { type=MARKER; init();}30 ~H_Marker() { return;};29 H_Marker(const string& nameE, const double s):H_Drift(nameE,s,0.) { type=MARKER; init();} 30 ~H_Marker() { }; 31 31 //@} 32 32 virtual void printProperties() const; -
trunk/Utilities/Hector/include/H_OpticalElement.h
r3 r216 70 70 public: 71 71 /// init method for constructors 72 void init(const string , const int , const double , const double , const double);72 void init(const string&, const int , const double , const double , const double); 73 73 /// Constructors and destructor 74 74 //@{ 75 H_OpticalElement(const string , const int, const double, const double, const double, H_Aperture*);75 H_OpticalElement(const string&, const int, const double, const double, const double, H_Aperture*); 76 76 H_OpticalElement(const int, const double, const double, const double, H_Aperture*); 77 H_OpticalElement(const string , const int, const double, const double, const double);77 H_OpticalElement(const string&, const int, const double, const double, const double); 78 78 H_OpticalElement(const int, const double, const double, const double); 79 79 H_OpticalElement(); -
trunk/Utilities/Hector/include/H_Quadrupole.h
r3 r216 27 27 H_Quadrupole():H_OpticalElement() {} 28 28 H_Quadrupole(const int dtype, const double s, const double k, const double l) : H_OpticalElement(dtype,s,k,l) {} 29 H_Quadrupole(const string nameE, const int dtype, const double s, const double k, const double l) : H_OpticalElement(nameE,dtype,s,k,l) {}30 virtual ~H_Quadrupole() { return;};29 H_Quadrupole(const string& nameE, const int dtype, const double s, const double k, const double l) : H_OpticalElement(nameE,dtype,s,k,l) {} 30 virtual ~H_Quadrupole() {}; 31 31 //@} 32 32 virtual void printProperties() const; -
trunk/Utilities/Hector/include/H_RectEllipticAperture.h
r3 r216 27 27 H_RectEllipticAperture():H_Aperture(RECTELLIPSE,0,0,0,0,0,0) {} 28 28 H_RectEllipticAperture(const float,const float,const float,const float, const float, const float); 29 ~H_RectEllipticAperture() { return;};29 ~H_RectEllipticAperture() {}; 30 30 H_RectEllipticAperture* clone() const; 31 31 //@} -
trunk/Utilities/Hector/include/H_RectangularAperture.h
r3 r216 27 27 H_RectangularAperture():H_Aperture(RECTANGULAR,0,0,0,0,0,0) {} 28 28 H_RectangularAperture(const float,const float,const float,const float); 29 ~H_RectangularAperture() { return;};29 ~H_RectangularAperture() {}; 30 30 H_RectangularAperture* clone() const; 31 31 //@} -
trunk/Utilities/Hector/include/H_RectangularCollimator.h
r3 r216 27 27 H_RectangularCollimator():H_Drift() {type = RCOLLIMATOR; init();} 28 28 H_RectangularCollimator(const double, const double ); 29 H_RectangularCollimator(const string , const double, const double );30 ~H_RectangularCollimator() { return;};29 H_RectangularCollimator(const string&, const double, const double ); 30 ~H_RectangularCollimator() {}; 31 31 //@} 32 32 virtual void printProperties() const; -
trunk/Utilities/Hector/include/H_RectangularDipole.h
r3 r216 26 26 H_RectangularDipole():H_Dipole(RDIPOLE,0.,0.,0.) {init();} 27 27 H_RectangularDipole(const double s, const double k, const double l) :H_Dipole(RDIPOLE,s,k,l){init();} 28 H_RectangularDipole(const string nameE, const double s, const double k, const double l) :H_Dipole(nameE,RDIPOLE,s,k,l){init();}29 ~H_RectangularDipole() { return;};28 H_RectangularDipole(const string& nameE, const double s, const double k, const double l) :H_Dipole(nameE,RDIPOLE,s,k,l){init();} 29 ~H_RectangularDipole() {}; 30 30 //@} 31 31 H_RectangularDipole* clone() const ; -
trunk/Utilities/Hector/include/H_RomanPot.h
r3 r216 28 28 //@{ 29 29 H_RomanPot():H_Drift() {type = RP; init();} 30 H_RomanPot(const string , const double, const double);30 H_RomanPot(const string&, const double, const double); 31 31 H_RomanPot(const double, const double); 32 ~H_RomanPot() { return;};32 ~H_RomanPot() {}; 33 33 //@} 34 34 virtual void printProperties() const; -
trunk/Utilities/Hector/include/H_SectorDipole.h
r3 r216 27 27 H_SectorDipole(const double s, const double k, const double l) :H_Dipole(SDIPOLE,s,k,l){init();} 28 28 H_SectorDipole(const string nameE, const double s, const double k, const double l) :H_Dipole(nameE,SDIPOLE,s,k,l){init();} 29 ~H_SectorDipole() { return;};29 ~H_SectorDipole() {}; 30 30 //@} 31 31 H_SectorDipole* clone() const ; -
trunk/Utilities/Hector/include/H_VerticalKicker.h
r3 r216 31 31 H_VerticalKicker(const double s, const double k, const double l) :H_Kicker(VKICKER,s,k,l){init();} 32 32 H_VerticalKicker(const string nameE, const double s, const double k, const double l) :H_Kicker(nameE,VKICKER,s,k,l){init();} 33 ~H_VerticalKicker() { return;};33 ~H_VerticalKicker() {}; 34 34 //@} 35 35 H_VerticalKicker* clone() const ; -
trunk/Utilities/Hector/include/H_VerticalQuadrupole.h
r3 r216 28 28 H_VerticalQuadrupole(const double s, const double k, const double l):H_Quadrupole(VQUADRUPOLE,s,k,l) {init();} 29 29 H_VerticalQuadrupole(string nameE, const double s, const double k, const double l):H_Quadrupole(nameE,VQUADRUPOLE,s,k,l) {init();} 30 ~H_VerticalQuadrupole() { return;};30 ~H_VerticalQuadrupole() {}; 31 31 //@} 32 32 H_VerticalQuadrupole* clone() const ;
Note:
See TracChangeset
for help on using the changeset viewer.