Go to the documentation of this file. 1 #ifndef FastSimulation_CaloGeometryTools_CaloPoint_h
2 #define FastSimulation_CaloGeometryTools_CaloPoint_h
45 inline bool operator<(
const CaloPoint&
p)
const {
return this->
mag2() < p.mag2(); };
74 bool operator()(
const CaloPoint& point1,
const CaloPoint& point2) {
83 std::ostream&
operator<<(std::ostream&
o,
const CaloPoint& cid);
CaloDirection
Codes the local directions in the cell lattice.
void setSubDetector(int i)
int whichSubDetector() const
watch out, only valid in ECAL and preshower
bool operator<(const CaloPoint &p) const
DetId getDetId() const
returns the cellID
DetId::Detector detector_
void setDetId(DetId::Detector det)
constexpr std::array< uint8_t, layerIndexSize > layer
DetId::Detector whichDetector() const
CaloDirection getSide() const
returns the Side (see numbering)
CaloPoint()
Empty constructor.
XYZVectorD XYZVector
spatial vector with cartesian internal representation
static int position[264][3]
math::XYZVector XYZVector
T mag2() const
The vector magnitude squared. Equivalent to vec.dot(vec)
std::ostream & operator<<(std::ostream &o, const CaloPoint &cid)
bool operator()(const CaloPoint &point1, const CaloPoint &point2)
DistanceToVertex(const XYZPoint &vert)
static const char layer_[]