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

Definition at line 22 of file CastorCell.h.

Constructor & Destructor Documentation

reco::CastorCell::CastorCell ( )
inline

default constructor. Sets energy and position to zero

Definition at line 26 of file CastorCell.h.

26 : energy_(0.), position_(ROOT::Math::XYZPoint(0.,0.,0.)) { }
double energy_
cell energy
Definition: CastorCell.h:73
Transform3DPJ::Point XYZPoint
ROOT::Math::XYZPoint position_
cell centroid position
Definition: CastorCell.h:76
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:73
double energy() const
cell energy
Definition: CastorCell.h:35
ROOT::Math::XYZPoint position() const
cell centroid position
Definition: CastorCell.h:38
ROOT::Math::XYZPoint position_
cell centroid position
Definition: CastorCell.h:76
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 35 of file CastorCell.h.

References energy_.

Referenced by CastorCell().

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

eta coordinate of cell centroid

Definition at line 68 of file CastorCell.h.

References position_.

Referenced by Particle.Particle::__str__(), Muon.Muon::absEffAreaIso(), Jet.Jet::jetID(), and Jet.Jet::puJetId().

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

comparison <= operator

Definition at line 50 of file CastorCell.h.

References energy_.

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

comparison <= operator

Definition at line 47 of file CastorCell.h.

References energy_.

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

comparison > operator

Definition at line 44 of file CastorCell.h.

References energy_.

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

comparison >= operator

Definition at line 41 of file CastorCell.h.

References energy_.

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

azimuthal angle of cell centroid

Definition at line 56 of file CastorCell.h.

References position_.

Referenced by Particle.Particle::__str__().

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

cell centroid position

Definition at line 38 of file CastorCell.h.

References position_.

Referenced by CastorCell().

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

rho coordinate of cell centroid

Definition at line 65 of file CastorCell.h.

References position_.

65 { return position_.rho(); }
ROOT::Math::XYZPoint position_
cell centroid position
Definition: CastorCell.h:76
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 53 of file CastorCell.h.

References position_.

Referenced by geometryXMLparser.Alignable::pos().

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

Member Data Documentation

double reco::CastorCell::energy_
private

cell energy

Definition at line 73 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 76 of file CastorCell.h.

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