summaryrefslogtreecommitdiff
path: root/src/main/StraightElement.cc
blob: e43853104170fa2a763924a323cbaaf65a5ca91b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/*
 * StraightElement.cc
 *
 *  Created on: Mar 22, 2011
 *      Author: jakob
 */

#include "StraightElement.h"

namespace vhc {

	// TODO finish implementing abstract methods of Element (toString)
	// Print also magnetic field
	// Same question as in CurvedElement.cc

	/** Cf. StraightElement.h */
	std::string StraightElement::toString() const {

		std::stringstream s;
		s << "StraightElement:"	<< "\n";
		s << "\tPosition of entry: 	 	 "	<< entryPosition << "\n";
		s << "\tPosition of exit: 	 	 "	<< exitPosition	 << "\n";
		s << "\tRadius of section: 	 	 "	<< sectionRadius << "\n";
		s << "\t";
		return s.str();
	}


}