ATLAS Offline Software
ForwardDetectors
ForwardTracker
src
TransverseShift.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/ForwardTrackerConstants.h
"
6
#include "
ForwardTracker/TransversePoint.h
"
7
#include "
ForwardTracker/TransverseShift.h
"
8
9
#include <cmath>
10
11
namespace
ForwardTracker
{
12
13
TransversePoint
TransverseShift
(
double
z
) {
// account of beam splitting around 155 m
14
15
if
(std::fabs(
z
) >
ForwardTrackerConstants::zOfBeamSeparation
)
16
return
TransversePoint
(-
ForwardTrackerConstants::xdis
,
ForwardTrackerConstants::ydis
);
17
18
return
TransversePoint
(0., 0.);
19
}
20
}
ForwardTracker::ForwardTrackerConstants::ydis
static const double ydis
Definition:
ForwardTrackerConstants.h:22
ForwardTracker::TransverseShift
TransversePoint TransverseShift(double z)
Definition:
TransverseShift.cxx:13
TransverseShift.h
TransversePoint.h
ForwardTracker::ForwardTrackerConstants::zOfBeamSeparation
static const double zOfBeamSeparation
Definition:
ForwardTrackerConstants.h:23
z
#define z
ForwardTracker::TransversePoint
Definition:
ForwardTracker/ForwardTracker/TransversePoint.h:13
ForwardTracker::ForwardTrackerConstants::xdis
static const double xdis
Definition:
ForwardTrackerConstants.h:21
ForwardTrackerConstants.h
ForwardTracker
Definition:
ForwardTracker/ForwardTracker/Beamline.h:12
Generated on Thu Nov 7 2024 21:29:19 for ATLAS Offline Software by
1.8.18