Fork me on GitHub

source: svn/trunk/Utilities/Hector/include/H_Drift.h@ 602

Last change on this file since 602 was 281, checked in by Xavier Rouby, 16 years ago

new Hector version

File size: 1.9 KB
Line 
1#ifndef _H_Drift_
2#define _H_Drift_
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
22/// \file H_Drift.h
23/// \brief Class aiming at simulating LHC beam drift.
24
25// local includes
26#include "H_OpticalElement.h"
27
28/// \brief Class aiming at simulating LHC beam drift.
29class H_Drift : public H_OpticalElement {
30
31 public:
32 /// Constructors and destructor
33 //@{
34 H_Drift():H_OpticalElement(DRIFT,0.,0.,0.) {init();}
35 H_Drift(const double s, const double l):H_OpticalElement(DRIFT,s,0.,l){init();}
36 H_Drift(const string& nameE, const double s, const double l):H_OpticalElement(nameE,DRIFT,s,0.,l){init();}
37 ~H_Drift() { };
38 //@}
39 void init();
40 virtual void printProperties() const { cout << *this; return;};
41 H_Drift* clone() const;
42
43 protected:
44 virtual void setTypeString() {typestring = DRIFTNAME;};
45 virtual void setMatrix(const float, const float, const float) ;
46 friend std::ostream& operator<< (std::ostream& os, const H_Drift& el);
47};
48
49#endif
Note: See TracBrowser for help on using the repository browser.