test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 () 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.

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:61
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:62
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().

36  {
38  }
virtual std::map< DetectorElementPtr, double > getCalibrationCoefficientsCore()
Definition: Calibrator.cc:21
std::map< DetectorElementPtr, double > Calibrator::getCalibrationCoefficientsCore ( )
throw (PFToolsException &
)
protectedvirtual

Reimplemented in pftools::LinearCalibrator.

Definition at line 21 of file Calibrator.cc.

References gather_cfg::cout.

Referenced by getCalibrationCoefficients().

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

Definition at line 51 of file Calibrator.h.

References myParticleDeposits.

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

Definition at line 47 of file Calibrator.h.

References myParticleDeposits.

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

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

Member Data Documentation

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