CMS 3D CMS Logo

Classes | Public Types | Public Member Functions | Private Attributes

CaloPoint Class Reference

#include <CaloPoint.h>

List of all members.

Classes

class  DistanceToVertex

Public Types

typedef math::XYZVector XYZPoint
typedef math::XYZVector XYZVector

Public Member Functions

 CaloPoint ()
 Empty constructor.
 CaloPoint (const DetId &cell, CaloDirection side, const XYZPoint &position)
 constructor for ECAL
 CaloPoint (DetId::Detector detector, int subdetn, int layer, const XYZPoint &position)
 constructor for preshower
 CaloPoint (DetId::Detector detector, const XYZPoint &position)
 constructor for HCAL
DetId getDetId () const
 returns the cellID
CaloDirection getSide () const
 returns the Side (see numbering)
bool operator< (const CaloPoint &p) const
void setDetId (DetId::Detector det)
void setLayer (int i)
void setSubDetector (int i)
DetId::Detector whichDetector () const
int whichLayer () const
int whichSubDetector () const
 watch out, only valid in ECAL and preshower
 ~CaloPoint ()

Private Attributes

DetId cellid_
DetId::Detector detector_
int layer_
CaloDirection side_
int subdetector_

Detailed Description

Definition at line 18 of file CaloPoint.h.


Member Typedef Documentation

Definition at line 24 of file CaloPoint.h.

Definition at line 23 of file CaloPoint.h.


Constructor & Destructor Documentation

CaloPoint::CaloPoint ( ) [inline]

Empty constructor.

Definition at line 27 of file CaloPoint.h.

Referenced by CaloPoint().

:XYZPoint(){;};
CaloPoint::CaloPoint ( const DetId cell,
CaloDirection  side,
const XYZPoint position 
)

constructor for ECAL

Definition at line 17 of file CaloPoint.cc.

References CaloPoint(), DetId::det(), detector_, sistrip::layer_, subdetector_, and DetId::subdetId().

                                                                                    :
  XYZPoint(position),cellid_(cell),side_(side)
{
  detector_=cell.det();
  subdetector_=cell.subdetId();
  layer_=0;
}
CaloPoint::CaloPoint ( DetId::Detector  detector,
const XYZPoint position 
)

constructor for HCAL

CaloPoint::CaloPoint ( DetId::Detector  detector,
int  subdetn,
int  layer,
const XYZPoint position 
)

constructor for preshower

Definition at line 34 of file CaloPoint.cc.

References CaloPoint(), and cellid_.

  :XYZPoint(position),detector_(detector),subdetector_(subdetn),layer_(layer)
{
  cellid_=DetId();
}
CaloPoint::~CaloPoint ( ) [inline]

Definition at line 43 of file CaloPoint.h.

{;}

Member Function Documentation

DetId CaloPoint::getDetId ( void  ) const [inline]

returns the cellID

Definition at line 45 of file CaloPoint.h.

References cellid_.

{return cellid_;};
CaloDirection CaloPoint::getSide ( ) const [inline]

returns the Side (see numbering)

Definition at line 47 of file CaloPoint.h.

References side_.

{return side_;};
bool CaloPoint::operator< ( const CaloPoint &  p) const [inline]

Definition at line 49 of file CaloPoint.h.

References mag2().

    {return this->mag2()<p.mag2() ;};
void CaloPoint::setDetId ( DetId::Detector  det) [inline]

Definition at line 52 of file CaloPoint.h.

References detector_.

{detector_=det;}
void CaloPoint::setLayer ( int  i) [inline]

Definition at line 60 of file CaloPoint.h.

References i, and sistrip::layer_.

{layer_=i;}
void CaloPoint::setSubDetector ( int  i) [inline]

Definition at line 55 of file CaloPoint.h.

References i, and subdetector_.

DetId::Detector CaloPoint::whichDetector ( ) const [inline]

Definition at line 53 of file CaloPoint.h.

References detector_.

{return detector_;};
int CaloPoint::whichLayer ( ) const [inline]

Definition at line 62 of file CaloPoint.h.

References sistrip::layer_.

{return layer_;}
int CaloPoint::whichSubDetector ( ) const [inline]

watch out, only valid in ECAL and preshower

Definition at line 58 of file CaloPoint.h.

References subdetector_.

{return subdetector_;};

Member Data Documentation

DetId CaloPoint::cellid_ [private]

Definition at line 68 of file CaloPoint.h.

Referenced by CaloPoint(), and getDetId().

DetId::Detector CaloPoint::detector_ [private]

Definition at line 70 of file CaloPoint.h.

Referenced by CaloPoint(), setDetId(), and whichDetector().

int CaloPoint::layer_ [private]

Definition at line 72 of file CaloPoint.h.

CaloDirection CaloPoint::side_ [private]

Definition at line 69 of file CaloPoint.h.

Referenced by getSide().

int CaloPoint::subdetector_ [private]

Definition at line 71 of file CaloPoint.h.

Referenced by CaloPoint(), setSubDetector(), and whichSubDetector().