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.)) {}

◆ 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.

3  {
5  energy_ = energy;
6 }

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

◆ ~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.

34 { return energy_; }

References energy_.

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

◆ eta()

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

eta coordinate of cell centroid

Definition at line 67 of file CastorCell.h.

67 { return position_.eta(); }

References position_.

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

◆ operator<()

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

comparison <= operator

Definition at line 49 of file CastorCell.h.

49 { return (energy_ < rhs.energy_); }

References energy_.

◆ operator<=()

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

comparison <= operator

Definition at line 46 of file CastorCell.h.

46 { return (energy_ <= rhs.energy_); }

References energy_.

◆ operator>()

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

comparison > operator

Definition at line 43 of file CastorCell.h.

43 { return (energy_ > rhs.energy_); }

References energy_.

◆ operator>=()

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

comparison >= operator

Definition at line 40 of file CastorCell.h.

40 { return (energy_ >= rhs.energy_); }

References energy_.

◆ phi()

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

azimuthal angle of cell centroid

Definition at line 55 of file CastorCell.h.

55 { return position_.phi(); }

References position_.

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

◆ position()

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

cell centroid position

Definition at line 37 of file CastorCell.h.

37 { return position_; }

References position_.

Referenced by CastorCell().

◆ rho()

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

rho coordinate of cell centroid

Definition at line 64 of file CastorCell.h.

64 { return position_.rho(); }

References position_.

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

◆ x()

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

◆ y()

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

y coordinate of cell centroid

Definition at line 61 of file CastorCell.h.

61 { return position_.y(); }

References position_.

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

◆ z()

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

z coordinate of cell centroid

Definition at line 52 of file CastorCell.h.

52 { return position_.z(); }

References position_.

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

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

reco::CastorCell::energy
double energy() const
cell energy
Definition: CastorCell.h:34
ROOT::Math::XYZPoint
Transform3DPJ::Point XYZPoint
Definition: Transform3DPJ.cc:33
reco::CastorCell::energy_
double energy_
cell energy
Definition: CastorCell.h:71
reco::CastorCell::position
ROOT::Math::XYZPoint position() const
cell centroid position
Definition: CastorCell.h:37
reco::CastorCell::position_
ROOT::Math::XYZPoint position_
cell centroid position
Definition: CastorCell.h:74