class emcCalibratorFactory

A factory to build calibrator objects.

Public Methods

[more]static bool Initialize(const char* calibrator_classname)
Initialize the calibrator factory.
[more]static emcCalibrator* GetCalibrator(void)
Return a calibrator of the class defined by the Initialize.


Documentation

A factory to build calibrator objects.

USAGE: 1. The factory must be initialized:

emcCalibratorFactory::Initialize("X") ;

where X is one out of: - emcRawDataCalibrator : the calibrator for real raw online data - emcSimulationCalibrator : the calibrator for simulation offline data

2. Get the instance of the selected calibrator:

emcCalibrator* rdc = emcCalibratorFactory::GetCalibrator() ;

ostatic bool Initialize(const char* calibrator_classname)
Initialize the calibrator factory. The calibrator_classname is the name of the calibrator class (which must derive from the ABC emcCalibrator.

ostatic emcCalibrator* GetCalibrator(void)
Return a calibrator of the class defined by the Initialize. If the factory is not initialized, it will return 0 and print an error message.


This class has no child classes.
Author:
: Laurent Aphecetche (mailto:aphecetc@in2p3.fr)

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.