Belle II Software development
SVDRecoTimeFactory Class Reference

Cluster Time Factory Class. More...

#include <SVDRecoTimeFactory.h>

Static Public Member Functions

static SVDClusterTimeNewTime (const std::string &description, const bool &returnRawClusterTime)
 static function that returns the class to compute the cluster time
 

Detailed Description

Cluster Time Factory Class.

Definition at line 23 of file SVDRecoTimeFactory.h.

Member Function Documentation

◆ NewTime()

static SVDClusterTime * NewTime ( const std::string &  description,
const bool &  returnRawClusterTime 
)
inlinestatic

static function that returns the class to compute the cluster time

Definition at line 31 of file SVDRecoTimeFactory.h.

32 {
33 if (description == "CoG6") {
34 SVDCoG6Time* cog6 = new SVDCoG6Time();
35 if (returnRawClusterTime)
36 cog6->setReturnRawClusterTime();
37 return cog6;
38 }
39 if (description == "CoG3") {
40 SVDCoG3Time* cog3 = new SVDCoG3Time();
41 if (returnRawClusterTime)
42 cog3->setReturnRawClusterTime();
43 return cog3;
44 }
45 if (description == "ELS3") {
46 SVDELS3Time* els3 = new SVDELS3Time();
47 if (returnRawClusterTime)
48 els3->setReturnRawClusterTime();
49 return els3;
50 }
51 B2WARNING("the SVD cluster time algorithm is not recognized, using SVDCoG6Time!");
52 SVDCoG6Time* cog6 = new SVDCoG6Time();
53 if (returnRawClusterTime)
54 cog6->setReturnRawClusterTime();
55 return cog6;
56 }

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