emcCalibratorFactory Class Reference
[Old calibration software]

#include <emcCalibratorFactory.h>

List of all members.


Detailed Description

(OLD,Factory) Build emcCalibrator objects.

USAGE:

  1. The factory must be initialized:

emcCalibratorFactory::Initialize("X") ;

where X is one out of:


  1. Get the instance of the selected calibrator:

emcCalibrator* rdc = emcCalibratorFactory::GetCalibrator() ;

Author:
L. Aphecetche (aphecetc@in2p3.fr)
Deprecated:
To be depcreated as soon as online code does not use it anylonger, as emcCalibrator class itself is to be deprecated.

Definition at line 30 of file emcCalibratorFactory.h.

Public Member Functions

virtual ~emcCalibratorFactory ()
 dtor not to be used.

Static Public Member Functions

static bool Initialize (const char *calibrator_classname)
 Initialize the calibrator factory.
static emcCalibratorGetCalibrator (void)
 Return a calibrator of the class defined by the Initialize.

Private Member Functions

 emcCalibratorFactory ()
 ctor is not to be used.
 emcCalibratorFactory (const emcCalibratorFactory &obj)
 Copy constructor and assignement are disabled on purpose.
emcCalibratorFactoryoperator= (const emcCalibratorFactory &obj)

Static Private Attributes

static emcCalibratorfCalibrator = 0
 the instance of the selected calibration method


Constructor & Destructor Documentation

emcCalibratorFactory::~emcCalibratorFactory  )  [virtual]
 

dtor not to be used.

Unfortunately it seems that CINT requires public dtor. But should be private really.

Definition at line 18 of file emcCalibratorFactory.C.

emcCalibratorFactory::emcCalibratorFactory  )  [inline, private]
 

ctor is not to be used.

Definition at line 56 of file emcCalibratorFactory.h.

emcCalibratorFactory::emcCalibratorFactory const emcCalibratorFactory obj  )  [private]
 

Copy constructor and assignement are disabled on purpose.


Member Function Documentation

emcCalibrator * emcCalibratorFactory::GetCalibrator void   )  [static]
 

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.

Definition at line 23 of file emcCalibratorFactory.C.

References fCalibrator.

Referenced by mEmcCalibratorModule::Config(), mEmcCalibratorModule::SetCalibrator(), mEmcRecoModuleRealYear3::setup(), and mEmcRecoModuleRealYear2::setupAna().

bool emcCalibratorFactory::Initialize const char *  calibrator_classname  )  [static]
 

Initialize the calibrator factory.

The calibrator_classname is the name of the calibrator class (which must derive from the ABC emcCalibrator.

Definition at line 35 of file emcCalibratorFactory.C.

References fCalibrator, and emcCalibrator::GetName().

Referenced by mEmcCalibratorModule::Config(), and mEmcCalibratorModule::SetCalibrator().

emcCalibratorFactory& emcCalibratorFactory::operator= const emcCalibratorFactory obj  )  [private]
 


Member Data Documentation

emcCalibrator * emcCalibratorFactory::fCalibrator = 0 [static, private]
 

the instance of the selected calibration method

Definition at line 60 of file emcCalibratorFactory.h.

Referenced by GetCalibrator(), and Initialize().


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