CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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

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

destructor

Definition at line 28 of file CastorCluster.cc.

28 {}

Member Function Documentation

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(), and usedTowers_.

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

CastorTowerRefVector usedTowers_
references to CastorTower constituents
void push_back(value_type const &ref)
Add a Ref&lt;C, T&gt; to the RefVector.
Definition: RefVector.h:67
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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

double reco::CastorCluster::depth_
private

cluster depth

Definition at line 142 of file CastorCluster.h.

Referenced by CastorCluster(), and depth().

double reco::CastorCluster::emEnergy_
private

cluster em energy

Definition at line 130 of file CastorCluster.h.

Referenced by CastorCluster(), and emEnergy().

double reco::CastorCluster::energy_
private

cluster energy

Definition at line 124 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 136 of file CastorCluster.h.

Referenced by CastorCluster(), and fem().

double reco::CastorCluster::fhot_
private

cluster hotcell/tot ratio

Definition at line 145 of file CastorCluster.h.

Referenced by CastorCluster(), and fhot().

double reco::CastorCluster::hadEnergy_
private

cluster had energy

Definition at line 133 of file CastorCluster.h.

Referenced by CastorCluster(), and hadEnergy().

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

double reco::CastorCluster::sigmaz_
private

cluster sigma z

Definition at line 148 of file CastorCluster.h.

Referenced by CastorCluster(), and sigmaz().

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

double reco::CastorCluster::width_
private

cluster width

Definition at line 139 of file CastorCluster.h.

Referenced by CastorCluster(), and width().