ATLAS Offline Software
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 
7 
10 
12 {
13 
14  IDistanceCalculator* DistanceCalculatorFactory::Create(const std::string & sagging_opt,
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 {
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:58
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:41
LArWheelCalculator_Impl::IDistanceCalculator
Definition: IDistanceCalculator.h:19
DistanceCalculatorSaggingOn.h
DistanceCalculatorFactory.h