test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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 28 of file CastorCluster.h.

28  : energy_(0.), position_(ROOT::Math::XYZPoint(0.,0.,0.)), emEnergy_(0.), hadEnergy_(0.), fem_(0.), width_(0.),
29  depth_(0.), fhot_(0.), 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_.

5  {
7  energy_ = energy;
10  fem_ = fem;
11  width_ = width;
12  depth_ = depth;
13  fhot_ = fhot;
14  sigmaz_ = sigmaz;
15  for(reco::CastorTowerRefVector::const_iterator towerit = usedTowers.begin(); towerit != usedTowers.end();++towerit) {
16  usedTowers_.push_back( (*towerit) );
17  }
18 }
double depth() const
cluster depth in z
Definition: CastorCluster.h:58
double emEnergy() const
cluster em energy
Definition: CastorCluster.h:46
CastorTowerRefVector usedTowers_
references to CastorTower constituents
double width_
cluster width
double sigmaz() const
cluster sigma z
Definition: CastorCluster.h:64
double sigmaz_
cluster sigma z
double fhot() const
cluster hotcell/tot ratio
Definition: CastorCluster.h:61
double energy_
cluster energy
double width() const
cluster width in phi
Definition: CastorCluster.h:55
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:52
double emEnergy_
cluster em energy
double energy() const
cluster energy
Definition: CastorCluster.h:40
ROOT::Math::XYZPoint position() const
cluster centroid position
Definition: CastorCluster.h:43
double hadEnergy_
cluster had energy
double hadEnergy() const
cluster had energy
Definition: CastorCluster.h:49
void push_back(value_type const &ref)
Add a Ref&lt;C, T&gt; to the RefVector.
Definition: RefVector.h:64
double fhot_
cluster hotcell/tot ratio
reco::CastorCluster::~CastorCluster ( )
virtual

destructor

Definition at line 20 of file CastorCluster.cc.

20  {
21 
22 }

Member Function Documentation

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

add reference to constituent CastorTower

Definition at line 79 of file CastorCluster.h.

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

79 { usedTowers_.push_back( tower ); }
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:64
double reco::CastorCluster::depth ( ) const
inline

cluster depth in z

Definition at line 58 of file CastorCluster.h.

References depth_.

Referenced by CastorCluster().

58 { return depth_; }
double depth_
cluster depth
double reco::CastorCluster::emEnergy ( ) const
inline

cluster em energy

Definition at line 46 of file CastorCluster.h.

References emEnergy_.

Referenced by CastorCluster().

46 { return emEnergy_; }
double emEnergy_
cluster em energy
double reco::CastorCluster::energy ( ) const
inline

cluster energy

Definition at line 40 of file CastorCluster.h.

References energy_.

Referenced by CastorCluster().

40 { return energy_; }
double energy_
cluster energy
double reco::CastorCluster::eta ( ) const
inline

pseudorapidity of cluster centroid

Definition at line 94 of file CastorCluster.h.

References position_.

94 { return position_.eta(); }
ROOT::Math::XYZPoint position_
cluster centroid position
double reco::CastorCluster::fem ( ) const
inline

cluster em/tot ratio

Definition at line 52 of file CastorCluster.h.

References fem_.

Referenced by CastorCluster().

52 { return fem_; }
double fem_
cluster em/tot Ratio
double reco::CastorCluster::fhot ( ) const
inline

cluster hotcell/tot ratio

Definition at line 61 of file CastorCluster.h.

References fhot_.

Referenced by CastorCluster().

61 { return fhot_; }
double fhot_
cluster hotcell/tot ratio
CastorTowerRefVector reco::CastorCluster::getUsedTowers ( ) const
inline

vector of used Towers

Definition at line 67 of file CastorCluster.h.

References usedTowers_.

67 { return usedTowers_; }
CastorTowerRefVector usedTowers_
references to CastorTower constituents
double reco::CastorCluster::hadEnergy ( ) const
inline

cluster had energy

Definition at line 49 of file CastorCluster.h.

References hadEnergy_.

Referenced by CastorCluster().

49 { return hadEnergy_; }
double hadEnergy_
cluster had energy
bool reco::CastorCluster::operator< ( const CastorCluster rhs) const
inline

comparison <= operator

Definition at line 91 of file CastorCluster.h.

References energy_.

