CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
reco::CastorCell Class Reference

#include <DataFormats/CastorReco/CastorCell.h>

Public Member Functions

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

Private Attributes

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

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.

27 : energy_(0.), position_(ROOT::Math::XYZPoint(0.,0.,0.)) { }
double energy_
cell energy
Definition: CastorCell.h:74
Transform3DPJ::Point XYZPoint
ROOT::Math::XYZPoint position_
cell centroid position
Definition: CastorCell.h:77
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_.

3  {
5  energy_ = energy;
6 }
double energy_
cell energy
Definition: CastorCell.h:74
double energy() const
cell energy
Definition: CastorCell.h:36
ROOT::Math::XYZPoint position() const
cell centroid position
Definition: CastorCell.h:39
ROOT::Math::XYZPoint position_
cell centroid position
Definition: CastorCell.h:77
reco::CastorCell::~CastorCell ( )
virtual

destructor

Definition at line 8 of file CastorCell.cc.

8  {
9 
10 }

Member Function Documentation

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

cell energy

Definition at line 36 of file CastorCell.h.

References energy_.

Referenced by CastorCell().

36 { return energy_; }
double energy_
cell energy
Definition: CastorCell.h:74
double reco::CastorCell::eta ( ) const
inline

eta coordinate of cell centroid

Definition at line 69 of file CastorCell.h.

References position_.

69 { return position_.eta(); }
ROOT::Math::XYZPoint position_
cell centroid position
Definition: CastorCell.h:77
bool reco::CastorCell::operator< ( const CastorCell rhs) const
inline

comparison <= operator

Definition at line 51 of file CastorCell.h.

References energy_.

51 { return (energy_< rhs.energy_); }
double energy_
cell energy
Definition: CastorCell.h:74
bool reco::CastorCell::operator<= ( const CastorCell rhs) const
inline

comparison <= operator

Definition at line 48 of file CastorCell.h.

References energy_.

48 { return (energy_<=rhs.energy_); }
double energy_
cell energy
Definition: CastorCell.h:74
bool reco::CastorCell::operator> ( const CastorCell rhs) const
inline

comparison > operator

Definition at line 45 of file CastorCell.h.

References energy_.

45 { return (energy_> rhs.energy_); }
double energy_
cell energy
Definition: CastorCell.h:74
bool reco::CastorCell::operator>= ( const CastorCell rhs) const
inline

comparison >= operator

Definition at line 42 of file CastorCell.h.

References energy_.

42 { return (energy_>=rhs.energy_); }
double energy_
cell energy
Definition: CastorCell.h:74
double reco::CastorCell::phi ( ) const
inline

azimuthal angle of cell centroid

Definition at line 57 of file CastorCell.h.

References position_.

57 { return position_.phi(); }
ROOT::Math::XYZPoint position_
cell centroid position
Definition: CastorCell.h:77
ROOT::Math::XYZPoint reco::CastorCell::position ( ) const
inline

cell centroid position

Definition at line 39 of file CastorCell.h.

References position_.

Referenced by CastorCell().

39 { return position_; }
ROOT::Math::XYZPoint position_
cell centroid position
Definition: CastorCell.h:77
double reco::CastorCell::rho ( ) const
inline

rho coordinate of cell centroid

Definition at line 66 of file CastorCell.h.

References position_.

66 { return position_.rho(); }
ROOT::Math::XYZPoint position_
cell centroid position
Definition: CastorCell.h:77
double reco::CastorCell::x ( ) const
inline
double reco::CastorCell::y ( ) const
inline
double reco::CastorCell::z ( ) const
inline

z coordinate of cell centroid

Definition at line 54 of file CastorCell.h.

References position_.

Referenced by geometryXMLparser.Alignable::pos().

54 { return position_.z(); }
ROOT::Math::XYZPoint position_
cell centroid position
Definition: CastorCell.h:77

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

ROOT::Math::XYZPoint reco::CastorCell::position_
private

cell centroid position

Definition at line 77 of file CastorCell.h.

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