CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
reco::CastorCluster Class Reference

#include <DataFormats/CastorReco/CastorCluster.h>

Inheritance diagram for reco::CastorCluster:
reco::CastorEgamma reco::CastorJet

Public Member Functions

void add (const CastorTowerRef &tower)
 add reference to constituent CastorTower More...
 
 CastorCluster ()
 default constructor. Sets energy and position to zero More...
 
 CastorCluster (const double energy, const ROOT::Math::XYZPoint &position, const double emEnergy, const double hadEnergy, const double fem, const double width, const double depth, const double fhot, const double sigmaz, const CastorTowerRefVector &usedTowers)
 constructor from values More...
 
double depth () const
 cluster depth in z More...
 
double emEnergy () const
 cluster em energy More...
 
double energy () const
 cluster energy More...
 
double eta () const
 pseudorapidity of cluster centroid More...
 
double fem () const
 cluster em/tot ratio More...
 
double fhot () const
 cluster hotcell/tot ratio More...
 
CastorTowerRefVector getUsedTowers () const
 vector of used Towers More...
 
double hadEnergy () const
 cluster had energy More...
 
bool operator< (const CastorCluster &rhs) const
 comparison <= operator More...
 
bool operator<= (const CastorCluster &rhs) const
 comparison <= operator More...
 
bool operator> (const CastorCluster &rhs) const
 comparison > operator More...
 
bool operator>= (const CastorCluster &rhs) const
 comparison >= operator More...
 
double phi () const
 azimuthal angle of cluster centroid More...
 
ROOT::Math::XYZPoint position () const
 cluster centroid position More...
 
double rho () const
 rho of cluster centroid More...
 
double sigmaz () const
 cluster sigma z More...
 
CastorTower_iterator towersBegin () const
 fist iterator over CastorTower constituents More...
 
CastorTower_iterator towersEnd () const
 last iterator over CastorTower constituents More...
 
size_t towersSize () const
 number of CastorTower constituents More...
 
double width () const
 cluster width in phi More...
 
double x () const
 x of cluster centroid More...
 
double y () const
 y of cluster centroid More...
 
virtual ~CastorCluster ()
 destructor More...
 

Private Attributes

double depth_
 cluster depth More...
 
double emEnergy_
 cluster em energy More...
 
double energy_
 cluster energy More...
 
double fem_
 cluster em/tot Ratio More...
 
double fhot_
 cluster hotcell/tot ratio More...
 
double hadEnergy_
 cluster had energy More...
 
ROOT::Math::XYZPoint position_
 cluster centroid position More...
 
double sigmaz_
 cluster sigma z More...
 
CastorTowerRefVector usedTowers_
 references to CastorTower constituents More...
 
double width_
 cluster width More...
 

Detailed Description

Class for Castor clusters

Author
Hans Van Haevermaet, University of Antwerp

Definition at line 24 of file CastorCluster.h.

Constructor & Destructor Documentation

◆ CastorCluster() [1/2]

reco::CastorCluster::CastorCluster ( )
inline

default constructor. Sets energy and position to zero

Definition at line 27 of file CastorCluster.h.

28  : energy_(0.),
29  position_(ROOT::Math::XYZPoint(0., 0., 0.)),
30  emEnergy_(0.),
31  hadEnergy_(0.),
32  fem_(0.),
33  width_(0.),
34  depth_(0.),
35  fhot_(0.),
36  sigmaz_(0.) {}

◆ CastorCluster() [2/2]

reco::CastorCluster::CastorCluster ( const double  energy,
const ROOT::Math::XYZPoint position,
const double  emEnergy,
const double  hadEnergy,
const double  fem,
const double  width,
const double  depth,
const double  fhot,
const double  sigmaz,
const CastorTowerRefVector usedTowers 
)

constructor from values

Definition at line 3 of file CastorCluster.cc.

12  {
14  energy_ = energy;
17  fem_ = fem;
18  width_ = width;
19  depth_ = depth;
20  fhot_ = fhot;
21  sigmaz_ = sigmaz;
22  for (reco::CastorTowerRefVector::const_iterator towerit = usedTowers.begin(); towerit != usedTowers.end();
23  ++towerit) {
24  usedTowers_.push_back((*towerit));
25  }
26 }

References edm::RefVector< C, T, F >::begin(), depth(), depth_, emEnergy(), emEnergy_, edm::RefVector< C, T, F >::end(), energy(), energy_, fem(), fem_, fhot(), fhot_, hadEnergy(), hadEnergy_, position(), position_, edm::RefVector< C, T, F >::push_back(), sigmaz(), sigmaz_, usedTowers_, width(), and width_.

◆ ~CastorCluster()