91 { return (energy_< rhs.energy_); }
double energy_
cluster energy
bool reco::CastorCluster::operator<= ( const CastorCluster rhs) const
inline

comparison <= operator

Definition at line 88 of file CastorCluster.h.

References energy_.

88 { return (energy_<=rhs.energy_); }
double energy_
cluster energy
bool reco::CastorCluster::operator> ( const CastorCluster rhs) const
inline

comparison > operator

Definition at line 85 of file CastorCluster.h.

References energy_.

85 { return (energy_> rhs.energy_); }
double energy_
cluster energy
bool reco::CastorCluster::operator>= ( const CastorCluster rhs) const
inline

comparison >= operator

Definition at line 82 of file CastorCluster.h.

References energy_.

82 { return (energy_>=rhs.energy_); }
double energy_
cluster energy
double reco::CastorCluster::phi ( ) const
inline

azimuthal angle of cluster centroid

Definition at line 97 of file CastorCluster.h.

References position_.

97 { return position_.phi(); }
ROOT::Math::XYZPoint position_
cluster centroid position
ROOT::Math::XYZPoint reco::CastorCluster::position ( ) const
inline

cluster centroid position

Definition at line 43 of file CastorCluster.h.

References position_.

Referenced by CastorCluster().

43 { return position_; }
ROOT::Math::XYZPoint position_
cluster centroid position
double reco::CastorCluster::rho ( ) const
inline

rho of cluster centroid

Definition at line 106 of file CastorCluster.h.

References position_.

106 { return position_.rho(); }
ROOT::Math::XYZPoint position_
cluster centroid position
double reco::CastorCluster::sigmaz ( ) const
inline

cluster sigma z

Definition at line 64 of file CastorCluster.h.

References sigmaz_.

Referenced by CastorCluster().

64 { return sigmaz_; }
double sigmaz_
cluster sigma z
CastorTower_iterator reco::CastorCluster::towersBegin ( ) const
inline

fist iterator over CastorTower constituents

Definition at line 70 of file CastorCluster.h.

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

70 { return usedTowers_.begin(); }
CastorTowerRefVector usedTowers_
references to CastorTower constituents
const_iterator begin() const
Initialize an iterator over the RefVector.
Definition: RefVector.h:244
CastorTower_iterator reco::CastorCluster::towersEnd ( ) const
inline

last iterator over CastorTower constituents

Definition at line 73 of file CastorCluster.h.

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

73 { return usedTowers_.end(); }
CastorTowerRefVector usedTowers_
references to CastorTower constituents
const_iterator end() const
Termination of iteration.
Definition: RefVector.h:249
size_t reco::CastorCluster::towersSize ( ) const
inline

number of CastorTower constituents

Definition at line 76 of file CastorCluster.h.

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

76 { return usedTowers_.size(); }
CastorTowerRefVector usedTowers_
references to CastorTower constituents
size_type size() const
Size of the RefVector.
Definition: RefVector.h:89
double reco::CastorCluster::width ( ) const
inline
double reco::CastorCluster::x ( ) const
inline
double reco::CastorCluster::y ( ) const
inline

Member Data Documentation

double reco::CastorCluster::depth_
private

cluster depth

Definition at line 129 of file CastorCluster.h.

Referenced by CastorCluster(), and depth().

double reco::CastorCluster::emEnergy_
private

cluster em energy

Definition at line 117 of file CastorCluster.h.

Referenced by CastorCluster(), and emEnergy().

double reco::CastorCluster::energy_
private

cluster energy

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

Referenced by CastorCluster(), and fem().

double reco::CastorCluster::fhot_
private

cluster hotcell/tot ratio

Definition at line 132 of file CastorCluster.h.

Referenced by CastorCluster(), and fhot().

double reco::CastorCluster::hadEnergy_
private

cluster had energy

Definition at line 120 of file CastorCluster.h.

Referenced by CastorCluster(), and hadEnergy().

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

cluster centroid position

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

Referenced by CastorCluster(), and sigmaz().

CastorTowerRefVector reco::CastorCluster::usedTowers_
private

references to CastorTower constituents

Definition at line 138 of file CastorCluster.h.

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

double reco::CastorCluster::width_
private

cluster width

Definition at line 126 of file CastorCluster.h.

Referenced by CastorCluster(), and width().