CMS 3D CMS Logo

Public Member Functions | Private Attributes

reco::CastorTower Class Reference

#include <DataFormats/CastorReco/CastorTower.h>

Inheritance diagram for reco::CastorTower:
reco::LeafCandidate reco::Candidate

List of all members.

Public Member Functions

void add (const CastorCellRef &cell)
 add reference to constituent CastorCell
 CastorTower (const double energy, const ROOT::Math::XYZPoint &position, const double emEnergy, const double hadEnergy, const double fem, const double depth, const double fhot, const CastorCellRefVector &usedCells)
 CastorTower ()
CastorCell_iterator cellsBegin () const
 fist iterator over CastorCell constituents
CastorCell_iterator cellsEnd () const
 last iterator over CastorCell constituents
size_t cellsSize () const
 number of CastorCell constituents
double depth () const
 tower depth in z
double emEnergy () const
 tower em energy
double energy () const
 tower energy
double eta () const
 pseudorapidity of tower centroid
double fem () const
 tower em/tot ratio
double fhot () const
 tower hotcell/tot ratio
CastorCellRefVector getUsedCells () const
 vector of used Cells
double hadEnergy () const
 tower had energy
bool operator< (const CastorTower &rhs) const
 comparison <= operator
bool operator<= (const CastorTower &rhs) const
 comparison <= operator
bool operator> (const CastorTower &rhs) const
 comparison > operator
bool operator>= (const CastorTower &rhs) const
 comparison >= operator
double phi () const
 azimuthal angle of tower centroid
ROOT::Math::XYZPoint position () const
 tower centroid position
double rho () const
 rho of tower centroid
double x () const
 x of tower centroid
double y () const
 y of tower centroid
virtual ~CastorTower ()
 destructor

Private Attributes

double depth_
 tower depth
double emEnergy_
 tower em energy
double energy_
 tower energy
double fem_
 tower em/tot Ratio
double fhot_
 tower hotcell/tot ratio
double hadEnergy_
 tower had energy
ROOT::Math::XYZPoint position_
 tower centroid position
CastorCellRefVector usedCells_
 references to CastorCell constituents

Detailed Description

Class for Castor towers

Author:
Hans Van Haevermaet, University of Antwerp
Version:
Id:
CastorTower.h,v 1.4 2010/01/22 14:14:38 hvanhaev Exp

Definition at line 25 of file CastorTower.h.


Constructor & Destructor Documentation

reco::CastorTower::CastorTower ( ) [inline]

Definition at line 30 of file CastorTower.h.

: energy_(0.), position_(ROOT::Math::XYZPoint(0.,0.,0.)), emEnergy_(0.), hadEnergy_(0.), fem_(0.), depth_(0.), fhot_(0.) { }
CastorTower::CastorTower ( const double  energy,
const ROOT::Math::XYZPoint position,
const double  emEnergy,
const double  hadEnergy,
const double  fem,
const double  depth,
const double  fhot,
const CastorCellRefVector usedCells 
)
CastorTower::~CastorTower ( ) [virtual]

destructor

Definition at line 21 of file CastorTower.cc.

                          {

}

Member Function Documentation

void reco::CastorTower::add ( const CastorCellRef cell) [inline]

add reference to constituent CastorCell

Definition at line 73 of file CastorTower.h.

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

{ usedCells_.push_back( cell ); }
CastorCell_iterator reco::CastorTower::cellsBegin ( ) const [inline]

fist iterator over CastorCell constituents

Definition at line 64 of file CastorTower.h.

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

Referenced by reco::helper::CastorJetIDHelper::calculate(), and CastorClusterProducer::produce().

{ return usedCells_.begin(); }
CastorCell_iterator reco::CastorTower::cellsEnd ( ) const [inline]

last iterator over CastorCell constituents

Definition at line 67 of file CastorTower.h.

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

Referenced by reco::helper::CastorJetIDHelper::calculate(), and CastorClusterProducer::produce().

{ return usedCells_.end(); }
size_t reco::CastorTower::cellsSize ( ) const [inline]

number of CastorCell constituents

Definition at line 70 of file CastorTower.h.

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

{ return usedCells_.size(); }
double reco::CastorTower::depth ( ) const [inline]

tower depth in z

Definition at line 55 of file CastorTower.h.

References depth_.

Referenced by reco::helper::CastorJetIDHelper::calculate(), CastorTower(), and CastorClusterProducer::produce().

{ return depth_; }
double reco::CastorTower::emEnergy ( ) const [inline]

tower em energy

Definition at line 46 of file CastorTower.h.

References emEnergy_.

Referenced by reco::helper::CastorJetIDHelper::calculate(), CastorTower(), and CastorClusterProducer::produce().

{ return emEnergy_; }
double reco::CastorTower::energy ( ) const [inline, virtual]

tower energy

Reimplemented from reco::LeafCandidate.

Definition at line 40 of file CastorTower.h.

References energy_.

Referenced by reco::helper::CastorJetIDHelper::calculate(), CastorTower(), and CastorClusterProducer::produce().

{ return energy_; }
double reco::CastorTower::eta ( ) const [inline, virtual]

pseudorapidity of tower centroid

Reimplemented from reco::LeafCandidate.

Definition at line 88 of file CastorTower.h.

References position_.

{ return position_.eta(); }
double reco::CastorTower::fem ( ) const [inline]

tower em/tot ratio

Definition at line 52 of file CastorTower.h.

References fem_.

Referenced by CastorTower().

{ return fem_; }
double reco::CastorTower::fhot ( ) const [inline]

tower hotcell/tot ratio

Definition at line 58 of file CastorTower.h.

References fhot_.

Referenced by reco::helper::CastorJetIDHelper::calculate(), CastorTower(), and CastorClusterProducer::produce().

{ return fhot_; }
CastorCellRefVector reco::CastorTower::getUsedCells ( ) const [inline]

vector of used Cells

Definition at line 61 of file CastorTower.h.

References usedCells_.

{ return usedCells_; }
double reco::CastorTower::hadEnergy ( ) const [inline]

tower had energy

Definition at line 49 of file CastorTower.h.

References hadEnergy_.

Referenced by reco::helper::CastorJetIDHelper::calculate(), CastorTower(), and CastorClusterProducer::produce().

{ return hadEnergy_; }
bool reco::CastorTower::operator< ( const CastorTower rhs) const [inline]

comparison <= operator

Definition at line 85 of file CastorTower.h.

References energy_.

{ return (energy_< rhs.energy_); }
bool reco::CastorTower::operator<= ( const CastorTower rhs) const [inline]

comparison <= operator

Definition at line 82 of file CastorTower.h.

References energy_.

{ return (energy_<=rhs.energy_); }
bool reco::CastorTower::operator> ( const CastorTower rhs) const [inline]

comparison > operator

Definition at line 79 of file CastorTower.h.

References energy_.

{ return (energy_> rhs.energy_); }
bool reco::CastorTower::operator>= ( const CastorTower rhs) const [inline]

comparison >= operator

Definition at line 76 of file CastorTower.h.

References energy_.

{ return (energy_>=rhs.energy_); }
double reco::CastorTower::phi ( ) const [inline, virtual]

azimuthal angle of tower centroid

Reimplemented from reco::LeafCandidate.

Definition at line 91 of file CastorTower.h.

References position_.

Referenced by reco::helper::CastorJetIDHelper::calculate(), and CastorClusterProducer::produce().

{ return position_.phi(); }
ROOT::Math::XYZPoint reco::CastorTower::position ( ) const [inline]

tower centroid position

Definition at line 43 of file CastorTower.h.

References position_.

Referenced by CastorTower().

{ return position_; }
double reco::CastorTower::rho ( ) const [inline]

rho of tower centroid

Definition at line 100 of file CastorTower.h.

References position_.

{ return position_.rho(); }
double reco::CastorTower::x ( ) const [inline]

x of tower centroid

Definition at line 94 of file CastorTower.h.

References position_.

{ return position_.x(); }
double reco::CastorTower::y ( ) const [inline, virtual]

y of tower centroid

Reimplemented from reco::LeafCandidate.

Definition at line 97 of file CastorTower.h.

References position_.

{ return position_.y(); }

Member Data Documentation

double reco::CastorTower::depth_ [private]

tower depth

Definition at line 120 of file CastorTower.h.

Referenced by CastorTower(), and depth().

double reco::CastorTower::emEnergy_ [private]

tower em energy

Definition at line 111 of file CastorTower.h.

Referenced by CastorTower(), and emEnergy().

double reco::CastorTower::energy_ [private]

tower energy

Definition at line 105 of file CastorTower.h.

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

double reco::CastorTower::fem_ [private]

tower em/tot Ratio

Definition at line 117 of file CastorTower.h.

Referenced by CastorTower(), and fem().

double reco::CastorTower::fhot_ [private]

tower hotcell/tot ratio

Definition at line 123 of file CastorTower.h.

Referenced by CastorTower(), and fhot().

tower had energy

Definition at line 114 of file CastorTower.h.

Referenced by CastorTower(), and hadEnergy().

tower centroid position

Definition at line 108 of file CastorTower.h.

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

references to CastorCell constituents

Definition at line 126 of file CastorTower.h.

Referenced by add(), CastorTower(), cellsBegin(), cellsEnd(), cellsSize(), and getUsedCells().