Belle II Software development
SVDRecoPositionFactory.h
1/**************************************************************************
2 * basf2 (Belle II Analysis Software Framework) *
3 * Author: The Belle II Collaboration *
4 * *
5 * See git log for contributors and copyright holders. *
6 * This file is licensed under LGPL-3.0, see LICENSE.md. *
7 **************************************************************************/
8
9#pragma once
10
11//abstract class:
12#include <svd/reconstruction/SVDClusterPosition.h>
13//derived classes:
14#include <svd/reconstruction/SVDCoGOnlyPosition.h>
15#include <svd/reconstruction/SVDOldDefaultPosition.h>
16
17namespace Belle2::SVD {
18
23
24 public:
25
30 static SVDClusterPosition* NewPosition(const std::string& description)
31 {
32 if (description == "CoGOnly")
33 return new SVDCoGOnlyPosition;
34 if (description == "OldDefault")
35 return new SVDOldDefaultPosition;
36
37 B2WARNING("the SVD cluster position algorithm is not recognized, using OldDefault!");
38
39 return new SVDOldDefaultPosition;
40 }
41 };
42
43}
44
Abstract Class representing the SVD cluster position.
Derived Class representing the SVD cluster position computed with the CoGOnly algorithm.
Derived Class representing the SVD cluster position computed with the old algorithm (up to release-05...
Cluster Position Factory Class.
static SVDClusterPosition * NewPosition(const std::string &description)
static function that returns the class to compute the cluster position
Namespace to encapsulate code needed for simulation and reconstrucion of the SVD.
Definition: GeoSVDCreator.h:23