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::CastorEgamma Class Reference

#include <DataFormats/CastorReco/CastorEgamma.h>

Inheritance diagram for reco::CastorEgamma:
reco::CastorCluster

Public Member Functions

 CastorEgamma ()
 default constructor. Sets energy to zero More...
 
 CastorEgamma (const double energycal, const CastorClusterRef &usedCluster)
 constructor from values More...
 
double depth () const
 Egamma depth in z. More...
 
double emEnergy () const
 Egamma em energy. More...
 
double energy () const
 Egamma energy. More...
 
double energycal () const
 Egamma energycal. More...
 
double eta () const
 pseudorapidity of Egamma centroid More...
 
double fem () const
 Egamma em/tot ratio. More...
 
double fhot () const
 Egamma hotcell/tot ratio. More...
 
CastorClusterRef getUsedCluster () const
 vector of used Clusters More...
 
double hadEnergy () const
 Egamma had energy. More...
 
bool operator< (const CastorEgamma &rhs) const
 comparison <= operator More...
 
bool operator<= (const CastorEgamma &rhs) const
 comparison <= operator More...
 
bool operator> (const CastorEgamma &rhs) const
 comparison > operator More...
 
bool operator>= (const CastorEgamma &rhs) const
 comparison >= operator More...
 
double phi () const
 azimuthal angle of Egamma centroid More...
 
ROOT::Math::XYZPoint position () const
 Egamma centroid position. More...
 
double rho () const
 rho of Egamma centroid More...
 
double sigmaz () const
 Egamma sigma z. More...
 
double width () const
 Egamma width in phi. More...
 
double x () const
 x of Egamma centroid More...
 
double y () const
 y of Egamma centroid More...
 
virtual ~CastorEgamma ()
 destructor More...
 
- Public Member Functions inherited from reco::CastorCluster
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 energycal_
 Egamma energycal. More...
 
CastorClusterRef usedCluster_
 used CastorClusters More...
 

Detailed Description

Class for Castor electrons/photons

Author
Hans Van Haevermaet, University of Antwerp

Definition at line 17 of file CastorEgamma.h.

Constructor & Destructor Documentation

reco::CastorEgamma::CastorEgamma ( )
inline

default constructor. Sets energy to zero

Definition at line 21 of file CastorEgamma.h.

21 : energycal_(0.) { }
double energycal_
Egamma energycal.
Definition: CastorEgamma.h:92
reco::CastorEgamma::CastorEgamma ( const double  energycal,
const CastorClusterRef usedCluster 
)

constructor from values

Definition at line 3 of file CastorEgamma.cc.

References energycal(), energycal_, and usedCluster_.

3  {
5  usedCluster_ = usedCluster;
6 }
double energycal() const
Egamma energycal.
Definition: CastorEgamma.h:33
CastorClusterRef usedCluster_
used CastorClusters
Definition: CastorEgamma.h:95
double energycal_
Egamma energycal.
Definition: CastorEgamma.h:92
reco::CastorEgamma::~CastorEgamma ( )
virtual

destructor

Definition at line 8 of file CastorEgamma.cc.

8  {
9 
10 }

Member Function Documentation

double reco::CastorEgamma::depth ( ) const
inline

Egamma depth in z.

Definition at line 66 of file CastorEgamma.h.

66 { return (*usedCluster_).depth(); }
double reco::CastorEgamma::emEnergy ( ) const
inline

Egamma em energy.

Definition at line 54 of file CastorEgamma.h.

54 { return (*usedCluster_).emEnergy(); }
double reco::CastorEgamma::energy ( ) const
inline

Egamma energy.

Definition at line 30 of file CastorEgamma.h.

30 { return (*usedCluster_).energy(); }
double reco::CastorEgamma::energycal ( ) const
inline

Egamma energycal.

Definition at line 33 of file CastorEgamma.h.

References energycal_.

Referenced by CastorEgamma().

33 { return energycal_; }
double energycal_
Egamma energycal.
Definition: CastorEgamma.h:92
double reco::CastorEgamma::eta ( ) const
inline

