ATLAS Offline Software
Loading...
Searching...
No Matches
DetectorDescription
GeoModel
GeoSpecialShapes
src
LArWheelCalculator_Impl
DistanceCalculatorFactory.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
6
#include "
DistanceCalculatorFactory.h
"
7
8
#include "
DistanceCalculatorSaggingOff.h
"
9
#include "
DistanceCalculatorSaggingOn.h
"
10
11
namespace
LArWheelCalculator_Impl
12
{
13
14
IDistanceCalculator
*
DistanceCalculatorFactory::Create
(
const
std::string & sagging_opt,
15
LArWheelCalculator
* lwc)
16
17
{
18
// the same condition is in LArWheelCalculator constructor
19
bool
SaggingOn = (sagging_opt !=
""
&& sagging_opt !=
"off"
)?
true
:
false
;
20
21
if
(SaggingOn) {
22
return
new
DistanceCalculatorSaggingOn
(sagging_opt, lwc);
23
}
else
{
24
return
new
DistanceCalculatorSaggingOff
(lwc);
25
}
26
}
27
28
}
DistanceCalculatorFactory.h
DistanceCalculatorSaggingOff.h
DistanceCalculatorSaggingOn.h
LArWheelCalculator_Impl::DistanceCalculatorFactory::Create
static IDistanceCalculator * Create(const std::string &sagging_opt, LArWheelCalculator *lwc)
Definition
DistanceCalculatorFactory.cxx:14
LArWheelCalculator_Impl::DistanceCalculatorSaggingOff
Implements details of distance calculation to parts of the LAr endcap without sagging corrections.
Definition
DistanceCalculatorSaggingOff.h:21
LArWheelCalculator_Impl::DistanceCalculatorSaggingOn
Implements details of distance calculation to parts of the LAr endcap with sagging taken into account...
Definition
DistanceCalculatorSaggingOn.h:19
LArWheelCalculator_Impl::IDistanceCalculator
Abstract interface for calculator classes that handle distance calculation to parts of the LAr endcap...
Definition
IDistanceCalculator.h:19
LArWheelCalculator
This class separates some of the geometry details of the LAr endcap.
Definition
LArWheelCalculator.h:60
LArWheelCalculator_Impl
Definition
LArWheelCalculator.h:43
Generated on
for ATLAS Offline Software by
1.14.0