ATLAS Offline Software
Static Public Member Functions | List of all members
PFMatch::ClusterPositionFactory Class Reference

#include <PFMatchPositions.h>

Collaboration diagram for PFMatch::ClusterPositionFactory:

Static Public Member Functions

static std::unique_ptr< IPositionProviderGet (const std::string &positionType)
 

Detailed Description

Definition at line 108 of file PFMatchPositions.h.

Member Function Documentation

◆ Get()

static std::unique_ptr<IPositionProvider> PFMatch::ClusterPositionFactory::Get ( const std::string &  positionType)
inlinestatic

Definition at line 110 of file PFMatchPositions.h.

110  {
111  if (positionType == "PlainEtaPhi") {
112  return std::make_unique<ClusterPlainEtaPhiProvider>();
113  } else if (positionType == "GeomCenterEtaPhi") {
114  return std::make_unique<ClusterGeometricalCenterProvider>();
115  } else {
116  std::cerr << "ClusterPositionFactory\tERROR\tInvalid cluster position type: \"" << positionType << "\"" << std::endl;
117  assert(false);
118  return 0;
119  }
120  }

The documentation for this class was generated from the following file: