CMS 3D CMS Logo

Public Member Functions | Public Attributes

pftools::CalibratableElement Class Reference

Small wrapper class for storing individual rechit and cluster information. More...

#include <Calibratable.h>

List of all members.

Public Member Functions

 CalibratableElement ()
 CalibratableElement (double energy, double eta, double phi, int layer, double extent=0.0, double time=0.0)
bool operator< (const CalibratableElement &em) const
void reset ()

Public Attributes

double energy_
double eta_
double extent_
int layer_
double phi_
double time_

Detailed Description

Small wrapper class for storing individual rechit and cluster information.

Author:
Jamie Ballin
Date:
June 2008

Definition at line 24 of file Calibratable.h.


Constructor & Destructor Documentation

pftools::CalibratableElement::CalibratableElement ( ) [inline]

Definition at line 26 of file Calibratable.h.

References reset().

                              {
                reset();
        }
pftools::CalibratableElement::CalibratableElement ( double  energy,
double  eta,
double  phi,
int  layer,
double  extent = 0.0,
double  time = 0.0 
) [inline]

Definition at line 30 of file Calibratable.h.

                                                                :
                energy_(energy), eta_(eta), phi_(phi), time_(time), layer_(layer), extent_(extent) {
        }

Member Function Documentation

bool pftools::CalibratableElement::operator< ( const CalibratableElement em) const [inline]

Definition at line 49 of file Calibratable.h.

References energy_.

                                                            {
                if (em.energy_ < energy_)
                        return true;
                return false;
        }
void pftools::CalibratableElement::reset ( void  ) [inline]

Definition at line 41 of file Calibratable.h.

References energy_, eta_, extent_, layer_, phi_, and time_.

Referenced by CalibratableElement(), and pftools::Calibratable::reset().

                     {
                energy_ = 0.0;
                eta_ = 0.0;
                phi_ = 0.0;
                layer_ = 0;
                extent_ = 0.0;
                time_ = 0.0;
        }

Member Data Documentation

Definition at line 39 of file Calibratable.h.

Referenced by pftools::Calibratable::computeMean(), and reset().

Definition at line 36 of file Calibratable.h.

Referenced by reset().

Definition at line 35 of file Calibratable.h.

Referenced by pftools::Calibratable::computeMean(), and reset().