ATLAS Offline Software
ForwardDetectors
FPTracker
src
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
5
#include "
FPTracker/CollimatorData.h
"
6
#include "
FPTracker/DataDumperHelpers.h
"
7
#include "
FPTracker/ConfigData.h
"
8
#include "
FPTracker/FPTrackerConstants.h
"
9
#include <sstream>
10
11
namespace
FPTracker
{
12
CollimatorData::CollimatorData
(
const
ConfigData
& cData):
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
}
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
CaloCellPos2Ntuple.int
int
Definition:
CaloCellPos2Ntuple.py:24
ConfigData.h
FPTracker::CollimatorData::ncoll
static const int ncoll
Definition:
FPTracker/FPTracker/CollimatorData.h:15
FPTracker::CollimatorData::coll_nmag
std::vector< std::vector< int > > coll_nmag
Definition:
FPTracker/FPTracker/CollimatorData.h:18
FPTracker::CollimatorData::CollimatorData
CollimatorData(const ConfigData &)
Definition:
FPTracker/src/CollimatorData.cxx:12
FPTracker::ConfigData::xcol1
double xcol1
Definition:
FPTracker/FPTracker/ConfigData.h:16
FPTracker::beam1
@ beam1
Definition:
FPTrackerConstants.h:12
FPTracker::ConfigData::xcol2
double xcol2
Definition:
FPTracker/FPTracker/ConfigData.h:17
CollimatorData.h
FPTracker::CollimatorData::coll_xap
std::vector< std::vector< double > > coll_xap
Definition:
FPTracker/FPTracker/CollimatorData.h:17
FPTrackerConstants.h
FPTracker::beam2
@ beam2
Definition:
FPTrackerConstants.h:12
FPTracker::array2DToString
std::string array2DToString(const Array2D &arr)
Definition:
DataDumperHelpers.h:43
vector
Definition:
MultiHisto.h:13
FPTracker::CollimatorData::toString
std::string toString() const
Definition:
FPTracker/src/CollimatorData.cxx:27
xAOD::double
double
Definition:
CompositeParticle_v1.cxx:159
ReadFromCoolCompare.os
os
Definition:
ReadFromCoolCompare.py:231
DataDumperHelpers.h
FPTracker::ConfigData
Definition:
FPTracker/FPTracker/ConfigData.h:9
FPTracker
Definition:
FPTracker/FPTracker/Beamline.h:12
FPTracker::CollimatorData
Definition:
FPTracker/FPTracker/CollimatorData.h:13
FPTracker::CollimatorData::coll_z
std::vector< std::vector< double > > coll_z
Definition:
FPTracker/FPTracker/CollimatorData.h:16
Generated on Thu Nov 7 2024 21:12:05 for ATLAS Offline Software by
1.8.18