CMS 3D CMS Logo

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...
 
 ~CastorEgamma () override
 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

◆ CastorEgamma() [1/2]

reco::CastorEgamma::CastorEgamma ( )
inline

default constructor. Sets energy to zero

Definition at line 20 of file CastorEgamma.h.

20 : energycal_(0.) {}

◆ CastorEgamma() [2/2]

reco::CastorEgamma::CastorEgamma ( const double  energycal,
const CastorClusterRef usedCluster 
)

constructor from values

Definition at line 3 of file CastorEgamma.cc.

3  {
5  usedCluster_ = usedCluster;
6 }

References energycal(), energycal_, and usedCluster_.

◆ ~CastorEgamma()

reco::CastorEgamma::~CastorEgamma ( )
override

destructor

Definition at line 8 of file CastorEgamma.cc.

8 {}

Member Function Documentation

◆ depth()

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

Egamma depth in z.

Definition at line 65 of file CastorEgamma.h.

65 { return (*usedCluster_).depth(); }

◆ emEnergy()

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

Egamma em energy.

Definition at line 53 of file CastorEgamma.h.

53 { return (*usedCluster_).emEnergy(); }

◆ energy()

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

Egamma energy.

Definition at line 29 of file CastorEgamma.h.

29 { return (*usedCluster_).energy(); }

Referenced by Jet.Jet::rawEnergy().

◆ energycal()

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

Egamma energycal.

Definition at line 32 of file CastorEgamma.h.

32 { return energycal_; }

References energycal_.

Referenced by CastorEgamma().

◆ eta()

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

pseudorapidity of Egamma centroid

Definition at line 74 of file CastorEgamma.h.

74 { return (*usedCluster_).eta(); }

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

◆ fem()

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

Egamma em/tot ratio.

Definition at line 59 of file CastorEgamma.h.

59 { return (*usedCluster_).fem(); }

◆ fhot()

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

Egamma hotcell/tot ratio.

Definition at line 68 of file CastorEgamma.h.

68 { return (*usedCluster_).fhot(); }

◆ getUsedCluster()

CastorClusterRef reco::CastorEgamma::getUsedCluster ( ) const
inline

vector of used Clusters

Definition at line 38 of file CastorEgamma.h.

38 { return usedCluster_; }

References usedCluster_.

◆ hadEnergy()

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

Egamma had energy.

Definition at line 56 of file CastorEgamma.h.

56 { return (*usedCluster_).hadEnergy(); }

◆ operator<()

bool reco::CastorEgamma::operator< ( const CastorEgamma rhs) const
inline

comparison <= operator

Definition at line 50 of file CastorEgamma.h.

50 { return (energycal_ < rhs.energycal_); }

References energycal_.

◆ operator<=()

bool reco::CastorEgamma::operator<= ( const CastorEgamma rhs) const
inline

comparison <= operator

Definition at line 47 of file CastorEgamma.h.

47 { return (energycal_ <= rhs.energycal_); }

References energycal_.

◆ operator>()

bool reco::CastorEgamma::operator> ( const CastorEgamma rhs) const
inline

comparison > operator

Definition at line 44 of file CastorEgamma.h.

44 { return (energycal_ > rhs.energycal_); }

References energycal_.

◆ operator>=()

bool reco::CastorEgamma::operator>= ( const CastorEgamma rhs) const
inline

comparison >= operator

Definition at line 41 of file CastorEgamma.h.

41 { return (energycal_ >= rhs.energycal_); }

References energycal_.

◆ phi()

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

azimuthal angle of Egamma centroid

Definition at line 77 of file CastorEgamma.h.

77 { return (*usedCluster_).phi(); }

Referenced by Particle.Particle::__str__(), and ntupleDataFormat.Track::phiPull().

◆ position()

ROOT::Math::XYZPoint reco::CastorEgamma::position ( ) const
inline

Egamma centroid position.

Definition at line 35 of file CastorEgamma.h.

35 { return (*usedCluster_).position(); }

◆ rho()

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

rho of Egamma centroid

Definition at line 86 of file CastorEgamma.h.

86 { return (*usedCluster_).rho(); }

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

◆ sigmaz()

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

Egamma sigma z.

Definition at line 71 of file CastorEgamma.h.

71 { return (*usedCluster_).sigmaz(); }

◆ width()

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

Egamma width in phi.

Definition at line 62 of file CastorEgamma.h.

62 { return (*usedCluster_).width(); }

◆ x()

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

x of Egamma centroid

Definition at line 80 of file CastorEgamma.h.

80 { return (*usedCluster_).x(); }

Referenced by svgfig.Curve.Sample::__repr__(), svgfig.Ellipse::__repr__(), geometryXMLparser.Alignable::pos(), ntupleDataFormat._HitObject::r(), and ntupleDataFormat._HitObject::r3D().

◆ y()

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

y of Egamma centroid

Definition at line 83 of file CastorEgamma.h.

83 { return (*usedCluster_).y(); }

Referenced by svgfig.Ellipse::__repr__(), geometryXMLparser.Alignable::pos(), ntupleDataFormat._HitObject::r(), and ntupleDataFormat._HitObject::r3D().

Member Data Documentation

◆ energycal_

double reco::CastorEgamma::energycal_
private

Egamma energycal.

Definition at line 90 of file CastorEgamma.h.

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

◆ usedCluster_

CastorClusterRef reco::CastorEgamma::usedCluster_
private

used CastorClusters

Definition at line 93 of file CastorEgamma.h.

Referenced by CastorEgamma(), and getUsedCluster().

reco::CastorEgamma::usedCluster_
CastorClusterRef usedCluster_
used CastorClusters
Definition: CastorEgamma.h:93
reco::CastorEgamma::energycal
double energycal() const
Egamma energycal.
Definition: CastorEgamma.h:32
reco::CastorEgamma::energycal_
double energycal_
Egamma energycal.
Definition: CastorEgamma.h:90