CMS 3D CMS Logo

List of all members | Public Member Functions | Protected Member Functions | Protected Attributes
pftools::Calibrator Class Referenceabstract

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

#include <Calibrator.h>

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

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 () noexcept(false)
 
std::vector< ParticleDepositPtrgetParticles ()
 
int hasParticles () const
 
virtual ~Calibrator ()
 

Protected Member Functions

virtual std::map< DetectorElementPtr, double > getCalibrationCoefficientsCore () noexcept(false)
 

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.

6  {
7 
8 }
Calibrator::~Calibrator ( )
virtual

Definition at line 10 of file Calibrator.cc.

10  {
11 }

Member Function Documentation

void Calibrator::addDetectorElement ( DetectorElementPtr const  de)

Definition at line 13 of file Calibrator.cc.

References myDetectorElements.

13  {
14  //std::cout << "myDetecotElements has size: " << myDetectorElements.size() << "before addition.\n";
15  myDetectorElements.push_back(de);
16 }
std::vector< DetectorElementPtr > myDetectorElements
Definition: Calibrator.h:60
void Calibrator::addParticleDeposit ( ParticleDepositPtr  pd)

Definition at line 17 of file Calibrator.cc.

References myParticleDeposits.

17  {
18  myParticleDeposits.push_back(pd);
19 }
std::vector< ParticleDepositPtr > myParticleDeposits
Definition: Calibrator.h:61
virtual Calibrator* pftools::Calibrator::clone ( ) const
pure virtual
virtual Calibrator* pftools::Calibrator::create ( ) const
pure virtual
std::map<DetectorElementPtr, double> pftools::Calibrator::getCalibrationCoefficients ( )
inlinenoexcept

Definition at line 35 of file Calibrator.h.

References clone(), create(), and getCalibrationCoefficientsCore().

35  {
37  }
virtual std::map< DetectorElementPtr, double > getCalibrationCoefficientsCore() noexcept(false)
Definition: Calibrator.cc:21
std::map< DetectorElementPtr, double > Calibrator::getCalibrationCoefficientsCore ( )
protectedvirtualnoexcept

Reimplemented in pftools::LinearCalibrator.

Definition at line 21 of file Calibrator.cc.

References gather_cfg::cout.

Referenced by getCalibrationCoefficients(), and getParticles().

21  {
22 
23  std::cout << __PRETTY_FUNCTION__
24  << ": Not implemented in default Calibrator class!\n";
25  std::cout << "\tWARNING: returning empty map.\n";
26  std::map<DetectorElementPtr, double> answers;
27  return answers;
28 }
std::vector<ParticleDepositPtr> pftools::Calibrator::getParticles ( )
inline

Definition at line 50 of file Calibrator.h.

References getCalibrationCoefficientsCore(), myParticleDeposits, and noexcept.

50  {
51  return myParticleDeposits;
52  }
std::vector< ParticleDepositPtr > myParticleDeposits
Definition: Calibrator.h:61
int pftools::Calibrator::hasParticles ( ) const
inline

Definition at line 46 of file Calibrator.h.

References myParticleDeposits.

Referenced by pftools::LinearCalibrator::getCalibrationCoefficientsCore().

46  {
47  return myParticleDeposits.size();
48  }
std::vector< ParticleDepositPtr > myParticleDeposits
Definition: Calibrator.h:61

Member Data Documentation

std::vector<DetectorElementPtr> pftools::Calibrator::myDetectorElements
protected
std::vector<ParticleDepositPtr> pftools::Calibrator::myParticleDeposits
protected