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

A factory for FanCalculators. More...

#include <FanCalculatorFactory.h>

Collaboration diagram for LArWheelCalculator_Impl::FanCalculatorFactory:

Static Public Member Functions

static IFanCalculatorCreate (bool isSaggingOn, bool isModule, LArWheelCalculator *lwc)
 

Detailed Description

A factory for FanCalculators.

Calculator creation depends on sagging mode and wheel/module calo.

Definition at line 21 of file FanCalculatorFactory.h.

Member Function Documentation

◆ Create()

IFanCalculator * LArWheelCalculator_Impl::FanCalculatorFactory::Create ( bool  isSaggingOn,
bool  isModule,
LArWheelCalculator lwc 
)
static

Definition at line 13 of file FanCalculatorFactory.cxx.

16  {
17  if (isModule) {
18  return new ModuleFanCalculator(lwc);
19  }
20  if (isSaggingOn) {
21  return new WheelFanCalculator<SaggingOn_t>(lwc);
22  } else {
23  return new WheelFanCalculator<SaggingOff_t>(lwc);
24  }
25  }

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