ATLAS Offline Software
ForwardDetectors
FPTracker
src
beamlineXPosition.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/beamlineXPosition.h
"
6
#include "
FPTracker/FPTrackerConstants.h
"
7
#include "
FPTracker/TransversePoint.h
"
8
#include <cmath>
9
namespace
FPTracker
10
{
11
TransversePoint
beamlineXPosition
(
double
z
)
12
{
13
if
(std::fabs(
z
)>
FPTrackerConstants::zOfBeamSeparation
)
14
{
15
TransversePoint
tp
(-
FPTrackerConstants::xdis
,
FPTrackerConstants::ydis
);
16
return
tp
;
17
}
18
TransversePoint
tp
( 0., 0. );
19
return
tp
;
20
}
21
}
FPTracker::FPTrackerConstants::ydis
static const double ydis
Definition:
FPTrackerConstants.h:19
ParticleTest.tp
tp
Definition:
ParticleTest.py:25
TransversePoint.h
FPTrackerConstants.h
z
#define z
FPTracker::beamlineXPosition
TransversePoint beamlineXPosition(double z)
Definition:
beamlineXPosition.cxx:11
beamlineXPosition.h
FPTracker::FPTrackerConstants::zOfBeamSeparation
static const double zOfBeamSeparation
Definition:
FPTrackerConstants.h:20
FPTracker
Definition:
FPTracker/FPTracker/Beamline.h:12
FPTracker::FPTrackerConstants::xdis
static const double xdis
Definition:
FPTrackerConstants.h:18
FPTracker::TransversePoint
Definition:
FPTracker/FPTracker/TransversePoint.h:12
Generated on Thu Nov 7 2024 21:10:44 for ATLAS Offline Software by
1.8.18