reco::CastorCluster::~CastorCluster ( )
virtual

destructor

Definition at line 28 of file CastorCluster.cc.

28 {}

Member Function Documentation

◆ add()

void reco::CastorCluster::add ( const CastorTowerRef tower)
inline

◆ depth()

double reco::CastorCluster::depth ( ) const
inline

cluster depth in z

Definition at line 72 of file CastorCluster.h.

72 { return depth_; }

References depth_.

Referenced by CastorCluster().

◆ emEnergy()

double reco::CastorCluster::emEnergy ( ) const
inline

cluster em energy

Definition at line 60 of file CastorCluster.h.

60 { return emEnergy_; }

References emEnergy_.

Referenced by CastorCluster().

◆ energy()

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

cluster energy

Definition at line 54 of file CastorCluster.h.

54 { return energy_; }

References energy_.

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

◆ eta()

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

pseudorapidity of cluster centroid

Definition at line 108 of file CastorCluster.h.

108 { return position_.eta(); }

References position_.

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

◆ fem()

double reco::CastorCluster::fem ( ) const
inline

cluster em/tot ratio

Definition at line 66 of file CastorCluster.h.

66 { return fem_; }

References fem_.

Referenced by CastorCluster().

◆ fhot()

double reco::CastorCluster::fhot ( ) const
inline

cluster hotcell/tot ratio

Definition at line 75 of file CastorCluster.h.

75 { return fhot_; }

References fhot_.

Referenced by CastorCluster().

◆ getUsedTowers()

CastorTowerRefVector reco::CastorCluster::getUsedTowers ( ) const
inline

vector of used Towers

Definition at line 81 of file CastorCluster.h.

81 { return usedTowers_; }

References usedTowers_.

◆ hadEnergy()

double reco::CastorCluster::hadEnergy ( ) const
inline

cluster had energy

Definition at line 63 of file CastorCluster.h.

63 { return hadEnergy_; }

References hadEnergy_.

Referenced by CastorCluster().

◆ operator<()

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

comparison <= operator

Definition at line 105 of file CastorCluster.h.

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

References energy_.

◆ operator<=()

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

comparison <= operator

Definition at line 102 of file CastorCluster.h.

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

References energy_.

◆ operator>()

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

comparison > operator

Definition at line 99 of file CastorCluster.h.

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

References energy_.

◆ operator>=()

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

comparison >= operator

Definition at line 96 of file CastorCluster.h.

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

References energy_.

◆ phi()

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

azimuthal angle of cluster centroid

Definition at line 111 of file CastorCluster.h.

111 { return position_.phi(); }

References position_.

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

◆ position()

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

cluster centroid position

Definition at line 57 of file CastorCluster.h.

57 { return position_; }

References position_.

Referenced by CastorCluster().

◆ rho()

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

rho of cluster centroid

Definition at line 120 of file CastorCluster.h.

120 { return position_.rho(); }

References position_.

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

◆ sigmaz()

double reco::CastorCluster::sigmaz ( ) const
inline

cluster sigma z

Definition at line 78 of file CastorCluster.h.

78 { return sigmaz_; }

References sigmaz_.

Referenced by CastorCluster().

◆ towersBegin()

CastorTower_iterator reco::CastorCluster::towersBegin ( ) const
inline

fist iterator over CastorTower constituents

Definition at line 84 of file CastorCluster.h.

84 { return usedTowers_.begin(); }

References edm::RefVector< C, T, F >::begin(), and usedTowers_.

◆ towersEnd()

CastorTower_iterator reco::CastorCluster::towersEnd ( ) const
inline

last iterator over CastorTower constituents

Definition at line 87 of file CastorCluster.h.

87 { return usedTowers_.end(); }

References edm::RefVector< C, T, F >::end(), and usedTowers_.

◆ towersSize()

size_t reco::CastorCluster::towersSize ( ) const
inline

number of CastorTower constituents

Definition at line 90 of file CastorCluster.h.

90 { return usedTowers_.size(); }

References edm::RefVector< C, T, F >::size(), and usedTowers_.

◆ width()

double reco::CastorCluster::width ( ) const
inline

cluster width in phi

Definition at line 69 of file CastorCluster.h.

69 { return width_; }

References width_.

Referenced by CastorCluster().

◆ x()

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

◆ y()

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

y of cluster centroid

Definition at line 117 of file CastorCluster.h.

117 { return position_.y(); }

References position_.

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

Member Data Documentation

◆ depth_

double reco::CastorCluster::depth_
private

cluster depth

Definition at line 142 of file CastorCluster.h.

Referenced by CastorCluster(), and depth().

◆ emEnergy_

double reco::CastorCluster::emEnergy_
private

