CMS 3D CMS Logo

Public Member Functions | Protected Member Functions | Protected Attributes

pftools::Calibrator Class Reference

Abstract base class for Particle Flow calibration algorithms. More...

#include <Calibrator.h>

Inheritance diagram for pftools::Calibrator:
pftools::LinearCalibrator

List of all members.

Public Member Functions

void addDetectorElement (DetectorElementPtr const de)
void addParticleDeposit (ParticleDepositPtr pd)
 Calibrator ()
virtual Calibratorclone () const =0
virtual Calibratorcreate () const =0
std::map< DetectorElementPtr,
double > 
getCalibrationCoefficients () throw ( PFToolsException&)
std::vector< ParticleDepositPtrgetParticles ()
int hasParticles () const
virtual ~Calibrator ()

Protected Member Functions

virtual std::map
< DetectorElementPtr, double > 
getCalibrationCoefficientsCore () throw (PFToolsException&)

Protected Attributes

std::vector< DetectorElementPtrmyDetectorElements
std::vector< ParticleDepositPtrmyParticleDeposits

Detailed Description

Abstract base class for Particle Flow calibration algorithms.

Author:
Jamie Ballin
Date:
April 2008

Definition at line 21 of file Calibrator.h.


Constructor & Destructor Documentation

Calibrator::Calibrator ( )

Definition at line 6 of file Calibrator.cc.

                      {

}
Calibrator::~Calibrator ( ) [virtual]

Definition at line 10 of file Calibrator.cc.

                        {
}

Member Function Documentation

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]
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().

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::cout << __PRETTY_FUNCTION__
                        << ": Not implemented in default Calibrator class!\n";
        std::cout << "\tWARNING: returning empty map.\n";
        std::map<DetectorElementPtr, double> answers;
        return answers;
}
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();
        }

Member Data Documentation