ATLAS Offline Software
ForwardDetectors
FPTracker
src
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
5
#include "
FPTracker/ConfigData.h
"
6
#include "
FPTracker/DataDumperHelpers.h
"
7
#include <iostream>
8
#include <iomanip>
9
#include <string>
10
#include <sstream>
11
namespace
FPTracker
{
12
13
14
const
double
ConfigData::speedOfLight
= 0.299792458;
// in the appropriate units
15
16
ConfigData::ConfigData
():
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
}
FPTracker::ConfigData::speedOfLight
static const double speedOfLight
Definition:
FPTracker/FPTracker/ConfigData.h:25
python.trigbs_prescaleL1.ost
ost
Definition:
trigbs_prescaleL1.py:104
FPTracker::operator<<
std::ostream & operator<<(std::ostream &os, const Beamline &bl)
Definition:
FPTracker/src/Beamline.cxx:163
FPTracker::ConfigData::useaper
bool useaper
Definition:
FPTracker/FPTracker/ConfigData.h:14
ConfigData.h
FPTracker::ConfigData::xcol1
double xcol1
Definition:
FPTracker/FPTracker/ConfigData.h:16
FPTracker::ConfigData::xcol2
double xcol2
Definition:
FPTracker/FPTracker/ConfigData.h:17
FPTracker::ConfigData::ConfigData
ConfigData()
Definition:
FPTracker/src/ConfigData.cxx:16
FPTracker::ConfigData::absZMagMax
float absZMagMax
Definition:
FPTracker/FPTracker/ConfigData.h:23
ReadFromCoolCompare.os
os
Definition:
ReadFromCoolCompare.py:231
FPTracker::ConfigData::pbeam0
double pbeam0
Definition:
FPTracker/FPTracker/ConfigData.h:18
FPTracker::ConfigData::brho
double brho
Definition:
FPTracker/FPTracker/ConfigData.h:19
FPTracker::ConfigData::endMarker
float endMarker
Definition:
FPTracker/FPTracker/ConfigData.h:21
FPTracker::ConfigData::setpbeam
void setpbeam(double)
Definition:
FPTracker/src/ConfigData.cxx:37
DataDumperHelpers.h
FPTracker::ConfigData
Definition:
FPTracker/FPTracker/ConfigData.h:9
calibdata.cd
cd
Definition:
calibdata.py:51
FPTracker
Definition:
FPTracker/FPTracker/Beamline.h:12
FPTracker::ConfigData::apermb
double apermb
Definition:
FPTracker/FPTracker/ConfigData.h:15
FPTracker::ConfigData::IP
int IP
Definition:
FPTracker/FPTracker/ConfigData.h:12
FPTracker::ConfigData::toString
std::string toString() const
Definition:
FPTracker/src/ConfigData.cxx:42
Generated on Mon Dec 23 2024 21:08:34 for ATLAS Offline Software by
1.8.18