ATLAS Offline Software
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
}
CaloSwCorrections.lwc
def lwc(flags, cells_name, *args, **kw)
Definition:
CaloSwCorrections.py:215
LArWheelCalculator_Impl::DistanceCalculatorSaggingOn
Implements details of distance calculation to parts of the LAr endcap with sagging taken into account...
Definition:
DistanceCalculatorSaggingOn.h:19
DistanceCalculatorSaggingOff.h
LArWheelCalculator
Definition:
LArWheelCalculator.h:60
LArWheelCalculator_Impl::DistanceCalculatorSaggingOff
Implements details of distance calculation to parts of the LAr endcap without sagging corrections.
Definition:
DistanceCalculatorSaggingOff.h:21
LArWheelCalculator_Impl::DistanceCalculatorFactory::Create
static IDistanceCalculator * Create(const std::string &sagging_opt, LArWheelCalculator *lwc)
Definition:
DistanceCalculatorFactory.cxx:14
LArWheelCalculator_Impl
Definition:
LArWheelCalculator.h:43
LArWheelCalculator_Impl::IDistanceCalculator
Definition:
IDistanceCalculator.h:19
DistanceCalculatorSaggingOn.h
DistanceCalculatorFactory.h
Generated on Sun Dec 22 2024 21:09:27 for ATLAS Offline Software by
1.8.18