Belle II Software development
SVDRecoChargeFactory Class Reference

Cluster Charge Factory Class. More...

#include <SVDRecoChargeFactory.h>

Static Public Member Functions

static SVDClusterChargeNewCharge (const std::string &description)
 static function that returns the class to compute the cluster charge
 

Detailed Description

Cluster Charge Factory Class.

Definition at line 23 of file SVDRecoChargeFactory.h.

Member Function Documentation

◆ NewCharge()

static SVDClusterCharge * NewCharge ( const std::string &  description)
inlinestatic

static function that returns the class to compute the cluster charge

Definition at line 31 of file SVDRecoChargeFactory.h.

32 {
33 if (description == "MaxSample")
34 return new SVDMaxSampleCharge;
35 if (description == "SumSamples")
36 return new SVDSumSamplesCharge;
37 if (description == "ELS3")
38 return new SVDELS3Charge;
39
40 B2WARNING("the SVD cluster charge algorithm is not recognized, using SVDMaxSample!");
41 return new SVDMaxSampleCharge;
42 }

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