pseudorapidity of Egamma centroid

Definition at line 75 of file CastorEgamma.h.

Referenced by Particle.Particle::__str__(), Jet.Jet::jetID(), and Jet.Jet::puJetId().

75 { return (*usedCluster_).eta(); }
double reco::CastorEgamma::fem ( ) const
inline

Egamma em/tot ratio.

Definition at line 60 of file CastorEgamma.h.

60 { return (*usedCluster_).fem(); }
double reco::CastorEgamma::fhot ( ) const
inline

Egamma hotcell/tot ratio.

Definition at line 69 of file CastorEgamma.h.

69 { return (*usedCluster_).fhot(); }
CastorClusterRef reco::CastorEgamma::getUsedCluster ( ) const
inline

vector of used Clusters

Definition at line 39 of file CastorEgamma.h.

References usedCluster_.

39 { return usedCluster_; }
CastorClusterRef usedCluster_
used CastorClusters
Definition: CastorEgamma.h:95
double reco::CastorEgamma::hadEnergy ( ) const
inline

Egamma had energy.

Definition at line 57 of file CastorEgamma.h.

57 { return (*usedCluster_).hadEnergy(); }
bool reco::CastorEgamma::operator< ( const CastorEgamma rhs) const
inline

comparison <= operator

Definition at line 51 of file CastorEgamma.h.

References energycal_.

51 { return (energycal_< rhs.energycal_); }
double energycal_
Egamma energycal.
Definition: CastorEgamma.h:92
bool reco::CastorEgamma::operator<= ( const CastorEgamma rhs) const
inline

comparison <= operator

Definition at line 48 of file CastorEgamma.h.

References energycal_.

48 { return (energycal_<=rhs.energycal_); }
double energycal_
Egamma energycal.
Definition: CastorEgamma.h:92
bool reco::CastorEgamma::operator> ( const CastorEgamma rhs) const
inline

comparison > operator

Definition at line 45 of file CastorEgamma.h.

References energycal_.

45 { return (energycal_> rhs.energycal_); }
double energycal_
Egamma energycal.
Definition: CastorEgamma.h:92
bool reco::CastorEgamma::operator>= ( const CastorEgamma rhs) const
inline

comparison >= operator

Definition at line 42 of file CastorEgamma.h.

References energycal_.

42 { return (energycal_>=rhs.energycal_); }
double energycal_
Egamma energycal.
Definition: CastorEgamma.h:92
double reco::CastorEgamma::phi ( ) const
inline

azimuthal angle of Egamma centroid

Definition at line 78 of file CastorEgamma.h.

Referenced by Particle.Particle::__str__().

78 { return (*usedCluster_).phi(); }
ROOT::Math::XYZPoint reco::CastorEgamma::position ( ) const
inline

Egamma centroid position.

Definition at line 36 of file CastorEgamma.h.

36 { return (*usedCluster_).position(); }
double reco::CastorEgamma::rho ( ) const
inline

rho of Egamma centroid

Definition at line 87 of file CastorEgamma.h.

Referenced by Lepton.Lepton::absIsoFromEA(), and Muon.Muon::absIsoWithFSR().

87 { return (*usedCluster_).rho(); }
double reco::CastorEgamma::sigmaz ( ) const
inline

Egamma sigma z.

Definition at line 72 of file CastorEgamma.h.

72 { return (*usedCluster_).sigmaz(); }
double reco::CastorEgamma::width ( ) const
inline
double reco::CastorEgamma::x ( ) const
inline
double reco::CastorEgamma::y ( ) const
inline

Member Data Documentation

double reco::CastorEgamma::energycal_
private

Egamma energycal.

Definition at line 92 of file CastorEgamma.h.

Referenced by CastorEgamma(), energycal(), operator<(), operator<=(), operator>(), and operator>=().

CastorClusterRef reco::CastorEgamma::usedCluster_
private

used CastorClusters

Definition at line 95 of file CastorEgamma.h.

Referenced by CastorEgamma(), and getUsedCluster().