#include <PFMatchPositions.h>
Definition at line 93 of file PFMatchPositions.h.
◆ Get()
| 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: