Fork me on GitHub

source: git/external/Hector/H_Drift.cc@ 282f591

ImprovedOutputFile Timing dual_readout llp
Last change on this file since 282f591 was 3c40083, checked in by pavel <pavel@…>, 11 years ago

switch to a more stable Hector version

  • Property mode set to 100644
File size: 1.2 KB
RevLine 
[3c40083]1/*
2---- Hector the simulator ----
3 A fast simulator of particles through generic beamlines.
4 J. de Favereau, X. Rouby ~~~ hector_devel@cp3.phys.ucl.ac.be
5
6 http://www.fynu.ucl.ac.be/hector.html
7
8 Centre de Physique des Particules et de Phénoménologie (CP3)
9 Université Catholique de Louvain (UCL)
10*/
[5b822e5]11
12/// \file H_Drift.cc
13/// \brief Class aiming at simulating LHC beam drift.
14
15// local includes
16#include "H_Drift.h"
17#include "H_TransportMatrices.h"
18
19void H_Drift::init() {
20 // must be in public section
21 setTypeString();
22 setMatrix(0,MP,QP);
23 return;
24}
25
[3c40083]26void H_Drift::printProperties() const {
27 cout << typestring << name;
28 cout << "\t\t at s = " << fs;
29 cout << "\t length = " << element_length;
30 cout<<endl;
31 if(element_aperture->getType()!=NONE) {
32 cout <<"\t aperture type = " << element_aperture->getTypeString();
33 element_aperture->printProperties();
[5b822e5]34 }
[3c40083]35 if(element_length<0) { if(VERBOSE) cout<<"\t ERROR : Interpenetration of elements !"<<endl; }
36 if(element_length==0) { if(VERBOSE) cout<<"\t WARNING : 0-length "<< name << " !" << endl; }
[5b822e5]37}
38
[3c40083]39void H_Drift::setMatrix(const float eloss, const float p_mass, const float p_charge) const {
40 *element_mat = driftmat(element_length);
[5b822e5]41 return ;
42}
Note: See TracBrowser for help on using the repository browser.