CMS 3D CMS Logo

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

◆ CastorCell() [1/2]

reco::CastorCell::CastorCell ( )
inline

default constructor. Sets energy and position to zero

Definition at line 25 of file CastorCell.h.

25 : energy_(0.), position_(ROOT::Math::XYZPoint(0., 0., 0.)) {}
double energy_
cell energy
Definition: CastorCell.h:71
Transform3DPJ::Point XYZPoint
ROOT::Math::XYZPoint position_
cell centroid position
Definition: CastorCell.h:74

◆ CastorCell() [2/2]

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 }
ROOT::Math::XYZPoint position() const
cell centroid position
Definition: CastorCell.h:37
double energy() const
cell energy
Definition: CastorCell.h:34
double energy_
cell energy
Definition: CastorCell.h:71
ROOT::Math::XYZPoint position_
cell centroid position
Definition: CastorCell.h:74

◆ ~CastorCell()

reco::CastorCell::~CastorCell ( )
virtual

destructor

Definition at line 8 of file CastorCell.cc.

8 {}

Member Function Documentation

◆ energy()

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

cell energy

Definition at line 34 of file CastorCell.h.

References energy_.

Referenced by CastorCell(), and Jet.Jet::rawEnergy().

34 { return energy_; }
double energy_
cell energy
Definition: CastorCell.h:71

◆ eta()

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

eta coordinate of cell centroid

Definition at line 67 of file CastorCell.h.

References position_.

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

67 { return position_.eta(); }
ROOT::Math::XYZPoint position_
cell centroid position
Definition: CastorCell.h:74

◆ operator<()

bool reco::CastorCell::operator< ( const CastorCell rhs) const
inline

comparison <= operator

Definition at line 49 of file CastorCell.h.

References energy_.

49 { return (energy_ < rhs.energy_); }
double energy_
cell energy
Definition: CastorCell.h:71

◆ operator<=()

bool reco::CastorCell::operator<= ( const CastorCell rhs) const
inline

comparison <= operator

Definition at line 46 of file CastorCell.h.

References energy_.

46 { return (energy_ <= rhs.energy_); }
double energy_
cell energy
Definition: CastorCell.h:71

◆ operator>()

bool reco::CastorCell::operator> ( const CastorCell rhs) const
inline

comparison > operator

Definition at line 43 of file CastorCell.h.

References energy_.

43 { return (energy_ > rhs.energy_); }
double energy_
cell energy
Definition: CastorCell.h:71

◆ operator>=()

bool reco::CastorCell::operator>= ( const CastorCell rhs) const
inline

comparison >= operator

Definition at line 40 of file CastorCell.h.

References energy_.

40 { return (energy_ >= rhs.energy_); }
double energy_
cell energy
Definition: CastorCell.h:71

◆ phi()

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

azimuthal angle of cell centroid

Definition at line 55 of file CastorCell.h.

References position_.

Referenced by Particle.Particle::__str__(), and ntupleDataFormat.Track::phiPull().

55 { return position_.phi(); }
ROOT::Math::XYZPoint position_
cell centroid position
Definition: CastorCell.h:74

◆ position()

ROOT::Math::XYZPoint reco::CastorCell::position ( ) const
inline

cell centroid position

Definition at line 37 of file CastorCell.h.

References position_.

Referenced by CastorCell().

37 { return position_; }
ROOT::Math::XYZPoint position_
cell centroid position
Definition: CastorCell.h:74

◆ rho()

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

rho coordinate of cell centroid

Definition at line 64 of file CastorCell.h.

References position_.

Referenced by Lepton.Lepton::absIsoFromEA(), and Muon.Muon::absIsoWithFSR().

64 { return position_.rho(); }
ROOT::Math::XYZPoint position_
cell centroid position
Definition: CastorCell.h:74

◆ x()

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

x coordinate of cell centroid

Definition at line 58 of file CastorCell.h.

References position_.

Referenced by svgfig.Curve.Sample::__repr__(), svgfig.Ellipse::__repr__(), geometryXMLparser.Alignable::pos(), ntupleDataFormat._HitObject::r(), and ntupleDataFormat._HitObject::r3D().

58 { return position_.x(); }
ROOT::Math::XYZPoint position_
cell centroid position
Definition: CastorCell.h:74

◆ y()

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

y coordinate of cell centroid

Definition at line 61 of file CastorCell.h.

References position_.

Referenced by svgfig.Ellipse::__repr__(), geometryXMLparser.Alignable::pos(), ntupleDataFormat._HitObject::r(), and ntupleDataFormat._HitObject::r3D().

61 { return position_.y(); }
ROOT::Math::XYZPoint position_
cell centroid position
Definition: CastorCell.h:74

◆ z()

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

z coordinate of cell centroid

Definition at line 52 of file CastorCell.h.

References position_.

Referenced by geometryXMLparser.Alignable::pos(), and ntupleDataFormat._HitObject::r3D().

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

Member Data Documentation

◆ energy_

double reco::CastorCell::energy_
private

cell energy

Definition at line 71 of file CastorCell.h.

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

◆ position_

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

cell centroid position

Definition at line 74 of file CastorCell.h.

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