#include <DataFormats/CastorReco/CastorCluster.h>
Public Member Functions | |
void | add (const CastorTowerRef &tower) |
add reference to constituent CastorTower | |
CastorCluster () | |
default constructor. Sets energy and position to zero | |
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 | |
double | depth () const |
cluster depth in z | |
double | emEnergy () const |
cluster em energy | |
double | energy () const |
cluster energy | |
double | eta () const |
pseudorapidity of cluster centroid | |
double | fem () const |
cluster em/tot ratio | |
double | fhot () const |
cluster hotcell/tot ratio | |
CastorTowerRefVector | getUsedTowers () const |
vector of used Towers | |
double | hadEnergy () const |
cluster had energy | |
bool | operator< (const CastorCluster &rhs) const |
comparison <= operator | |
bool | operator<= (const CastorCluster &rhs) const |
comparison <= operator | |
bool | operator> (const CastorCluster &rhs) const |
comparison > operator | |
bool | operator>= (const CastorCluster &rhs) const |
comparison >= operator | |
double | phi () const |
azimuthal angle of cluster centroid | |
ROOT::Math::XYZPoint | position () const |
cluster centroid position | |
double | rho () const |
rho of cluster centroid | |
double | sigmaz () const |
cluster sigma z | |
CastorTower_iterator | towersBegin () const |
fist iterator over CastorTower constituents | |
CastorTower_iterator | towersEnd () const |
last iterator over CastorTower constituents | |
size_t | towersSize () const |
number of CastorTower constituents | |
double | width () const |
cluster width in phi | |
double | x () const |
x of cluster centroid | |
double | y () const |
y of cluster centroid | |
virtual | ~CastorCluster () |
destructor | |
Private Attributes | |
double | depth_ |
cluster depth | |
double | emEnergy_ |
cluster em energy | |
double | energy_ |
cluster energy | |
double | fem_ |
cluster em/tot Ratio | |
double | fhot_ |
cluster hotcell/tot ratio | |
double | hadEnergy_ |
cluster had energy | |
ROOT::Math::XYZPoint | position_ |
cluster centroid position | |
double | sigmaz_ |
cluster sigma z | |
CastorTowerRefVector | usedTowers_ |
references to CastorTower constituents | |
double | width_ |
cluster width |
Class for Castor clusters
Definition at line 25 of file CastorCluster.h.
reco::CastorCluster::CastorCluster | ( | ) | [inline] |
default constructor. Sets energy and position to zero
Definition at line 29 of file CastorCluster.h.
: energy_(0.), position_(ROOT::Math::XYZPoint(0.,0.,0.)), emEnergy_(0.), hadEnergy_(0.), fem_(0.), width_(0.), depth_(0.), fhot_(0.), sigmaz_(0.) { }
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_.
{ position_ = position; energy_ = energy; emEnergy_ = emEnergy; hadEnergy_ = hadEnergy; fem_ = fem; width_ = width; depth_ = depth; fhot_ = fhot; sigmaz_ = sigmaz; for(reco::CastorTowerRefVector::const_iterator towerit = usedTowers.begin(); towerit != usedTowers.end();++towerit) { usedTowers_.push_back( (*towerit) ); } }
reco::CastorCluster::~CastorCluster | ( | ) | [virtual] |
void reco::CastorCluster::add | ( | const CastorTowerRef & | tower | ) | [inline] |
add reference to constituent CastorTower
Definition at line 80 of file CastorCluster.h.
References edm::RefVector< C, T, F >::push_back(), and usedTowers_.
{ usedTowers_.push_back( tower ); }
double reco::CastorCluster::depth | ( | ) | const [inline] |
cluster depth in z
Reimplemented in reco::CastorEgamma, and reco::CastorJet.
Definition at line 59 of file CastorCluster.h.
References depth_.
Referenced by CastorCluster().
{ return depth_; }
double reco::CastorCluster::emEnergy | ( | ) | const [inline] |
cluster em energy
Reimplemented in reco::CastorEgamma, and reco::CastorJet.
Definition at line 47 of file CastorCluster.h.
References emEnergy_.
Referenced by CastorCluster().
{ return emEnergy_; }
double reco::CastorCluster::energy | ( | ) | const [inline] |
cluster energy
Reimplemented in reco::CastorEgamma, and reco::CastorJet.
Definition at line 41 of file CastorCluster.h.
References energy_.
Referenced by CastorCluster().
{ return energy_; }
double reco::CastorCluster::eta | ( | ) | const [inline] |
pseudorapidity of cluster centroid
Reimplemented in reco::CastorEgamma, and reco::CastorJet.
Definition at line 95 of file CastorCluster.h.
References position_.
{ return position_.eta(); }
double reco::CastorCluster::fem | ( | ) | const [inline] |
cluster em/tot ratio
Reimplemented in reco::CastorEgamma, and reco::CastorJet.
Definition at line 53 of file CastorCluster.h.
References fem_.
Referenced by CastorCluster().
{ return fem_; }
double reco::CastorCluster::fhot | ( | ) | const [inline] |
cluster hotcell/tot ratio
Reimplemented in reco::CastorEgamma, and reco::CastorJet.
Definition at line 62 of file CastorCluster.h.
References fhot_.
Referenced by CastorCluster().
{ return fhot_; }
CastorTowerRefVector reco::CastorCluster::getUsedTowers | ( | ) | const [inline] |
vector of used Towers
Definition at line 68 of file CastorCluster.h.
References usedTowers_.
{ return usedTowers_; }
double reco::CastorCluster::hadEnergy | ( | ) | const [inline] |
cluster had energy
Reimplemented in reco::CastorEgamma, and reco::CastorJet.
Definition at line 50 of file CastorCluster.h.
References hadEnergy_.
Referenced by CastorCluster().
{ return hadEnergy_; }
bool reco::CastorCluster::operator< | ( | const CastorCluster & | rhs | ) | const [inline] |
comparison <= operator
Definition at line 92 of file CastorCluster.h.
References energy_.
{ return (energy_< rhs.energy_); }
bool reco::CastorCluster::operator<= | ( | const CastorCluster & | rhs | ) | const [inline] |
comparison <= operator
Definition at line 89 of file CastorCluster.h.
References energy_.
{ return (energy_<=rhs.energy_); }
bool reco::CastorCluster::operator> | ( | const CastorCluster & | rhs | ) | const [inline] |
comparison > operator
Definition at line 86 of file CastorCluster.h.
References energy_.
{ return (energy_> rhs.energy_); }
bool reco::CastorCluster::operator>= | ( | const CastorCluster & | rhs | ) | const [inline] |
comparison >= operator
Definition at line 83 of file CastorCluster.h.
References energy_.
{ return (energy_>=rhs.energy_); }
double reco::CastorCluster::phi | ( | ) | const [inline] |
azimuthal angle of cluster centroid
Reimplemented in reco::CastorEgamma, and reco::CastorJet.
Definition at line 98 of file CastorCluster.h.
References position_.
{ return position_.phi(); }
ROOT::Math::XYZPoint reco::CastorCluster::position | ( | ) | const [inline] |
cluster centroid position
Reimplemented in reco::CastorEgamma, and reco::CastorJet.
Definition at line 44 of file CastorCluster.h.
References position_.
Referenced by CastorCluster().
{ return position_; }
double reco::CastorCluster::rho | ( | ) | const [inline] |
rho of cluster centroid
Reimplemented in reco::CastorEgamma, and reco::CastorJet.
Definition at line 107 of file CastorCluster.h.
References position_.
{ return position_.rho(); }
double reco::CastorCluster::sigmaz | ( | ) | const [inline] |
cluster sigma z
Reimplemented in reco::CastorEgamma, and reco::CastorJet.
Definition at line 65 of file CastorCluster.h.
References sigmaz_.
Referenced by CastorCluster().
{ return sigmaz_; }
CastorTower_iterator reco::CastorCluster::towersBegin | ( | ) | const [inline] |
fist iterator over CastorTower constituents
Definition at line 71 of file CastorCluster.h.
References edm::RefVector< C, T, F >::begin(), and usedTowers_.
{ return usedTowers_.begin(); }
CastorTower_iterator reco::CastorCluster::towersEnd | ( | ) | const [inline] |
last iterator over CastorTower constituents
Definition at line 74 of file CastorCluster.h.
References edm::RefVector< C, T, F >::end(), and usedTowers_.
{ return usedTowers_.end(); }
size_t reco::CastorCluster::towersSize | ( | ) | const [inline] |
number of CastorTower constituents
Definition at line 77 of file CastorCluster.h.
References edm::RefVector< C, T, F >::size(), and usedTowers_.
{ return usedTowers_.size(); }
double reco::CastorCluster::width | ( | ) | const [inline] |
cluster width in phi
Reimplemented in reco::CastorEgamma, and reco::CastorJet.
Definition at line 56 of file CastorCluster.h.
References width_.
Referenced by CastorCluster().
{ return width_; }
double reco::CastorCluster::x | ( | ) | const [inline] |
x of cluster centroid
Reimplemented in reco::CastorEgamma, and reco::CastorJet.
Definition at line 101 of file CastorCluster.h.
References position_.
{ return position_.x(); }
double reco::CastorCluster::y | ( | ) | const [inline] |
y of cluster centroid
Reimplemented in reco::CastorEgamma, and reco::CastorJet.
Definition at line 104 of file CastorCluster.h.
References position_.
{ return position_.y(); }
double reco::CastorCluster::depth_ [private] |
cluster depth
Definition at line 130 of file CastorCluster.h.
Referenced by CastorCluster(), and depth().
double reco::CastorCluster::emEnergy_ [private] |
cluster em energy
Definition at line 118 of file CastorCluster.h.
Referenced by CastorCluster(), and emEnergy().
double reco::CastorCluster::energy_ [private] |
cluster energy
Definition at line 112 of file CastorCluster.h.
Referenced by CastorCluster(), energy(), operator<(), operator<=(), operator>(), and operator>=().
double reco::CastorCluster::fem_ [private] |
cluster em/tot Ratio
Definition at line 124 of file CastorCluster.h.
Referenced by CastorCluster(), and fem().
double reco::CastorCluster::fhot_ [private] |
cluster hotcell/tot ratio
Definition at line 133 of file CastorCluster.h.
Referenced by CastorCluster(), and fhot().
double reco::CastorCluster::hadEnergy_ [private] |
cluster had energy
Definition at line 121 of file CastorCluster.h.
Referenced by CastorCluster(), and hadEnergy().
cluster centroid position
Definition at line 115 of file CastorCluster.h.
Referenced by CastorCluster(), eta(), phi(), position(), rho(), x(), and y().
double reco::CastorCluster::sigmaz_ [private] |
cluster sigma z
Definition at line 136 of file CastorCluster.h.
Referenced by CastorCluster(), and sigmaz().
references to CastorTower constituents
Definition at line 139 of file CastorCluster.h.
Referenced by add(), CastorCluster(), getUsedTowers(), towersBegin(), towersEnd(), and towersSize().
double reco::CastorCluster::width_ [private] |
cluster width
Definition at line 127 of file CastorCluster.h.
Referenced by CastorCluster(), and width().