CMS 3D CMS Logo

CaloPoint Class Reference

#include <FastSimulation/CaloGeometryTools/interface/CaloPoint.h>

List of all members.

Public Types

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

Public Member Functions

 CaloPoint (DetId::Detector detector, int subdetn, int layer, const XYZPoint &position)
 constructor for preshower
 CaloPoint (DetId::Detector detector, const XYZPoint &position)
 constructor for HCAL
 CaloPoint (const DetId &cell, CaloDirection side, const XYZPoint &position)
 constructor for ECAL
 CaloPoint ()
 Empty constructor.
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_

Classes

class  DistanceToVertex


Detailed Description

Definition at line 18 of file CaloPoint.h.


Member Typedef Documentation

typedef math::XYZVector CaloPoint::XYZPoint

Definition at line 24 of file CaloPoint.h.

typedef math::XYZVector CaloPoint::XYZVector

Definition at line 23 of file CaloPoint.h.


Constructor & Destructor Documentation

CaloPoint::CaloPoint (  )  [inline]

Empty constructor.

Definition at line 27 of file CaloPoint.h.

References CaloPoint().

Referenced by CaloPoint(), and ~CaloPoint().

00027 :XYZPoint(){;};

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

constructor for ECAL

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

CaloPoint::~CaloPoint (  )  [inline]

Definition at line 43 of file CaloPoint.h.

References CaloPoint().

00043 {;}


Member Function Documentation

DetId CaloPoint::getDetId (  )  const [inline]

returns the cellID

Definition at line 45 of file CaloPoint.h.

References cellid_, and getDetId().

Referenced by getDetId().

00045 {return cellid_;};

CaloDirection CaloPoint::getSide (  )  const [inline]

returns the Side (see numbering)

Definition at line 47 of file CaloPoint.h.

References getSide(), and side_.

Referenced by getSide().

00047 {return side_;};

bool CaloPoint::operator< ( const CaloPoint &  p  )  const [inline]

Definition at line 49 of file CaloPoint.h.

00050     {return this->mag2()<p.mag2() ;};

void CaloPoint::setDetId ( DetId::Detector  det  )  [inline]

Definition at line 52 of file CaloPoint.h.

References detector_, and setDetId().

Referenced by setDetId().

00052 {detector_=det;}

void CaloPoint::setLayer ( int  i  )  [inline]

Definition at line 60 of file CaloPoint.h.

References sistrip::layer_, and setLayer().

Referenced by setLayer().

00060 {layer_=i;}

void CaloPoint::setSubDetector ( int  i  )  [inline]

Definition at line 55 of file CaloPoint.h.

References setSubDetector(), and subdetector_.

Referenced by setSubDetector().

00055 {subdetector_=i;}

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

Definition at line 53 of file CaloPoint.h.

References detector_, and whichDetector().

Referenced by whichDetector().

00053 {return detector_;};

int CaloPoint::whichLayer (  )  const [inline]

Definition at line 62 of file CaloPoint.h.

References sistrip::layer_, and whichLayer().

Referenced by whichLayer().

00062 {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_, and whichSubDetector().

Referenced by whichSubDetector().

00058 {return subdetector_;};


Member Data Documentation

DetId CaloPoint::cellid_ [private]

Definition at line 68 of file CaloPoint.h.

Referenced by getDetId().

DetId::Detector CaloPoint::detector_ [private]

Definition at line 70 of file CaloPoint.h.

Referenced by 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 setSubDetector(), and whichSubDetector().


The documentation for this class was generated from the following file:
Generated on Tue Jun 9 18:15:48 2009 for CMSSW by  doxygen 1.5.4