#include <DataFormats/CastorReco/CastorTower.h>
Public Types | |
typedef edm::SortedCollection < CastorRecHit > | CastorRecHitCollection |
typedef edm::Ref < CastorRecHitCollection > | CastorRecHitRef |
typedef edm::RefVector < CastorRecHitCollection > | CastorRecHitRefs |
Public Member Functions | |
void | add (const CastorRecHitRef &rechit) |
add reference to constituent CastorRecHit | |
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 CastorRecHitRefs &usedRecHits) | |
CastorTower () | |
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 | |
CastorRecHitRefs | getUsedRecHits () const |
vector of used RecHits | |
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 | |
CastorRecHitRefs::iterator | rechitsBegin () const |
fist iterator over CastorRecHit constituents | |
CastorRecHitRefs::iterator | rechitsEnd () const |
last iterator over CastorRecHit constituents | |
size_t | rechitsSize () const |
number of CastorRecHit constituents | |
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 | |
CastorRecHitRefs | usedRecHits_ |
references to CastorRecHit constituents |
Class for Castor towers
Definition at line 27 of file CastorTower.h.
Definition at line 30 of file CastorTower.h.
Definition at line 31 of file CastorTower.h.
Definition at line 32 of file CastorTower.h.
reco::CastorTower::CastorTower | ( | ) | [inline] |
Definition at line 36 of file CastorTower.h.
: energy_(0.), position_(ROOT::Math::XYZPoint(0.,0.,0.)), emEnergy_(0.), hadEnergy_(0.), fem_(0.), depth_(0.), fhot_(0.) { }
reco::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 CastorRecHitRefs & | usedRecHits | ||
) |
Definition at line 4 of file CastorTower.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(), and usedRecHits_.
: LeafCandidate(0,LorentzVector(math::PtEtaPhiMLorentzVector(energy*sin(position.theta()),position.eta(),position.phi(),0)),Point(0,0,0)) { position_ = position; energy_ = energy; emEnergy_ = emEnergy; hadEnergy_ = hadEnergy; fem_ = fem; depth_ = depth; fhot_ = fhot; for(CastorRecHitRefs::const_iterator rechitit = usedRecHits.begin(); rechitit != usedRecHits.end();++rechitit) { usedRecHits_.push_back( (*rechitit) ); } }
reco::CastorTower::~CastorTower | ( | ) | [virtual] |
void reco::CastorTower::add | ( | const CastorRecHitRef & | rechit | ) | [inline] |
add reference to constituent CastorRecHit
Definition at line 79 of file CastorTower.h.
References edm::RefVector< C, T, F >::push_back(), and usedRecHits_.
{ usedRecHits_.push_back( rechit ); }
double reco::CastorTower::depth | ( | ) | const [inline] |
tower depth in z
Definition at line 61 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 52 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 46 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 94 of file CastorTower.h.
References position_.
{ return position_.eta(); }
double reco::CastorTower::fem | ( | ) | const [inline] |
tower em/tot ratio
Definition at line 58 of file CastorTower.h.
References fem_.
Referenced by CastorTower().
{ return fem_; }
double reco::CastorTower::fhot | ( | ) | const [inline] |
tower hotcell/tot ratio
Definition at line 64 of file CastorTower.h.
References fhot_.
Referenced by reco::helper::CastorJetIDHelper::calculate(), CastorTower(), and CastorClusterProducer::produce().
{ return fhot_; }
CastorRecHitRefs reco::CastorTower::getUsedRecHits | ( | ) | const [inline] |
vector of used RecHits
Definition at line 67 of file CastorTower.h.
References usedRecHits_.
{ return usedRecHits_; }
double reco::CastorTower::hadEnergy | ( | ) | const [inline] |
tower had energy
Definition at line 55 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 91 of file CastorTower.h.
References energy_.
{ return (energy_< rhs.energy_); }
bool reco::CastorTower::operator<= | ( | const CastorTower & | rhs | ) | const [inline] |
comparison <= operator
Definition at line 88 of file CastorTower.h.
References energy_.
{ return (energy_<=rhs.energy_); }
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_); }
double reco::CastorTower::phi | ( | ) | const [inline, virtual] |
azimuthal angle of tower centroid
Reimplemented from reco::LeafCandidate.
Definition at line 97 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 49 of file CastorTower.h.
References position_.
Referenced by CastorTower().
{ return position_; }
CastorRecHitRefs::iterator reco::CastorTower::rechitsBegin | ( | ) | const [inline] |
fist iterator over CastorRecHit constituents
Definition at line 70 of file CastorTower.h.
References edm::RefVector< C, T, F >::begin(), and usedRecHits_.
Referenced by reco::helper::CastorJetIDHelper::calculate(), and CastorClusterProducer::produce().
{ return usedRecHits_.begin(); }
CastorRecHitRefs::iterator reco::CastorTower::rechitsEnd | ( | ) | const [inline] |
last iterator over CastorRecHit constituents
Definition at line 73 of file CastorTower.h.
References edm::RefVector< C, T, F >::end(), and usedRecHits_.
Referenced by reco::helper::CastorJetIDHelper::calculate(), and CastorClusterProducer::produce().
{ return usedRecHits_.end(); }
size_t reco::CastorTower::rechitsSize | ( | ) | const [inline] |
number of CastorRecHit constituents
Definition at line 76 of file CastorTower.h.
References edm::RefVector< C, T, F >::size(), and usedRecHits_.
{ return usedRecHits_.size(); }
double reco::CastorTower::rho | ( | ) | const [inline] |
rho of tower centroid
Definition at line 106 of file CastorTower.h.
References position_.
{ return position_.rho(); }
double reco::CastorTower::x | ( | ) | const [inline] |
x of tower centroid
Definition at line 100 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 103 of file CastorTower.h.
References position_.
{ return position_.y(); }
double reco::CastorTower::depth_ [private] |
double reco::CastorTower::emEnergy_ [private] |
tower em energy
Definition at line 117 of file CastorTower.h.
Referenced by CastorTower(), and emEnergy().
double reco::CastorTower::energy_ [private] |
tower energy
Definition at line 111 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 123 of file CastorTower.h.
Referenced by CastorTower(), and fem().
double reco::CastorTower::fhot_ [private] |
tower hotcell/tot ratio
Definition at line 129 of file CastorTower.h.
Referenced by CastorTower(), and fhot().
double reco::CastorTower::hadEnergy_ [private] |
tower had energy
Definition at line 120 of file CastorTower.h.
Referenced by CastorTower(), and hadEnergy().
tower centroid position
Definition at line 114 of file CastorTower.h.
Referenced by CastorTower(), eta(), phi(), position(), rho(), x(), and y().
references to CastorRecHit constituents
Definition at line 132 of file CastorTower.h.
Referenced by add(), CastorTower(), getUsedRecHits(), rechitsBegin(), rechitsEnd(), and rechitsSize().