#include <FastSimulation/CaloGeometryTools/interface/CaloPoint.h>
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 |
Definition at line 18 of file CaloPoint.h.
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.
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] |
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] |
bool CaloPoint::operator< | ( | const CaloPoint & | p | ) | const [inline] |
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;}
Definition at line 60 of file CaloPoint.h.
References sistrip::layer_, and setLayer().
Referenced by setLayer().
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_;};
DetId CaloPoint::cellid_ [private] |
DetId::Detector CaloPoint::detector_ [private] |
int CaloPoint::layer_ [private] |
Definition at line 72 of file CaloPoint.h.
CaloDirection CaloPoint::side_ [private] |
int CaloPoint::subdetector_ [private] |