cluster em energy

Definition at line 130 of file CastorCluster.h.

Referenced by CastorCluster(), and emEnergy().

◆ energy_

double reco::CastorCluster::energy_
private

cluster energy

Definition at line 124 of file CastorCluster.h.

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

◆ fem_

double reco::CastorCluster::fem_
private

cluster em/tot Ratio

Definition at line 136 of file CastorCluster.h.

Referenced by CastorCluster(), and fem().

◆ fhot_

double reco::CastorCluster::fhot_
private

cluster hotcell/tot ratio

Definition at line 145 of file CastorCluster.h.

Referenced by CastorCluster(), and fhot().

◆ hadEnergy_

double reco::CastorCluster::hadEnergy_
private

cluster had energy

Definition at line 133 of file CastorCluster.h.

Referenced by CastorCluster(), and hadEnergy().

◆ position_

ROOT::Math::XYZPoint reco::CastorCluster::position_
private

cluster centroid position

Definition at line 127 of file CastorCluster.h.

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

◆ sigmaz_

double reco::CastorCluster::sigmaz_
private

cluster sigma z

Definition at line 148 of file CastorCluster.h.

Referenced by CastorCluster(), and sigmaz().

◆ usedTowers_

CastorTowerRefVector reco::CastorCluster::usedTowers_
private

references to CastorTower constituents

Definition at line 151 of file CastorCluster.h.

Referenced by add(), CastorCluster(), getUsedTowers(), towersBegin(), towersEnd(), and towersSize().

◆ width_

double reco::CastorCluster::width_
private

cluster width

Definition at line 139 of file CastorCluster.h.

Referenced by CastorCluster(), and width().

reco::CastorCluster::energy_
double energy_
cluster energy
Definition: CastorCluster.h:124
reco::CastorCluster::sigmaz
double sigmaz() const
cluster sigma z
Definition: CastorCluster.h:78
ROOT::Math::XYZPoint
Transform3DPJ::Point XYZPoint
Definition: Transform3DPJ.cc:33
edm::RefVector::begin
const_iterator begin() const
Initialize an iterator over the RefVector.
Definition: RefVector.h:223
hgcalTowerProducer_cfi.tower
tower
Definition: hgcalTowerProducer_cfi.py:4
reco::CastorCluster::position_
ROOT::Math::XYZPoint position_
cluster centroid position
Definition: CastorCluster.h:127
reco::CastorCluster::width
double width() const
cluster width in phi
Definition: CastorCluster.h:69
edm::RefVector::end
const_iterator end() const
Termination of iteration.
Definition: RefVector.h:228
reco::CastorCluster::usedTowers_
CastorTowerRefVector usedTowers_
references to CastorTower constituents
Definition: CastorCluster.h:151
reco::CastorCluster::fem_
double fem_
cluster em/tot Ratio
Definition: CastorCluster.h:136
reco::CastorCluster::width_
double width_
cluster width
Definition: CastorCluster.h:139
reco::CastorCluster::depth
double depth() const
cluster depth in z
Definition: CastorCluster.h:72
reco::CastorCluster::energy
double energy() const
cluster energy
Definition: CastorCluster.h:54
reco::CastorCluster::position
ROOT::Math::XYZPoint position() const
cluster centroid position
Definition: CastorCluster.h:57
reco::CastorCluster::fem
double fem() const
cluster em/tot ratio
Definition: CastorCluster.h:66
edm::RefVector::push_back
void push_back(value_type const &ref)
Add a Ref<C, T> to the RefVector.
Definition: RefVector.h:67
reco::CastorCluster::emEnergy
double emEnergy() const
cluster em energy
Definition: CastorCluster.h:60
reco::CastorCluster::depth_
double depth_
cluster depth
Definition: CastorCluster.h:142
reco::CastorCluster::hadEnergy_
double hadEnergy_
cluster had energy
Definition: CastorCluster.h:133
edm::RefVectorIterator
Definition: EDProductfwd.h:33
reco::CastorCluster::emEnergy_
double emEnergy_
cluster em energy
Definition: CastorCluster.h:130
reco::CastorCluster::fhot
double fhot() const
cluster hotcell/tot ratio
Definition: CastorCluster.h:75
edm::RefVector::size
size_type size() const
Size of the RefVector.
Definition: RefVector.h:102
reco::CastorCluster::fhot_
double fhot_
cluster hotcell/tot ratio
Definition: CastorCluster.h:145
reco::CastorCluster::sigmaz_
double sigmaz_
cluster sigma z
Definition: CastorCluster.h:148
reco::CastorCluster::hadEnergy
double hadEnergy() const
cluster had energy
Definition: CastorCluster.h:63