ATLAS Offline Software
Loading...
Searching...
No Matches
FPTracker/src/ConfigData.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3*/
4
7#include <iostream>
8#include <iomanip>
9#include <string>
10#include <sstream>
11namespace FPTracker{
12
13
14 const double ConfigData::speedOfLight = 0.299792458; // in the appropriate units
15
17 IP (0),
18 useaper (false),
19 apermb (0.),
20 xcol1 (999.),
21 xcol2 (999.),
22 pbeam0 (7000),
23 brho (7000./speedOfLight),
24
25 // tracking will be done to the following
26 // z-value * side sign
27 endMarker (420.),
28
29
30 // absZMagMax - do not read in magnets
31 // from TWISS file with z greater than this value.
32 // default value set to AFP (= 437 for ALFA)
33 absZMagMax (437.)
34 {
35 }
36
37 void ConfigData::setpbeam(double pbeam) {
38 pbeam0 = pbeam;
39 brho = pbeam/speedOfLight;
40 }
41
42 std::string ConfigData::toString() const{
43 std::ostringstream ost;
44 ost << std::left
45 << std::setw(20) << "IP" << IP << '\n'
46 << std::setw(20) << "useaper" << useaper << '\n'
47 << std::setw(20) << "apermb" << apermb << '\n'
48 << std::setw(20) << "xcol1" << xcol1 << '\n'
49 << std::setw(20) << "xcol2" << xcol2 << '\n'
50 << std::setw(20) << "Brho" << brho << '\n'
51 << std::setw(20) << "pbeam0" << pbeam0 << '\n'
52 << std::setw(20) << "endMarker" << endMarker << '\n'
53 << std::setw(20) << "absZMagMax" << absZMagMax << '\n';
54 return ost.str();
55
56 }
57
58 std::ostream& operator<<(std::ostream& os, const ConfigData& cd){
59 os<<cd.toString();
60 return os;
61 }
62
63}
std::ostream & operator<<(std::ostream &os, const Beamline &bl)