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 | Public Attributes
pftools::CalibratableElement Class Reference

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

#include <Calibratable.h>

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

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

Member Function Documentation

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

Definition at line 49 of file Calibratable.h.

References energy_.

49  {
50  if (em.energy_ < energy_)
51  return true;
52  return false;
53  }
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().

41  {
42  energy_ = 0.0;
43  eta_ = 0.0;
44  phi_ = 0.0;
45  layer_ = 0;
46  extent_ = 0.0;
47  time_ = 0.0;
48  }

Member Data Documentation

double pftools::CalibratableElement::energy_
double pftools::CalibratableElement::eta_
double pftools::CalibratableElement::extent_

Definition at line 39 of file Calibratable.h.

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

int pftools::CalibratableElement::layer_

Definition at line 36 of file Calibratable.h.

Referenced by reset().

double pftools::CalibratableElement::phi_
double pftools::CalibratableElement::time_

Definition at line 35 of file Calibratable.h.

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