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.) {}
double width_
cluster width
double sigmaz_
cluster sigma z
double energy_
cluster energy
double depth_
cluster depth
double fem_
cluster em/tot Ratio
ROOT::Math::XYZPoint position_
cluster centroid position
double emEnergy_
cluster em energy
double hadEnergy_
cluster had energy
Transform3DPJ::Point XYZPoint
double fhot_
cluster hotcell/tot ratio

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

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

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 }
double hadEnergy() const
cluster had energy
Definition: CastorCluster.h:63
CastorTowerRefVector usedTowers_
references to CastorTower constituents
double width_
cluster width
double energy() const
cluster energy
Definition: CastorCluster.h:54
double fhot() const
cluster hotcell/tot ratio
Definition: CastorCluster.h:75
double emEnergy() const
cluster em energy
Definition: CastorCluster.h:60
double sigmaz_
cluster sigma z
double energy_
cluster energy
double depth_
cluster depth
double fem_
cluster em/tot Ratio
ROOT::Math::XYZPoint position_
cluster centroid position
double depth() const
cluster depth in z
Definition: CastorCluster.h:72
double emEnergy_
cluster em energy
double sigmaz() const
cluster sigma z
Definition: CastorCluster.h:78
double fem() const
cluster em/tot ratio
Definition: CastorCluster.h:66
double hadEnergy_
cluster had energy
ROOT::Math::XYZPoint position() const
cluster centroid position
Definition: CastorCluster.h:57
double width() const
cluster width in phi
Definition: CastorCluster.h:69
void push_back(value_type const &ref)
Add a Ref<C, T> to the RefVector.
Definition: RefVector.h:67
double fhot_
cluster hotcell/tot ratio

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

add reference to constituent CastorTower

Definition at line 93 of file CastorCluster.h.

References edm::RefVector< C, T, F >::push_back(), hgcalTowerProducer_cfi::tower, and usedTowers_.

Referenced by counter.Counter::register(), SequenceTypes._TaskBase::remove(), and SequenceTypes._TaskBase::replace().

CastorTowerRefVector usedTowers_
references to CastorTower constituents
void push_back(value_type const &ref)
Add a Ref<C, T> to the RefVector.
Definition: RefVector.h:67

◆ depth()

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

cluster depth in z

Definition at line 72 of file CastorCluster.h.

References depth_.

Referenced by CastorCluster().

72 { return depth_; }
double depth_
cluster depth

◆ emEnergy()

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

cluster em energy

Definition at line 60 of file CastorCluster.h.

References emEnergy_.

Referenced by CastorCluster().

60 { return emEnergy_; }
double emEnergy_
cluster em energy

◆ energy()

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

cluster energy

Definition at line 54 of file CastorCluster.h.

References energy_.

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

54 { return energy_; }
double energy_
cluster energy

◆ eta()

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

pseudorapidity of cluster centroid

Definition at line 108 of file CastorCluster.h.

References position_.

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

108 { return position_.eta(); }
ROOT::Math::XYZPoint position_
cluster centroid position

◆ fem()

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

cluster em/tot ratio

Definition at line 66 of file CastorCluster.h.

References fem_.

Referenced by CastorCluster().

66 { return fem_; }
double fem_
cluster em/tot Ratio

◆ fhot()

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

cluster hotcell/tot ratio

Definition at line 75 of file CastorCluster.h.

References fhot_.

Referenced by CastorCluster().

75 { return fhot_; }
double fhot_
cluster hotcell/tot ratio

◆ getUsedTowers()

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

vector of used Towers

Definition at line 81 of file CastorCluster.h.

References usedTowers_.

81 { return usedTowers_; }
CastorTowerRefVector usedTowers_
references to CastorTower constituents

◆ hadEnergy()

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

cluster had energy

Definition at line 63 of file CastorCluster.h.

References hadEnergy_.

Referenced by CastorCluster().

63 { return hadEnergy_; }
double hadEnergy_
cluster had energy

◆ operator<()

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

comparison <= operator

Definition at line 105 of file CastorCluster.h.

References energy_.

105 { return (energy_ < rhs.energy_); }
double energy_
cluster energy

◆ operator<=()

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

comparison <= operator

Definition at line 102 of file CastorCluster.h.

References energy_.

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

◆ operator>()

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

comparison > operator

Definition at line 99 of file CastorCluster.h.

References energy_.

99 { return (energy_ > rhs.energy_); }
double energy_
cluster energy

◆ operator>=()

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

comparison >= operator

Definition at line 96 of file CastorCluster.h.

References energy_.

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

◆ phi()

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

azimuthal angle of cluster centroid

Definition at line 111 of file CastorCluster.h.

References position_.

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

111 { return position_.phi(); }
ROOT::Math::XYZPoint position_
cluster centroid position

◆ position()

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

cluster centroid position

Definition at line 57 of file CastorCluster.h.

References position_.

Referenced by CastorCluster().

57 { return position_; }
ROOT::Math::XYZPoint position_
cluster centroid position

◆ rho()

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

rho of cluster centroid

Definition at line 120 of file CastorCluster.h.

References position_.

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

120 { return position_.rho(); }
ROOT::Math::XYZPoint position_
cluster centroid position

◆ sigmaz()

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

cluster sigma z

Definition at line 78 of file CastorCluster.h.

References sigmaz_.

Referenced by CastorCluster().

78 { return sigmaz_; }
double sigmaz_
cluster sigma z

◆ towersBegin()

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

fist iterator over CastorTower constituents

Definition at line 84 of file CastorCluster.h.

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

84 { return usedTowers_.begin(); }
CastorTowerRefVector usedTowers_
references to CastorTower constituents
const_iterator begin() const
Initialize an iterator over the RefVector.
Definition: RefVector.h:223

◆ towersEnd()

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

last iterator over CastorTower constituents

Definition at line 87 of file CastorCluster.h.

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

87 { return usedTowers_.end(); }
CastorTowerRefVector usedTowers_
references to CastorTower constituents
const_iterator end() const
Termination of iteration.
Definition: RefVector.h:228

◆ towersSize()

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

number of CastorTower constituents

Definition at line 90 of file CastorCluster.h.

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

90 { return usedTowers_.size(); }
CastorTowerRefVector usedTowers_
references to CastorTower constituents
size_type size() const
Size of the RefVector.
Definition: RefVector.h:102

◆ width()

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

cluster width in phi

Definition at line 69 of file CastorCluster.h.

References width_.

Referenced by CastorCluster().

69 { return width_; }
double width_
cluster width

◆ x()

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

x of cluster centroid

Definition at line 114 of file CastorCluster.h.

References position_.

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

114 { return position_.x(); }
ROOT::Math::XYZPoint position_
cluster centroid position

◆ y()

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

y of cluster centroid

Definition at line 117 of file CastorCluster.h.

References position_.

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

117 { return position_.y(); }
ROOT::Math::XYZPoint position_
cluster centroid position

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