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

#include <PFMatchPositions.h>

Collaboration diagram for PFMatch::TrackPositionFactory:

Static Public Member Functions

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

Detailed Description

Definition at line 93 of file PFMatchPositions.h.

Member Function Documentation

◆ Get()

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

Definition at line 95 of file PFMatchPositions.h.

95  {
96  if (positionType == "EM1EtaPhi") {
97  return std::make_unique<TrackEtaPhiInFixedLayersProvider>(TrackLayer::EMB1, TrackLayer::EME1, TrackLayer::FCAL0);
98  } else if (positionType == "EM2EtaPhi") {
99  return std::make_unique<TrackEtaPhiInFixedLayersProvider>(TrackLayer::EMB2, TrackLayer::EME2, TrackLayer::FCAL0);
100  } else {
101  std::cerr << "TrackPositionFactory\tERROR\tInvalid track position type: \"" << positionType << "\"" << std::endl;
102  assert(false);
103  return 0;
104  }
105  }

The documentation for this class was generated from the following file:
constants.EMB1
int EMB1
Definition: Calorimeter/CaloClusterCorrection/python/constants.py:53
constants.EMB2
int EMB2
Definition: Calorimeter/CaloClusterCorrection/python/constants.py:54
constants.EME1
int EME1
Definition: Calorimeter/CaloClusterCorrection/python/constants.py:55
CaloCell_ID_FCS::FCAL0
@ FCAL0
Definition: FastCaloSim_CaloCell_ID.h:40
constants.EME2
int EME2
Definition: Calorimeter/CaloClusterCorrection/python/constants.py:56