ATLAS Offline Software
ForwardDetectors
ForwardTracker
src
CollimatorSet.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 "
ForwardTracker/CollimatorSet.h
"
6
#include "
ForwardTracker/Collimator.h
"
7
#include "
ForwardTracker/CollimatorData.h
"
8
#include "
ForwardTracker/ConfigData.h
"
9
#include "
ForwardTracker/STLHelpers.h
"
10
#include "
ForwardTracker/ForwardTrackerConstants.h
"
11
12
namespace
ForwardTracker
{
13
14
Collimator::Container_t
CollimatorSet
(
const
ConfigData
& cData,
const
Side
&
side
) {
15
16
Collimator::Container_t
collimators;
17
18
const
CollimatorData
& collData(cData);
19
20
for
(
int
i
=0;
i
<collData.
coll_n
; ++
i
) {
21
22
Collimator::ConstPtr_t
col
(
new
Collimator
(collData.
coll_z
[
side
][
i
]*
ForwardTrackerConstants::aside
[
side
],
23
collData.
coll_a
[
side
][
i
],
24
side
));
25
26
collimators.push_back(
col
);
27
}
28
29
std::sort(collimators.begin(), collimators.end(), absZGreater<Collimator::ConstPtr_t>);
30
31
return
collimators;
32
}
33
}
ForwardTracker::Collimator::Container_t
std::vector< ConstPtr_t > Container_t
Definition:
ForwardTracker/ForwardTracker/Collimator.h:37
ForwardTracker::Collimator
Definition:
ForwardTracker/ForwardTracker/Collimator.h:19
ForwardTracker::CollimatorData
Definition:
ForwardTracker/ForwardTracker/CollimatorData.h:14
ForwardTracker::ForwardTrackerConstants::aside
static const double aside[2]
Definition:
ForwardTrackerConstants.h:20
STLHelpers.h
TRT::Hit::side
@ side
Definition:
HitInfo.h:83
ConfigData.h
lumiFormat.i
int i
Definition:
lumiFormat.py:85
Side
Definition:
WaferTree.h:36
Collimator.h
ForwardTracker::CollimatorSet
Collimator::Container_t CollimatorSet(const ConfigData &, const Side &side)
Definition:
CollimatorSet.cxx:14
CollimatorSet.h
query_example.col
col
Definition:
query_example.py:7
ForwardTracker::CollimatorData::coll_n
static const int coll_n
Definition:
ForwardTracker/ForwardTracker/CollimatorData.h:16
ForwardTracker::CollimatorData::coll_z
std::vector< std::vector< double > > coll_z
Definition:
ForwardTracker/ForwardTracker/CollimatorData.h:18
ForwardTracker::Collimator::ConstPtr_t
std::shared_ptr< const Collimator > ConstPtr_t
Definition:
ForwardTracker/ForwardTracker/Collimator.h:36
ForwardTrackerConstants.h
CollimatorData.h
ForwardTracker
Definition:
ForwardTracker/ForwardTracker/Beamline.h:12
ForwardTracker::ConfigData
Definition:
ForwardTracker/ForwardTracker/ConfigData.h:12
ForwardTracker::CollimatorData::coll_a
std::vector< std::vector< double > > coll_a
Definition:
ForwardTracker/ForwardTracker/CollimatorData.h:19
Generated on Sun Dec 22 2024 21:08:20 for ATLAS Offline Software by
1.8.18