Belle II Software development
SVDRecoTimeFactory.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/SVDClusterTime.h>
13//derived classes:
14#include <svd/reconstruction/SVDCoG6Time.h>
15#include <svd/reconstruction/SVDCoG3Time.h>
16#include <svd/reconstruction/SVDELS3Time.h>
17
18namespace Belle2::SVD {
19
24
25 public:
26
31 static SVDClusterTime* NewTime(const std::string& description, const bool& returnRawClusterTime)
32 {
33 if (description == "CoG6") {
34 SVDCoG6Time* cog6 = new SVDCoG6Time();
35 if (returnRawClusterTime)
37 return cog6;
38 }
39 if (description == "CoG3") {
40 SVDCoG3Time* cog3 = new SVDCoG3Time();
41 if (returnRawClusterTime)
43 return cog3;
44 }
45 if (description == "ELS3") {
46 SVDELS3Time* els3 = new SVDELS3Time();
47 if (returnRawClusterTime)
49 return els3;
50 }
51 B2WARNING("the SVD cluster time algorithm is not recognized, using SVDCoG6Time!");
52 SVDCoG6Time* cog6 = new SVDCoG6Time();
53 if (returnRawClusterTime)
55 return cog6;
56 }
57 };
58
59}
60
Abstract Class representing the SVD cluster time.
void setReturnRawClusterTime()
set to return the raw cluster time instead of the calibrated one
Derived Class representing the SVD cluster time computed with the CoG3 algorithm.
Definition: SVDCoG3Time.h:22
Derived Class representing the SVD cluster time computed with the CoG6 algorithm.
Definition: SVDCoG6Time.h:22
Derived Class representing the SVD cluster time computed with the ELS3 algorithm.
Definition: SVDELS3Time.h:24
Cluster Time Factory Class.
static SVDClusterTime * NewTime(const std::string &description, const bool &returnRawClusterTime)
static function that returns the class to compute the cluster time
Namespace to encapsulate code needed for simulation and reconstrucion of the SVD.
Definition: GeoSVDCreator.h:23