ATLAS Offline Software
Loading...
Searching...
No Matches
FPTracker/src/CollimatorData.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3*/
4
9#include <sstream>
10
11namespace FPTracker{
13 coll_z (std::vector<std::vector<double> >(2, std::vector<double>(ncoll))),
14 coll_xap (std::vector<std::vector<double> >(2, std::vector<double>(ncoll))),
15 coll_nmag(std::vector<std::vector<int> > (2, std::vector<int>(ncoll))){
16 // absolute values, collimator front faces
17 coll_z[beam1][0] = 148.9900;
18 coll_z[beam1][1] = 183.6170;
19 coll_z[beam2][0] = 148.9900;
20 coll_z[beam2][1] = 183.5240;
21 coll_xap[beam1][0] = cData.xcol1;
22 coll_xap[beam1][1] = cData.xcol2;
23 coll_xap[beam2][0] = cData.xcol1;
24 coll_xap[beam2][1] = cData.xcol2;
25 }
26
27 std::string CollimatorData::toString() const {
28 std::ostringstream ost;
29 ost<<"ncoll "<<ncoll<<'\n';
30 ost<<"coll_z\n";
31 ost<<array2DToString(coll_z)<<'\n';
32 ost<<"coll_xap\n";
33 ost<<array2DToString(coll_xap)<<'\n';
34 ost<<"coll_nmag\n";
35 ost<<array2DToString(coll_nmag)<<'\n';
36 return ost.str();
37 }
38 std::ostream& operator<<(std::ostream& os, const CollimatorData& cData){
39 os<<cData.toString();
40 return os;
41 }
42}
std::vector< std::vector< int > > coll_nmag
std::vector< std::vector< double > > coll_z
std::vector< std::vector< double > > coll_xap
std::ostream & operator<<(std::ostream &os, const Beamline &bl)
std::string array2DToString(const Array2D &arr)
STL namespace.