ATLAS Offline Software
Static Public Member Functions | List of all members
LArWheelCalculator_Impl::DistanceCalculatorFactory Class Reference

#include <DistanceCalculatorFactory.h>

Collaboration diagram for LArWheelCalculator_Impl::DistanceCalculatorFactory:

Static Public Member Functions

static IDistanceCalculatorCreate (const std::string &sagging_opt, LArWheelCalculator *lwc)
 

Detailed Description

Todo:
Why is this a class???

Definition at line 17 of file DistanceCalculatorFactory.h.

Member Function Documentation

◆ Create()

IDistanceCalculator * LArWheelCalculator_Impl::DistanceCalculatorFactory::Create ( const std::string &  sagging_opt,
LArWheelCalculator lwc 
)
static

Definition at line 14 of file DistanceCalculatorFactory.cxx.

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  }

The documentation for this class was generated from the following files:
CaloSwCorrections.lwc
def lwc(flags, cells_name, *args, **kw)
Definition: CaloSwCorrections.py:215