CMS 3D CMS Logo

Public Member Functions | Private Attributes

reco::CastorCell Class Reference

#include <DataFormats/CastorReco/CastorCell.h>

List of all members.

Public Member Functions

 CastorCell ()
 default constructor. Sets energy and position to zero
 CastorCell (const double energy, const ROOT::Math::XYZPoint &position)
 constructor from values
double energy () const
 cell energy
double eta () const
 eta coordinate of cell centroid
bool operator< (const CastorCell &rhs) const
 comparison <= operator
bool operator<= (const CastorCell &rhs) const
 comparison <= operator
bool operator> (const CastorCell &rhs) const
 comparison > operator
bool operator>= (const CastorCell &rhs) const
 comparison >= operator
double phi () const
 azimuthal angle of cell centroid
ROOT::Math::XYZPoint position () const
 cell centroid position
double rho () const
 rho coordinate of cell centroid
double x () const
 x coordinate of cell centroid
double y () const
 y coordinate of cell centroid
double z () const
 z coordinate of cell centroid
virtual ~CastorCell ()
 destructor

Private Attributes

double energy_
 cell energy
ROOT::Math::XYZPoint position_
 cell centroid position

Detailed Description

Class for CastorCells made of full simulation/data

Author:
Hans Van Haevermaet, University of Antwerp
Version:
Id:
CastorCell.h,v 1.5 2010/07/03 19:11:43 hvanhaev Exp

Definition at line 23 of file CastorCell.h.


Constructor & Destructor Documentation

reco::CastorCell::CastorCell ( ) [inline]

default constructor. Sets energy and position to zero

Definition at line 27 of file CastorCell.h.

: energy_(0.), position_(ROOT::Math::XYZPoint(0.,0.,0.)) { }
reco::CastorCell::CastorCell ( const double  energy,
const ROOT::Math::XYZPoint position 
)

constructor from values

Definition at line 3 of file CastorCell.cc.

References energy(), energy_, position(), and position_.

reco::CastorCell::~CastorCell ( ) [virtual]

destructor

Definition at line 8 of file CastorCell.cc.

                            {

}

Member Function Documentation

double reco::CastorCell::energy ( ) const [inline]

cell energy

Definition at line 36 of file CastorCell.h.

References energy_.

Referenced by CastorCell().

{ return energy_; }
double reco::CastorCell::eta ( ) const [inline]

eta coordinate of cell centroid

Definition at line 69 of file CastorCell.h.

References position_.

{ return position_.eta(); }
bool reco::CastorCell::operator< ( const CastorCell rhs) const [inline]

comparison <= operator

Definition at line 51 of file CastorCell.h.

References energy_.

{ return (energy_< rhs.energy_); }
bool reco::CastorCell::operator<= ( const CastorCell rhs) const [inline]

comparison <= operator

Definition at line 48 of file CastorCell.h.

References energy_.

{ return (energy_<=rhs.energy_); }
bool reco::CastorCell::operator> ( const CastorCell rhs) const [inline]

comparison > operator

Definition at line 45 of file CastorCell.h.

References energy_.

{ return (energy_> rhs.energy_); }
bool reco::CastorCell::operator>= ( const CastorCell rhs) const [inline]

comparison >= operator

Definition at line 42 of file CastorCell.h.

References energy_.

{ return (energy_>=rhs.energy_); }
double reco::CastorCell::phi ( ) const [inline]

azimuthal angle of cell centroid

Definition at line 57 of file CastorCell.h.

References position_.

{ return position_.phi(); }
ROOT::Math::XYZPoint reco::CastorCell::position ( ) const [inline]

cell centroid position

Definition at line 39 of file CastorCell.h.

References position_.

Referenced by CastorCell().

{ return position_; }
double reco::CastorCell::rho ( ) const [inline]

rho coordinate of cell centroid

Definition at line 66 of file CastorCell.h.

References position_.

{ return position_.rho(); }
double reco::CastorCell::x ( ) const [inline]

x coordinate of cell centroid

Definition at line 60 of file CastorCell.h.

References position_.

{ return position_.x(); }
double reco::CastorCell::y ( ) const [inline]

y coordinate of cell centroid

Definition at line 63 of file CastorCell.h.

References position_.

{ return position_.y(); }
double reco::CastorCell::z ( ) const [inline]

z coordinate of cell centroid

Definition at line 54 of file CastorCell.h.

References position_.

{ return position_.z(); }

Member Data Documentation

double reco::CastorCell::energy_ [private]

cell energy

Definition at line 74 of file CastorCell.h.

Referenced by CastorCell(), energy(), operator<(), operator<=(), operator>(), and operator>=().

cell centroid position

Definition at line 77 of file CastorCell.h.

Referenced by CastorCell(), eta(), phi(), position(), rho(), x(), y(), and z().