Abstract base class for Particle Flow calibration algorithms. More...
#include <Calibrator.h>
Public Member Functions | |
void | addDetectorElement (DetectorElementPtr const de) |
void | addParticleDeposit (ParticleDepositPtr pd) |
Calibrator () | |
virtual Calibrator * | clone () const =0 |
virtual Calibrator * | create () const =0 |
std::map< DetectorElementPtr, double > | getCalibrationCoefficients () throw ( PFToolsException&) |
std::vector< ParticleDepositPtr > | getParticles () |
int | hasParticles () const |
virtual | ~Calibrator () |
Protected Member Functions | |
virtual std::map < DetectorElementPtr, double > | getCalibrationCoefficientsCore () throw (PFToolsException&) |
Protected Attributes | |
std::vector< DetectorElementPtr > | myDetectorElements |
std::vector< ParticleDepositPtr > | myParticleDeposits |
Abstract base class for Particle Flow calibration algorithms.
Definition at line 21 of file Calibrator.h.
Calibrator::Calibrator | ( | ) |
Definition at line 6 of file Calibrator.cc.
{ }
Calibrator::~Calibrator | ( | ) | [virtual] |
Definition at line 10 of file Calibrator.cc.
{ }
void Calibrator::addDetectorElement | ( | DetectorElementPtr const | de | ) |
Definition at line 13 of file Calibrator.cc.
References myDetectorElements.
{ //std::cout << "myDetecotElements has size: " << myDetectorElements.size() << "before addition.\n"; myDetectorElements.push_back(de); }
void Calibrator::addParticleDeposit | ( | ParticleDepositPtr | pd | ) |
Definition at line 17 of file Calibrator.cc.
References myParticleDeposits.
{ myParticleDeposits.push_back(pd); }
virtual Calibrator* pftools::Calibrator::clone | ( | ) | const [pure virtual] |
Implemented in pftools::LinearCalibrator.
Referenced by pftools::SpaceManager::createCalibrator(), and pftools::SpaceManager::createCalibrators().
virtual Calibrator* pftools::Calibrator::create | ( | ) | const [pure virtual] |
Implemented in pftools::LinearCalibrator.
std::map<DetectorElementPtr, double> pftools::Calibrator::getCalibrationCoefficients | ( | ) | throw ( PFToolsException&) [inline] |
Definition at line 35 of file Calibrator.h.
References getCalibrationCoefficientsCore().
{ return getCalibrationCoefficientsCore(); }
std::map< DetectorElementPtr, double > Calibrator::getCalibrationCoefficientsCore | ( | ) | throw (PFToolsException&) [protected, virtual] |
Reimplemented in pftools::LinearCalibrator.
Definition at line 21 of file Calibrator.cc.
References gather_cfg::cout.
Referenced by getCalibrationCoefficients().
std::vector<ParticleDepositPtr> pftools::Calibrator::getParticles | ( | ) | [inline] |
Definition at line 51 of file Calibrator.h.
References myParticleDeposits.
{ return myParticleDeposits; }
int pftools::Calibrator::hasParticles | ( | ) | const [inline] |
Definition at line 47 of file Calibrator.h.
References myParticleDeposits.
Referenced by pftools::LinearCalibrator::getCalibrationCoefficientsCore().
{ return myParticleDeposits.size(); }
std::vector<DetectorElementPtr> pftools::Calibrator::myDetectorElements [protected] |
Definition at line 61 of file Calibrator.h.
Referenced by addDetectorElement(), pftools::LinearCalibrator::initEijMatrix(), pftools::LinearCalibrator::LinearCalibrator(), and pftools::LinearCalibrator::populateDetElIndex().
std::vector<ParticleDepositPtr> pftools::Calibrator::myParticleDeposits [protected] |
Definition at line 62 of file Calibrator.h.
Referenced by addParticleDeposit(), getParticles(), hasParticles(), pftools::LinearCalibrator::initEijMatrix(), and pftools::LinearCalibrator::LinearCalibrator().