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);
static const char layer_[]
DistanceToVertex(const XYZPoint &vert)
DetId getDetId() const
returns the cellID
bool operator<(const CaloPoint &p) const
CaloPoint()
Empty constructor.
std::ostream & operator<<(std::ostream &out, const ALILine &li)
int whichSubDetector() const
watch out, only valid in ECAL and preshower
constexpr std::array< uint8_t, layerIndexSize > layer
DetId::Detector detector_
T mag2() const
The vector magnitude squared. Equivalent to vec.dot(vec)
DetId::Detector whichDetector() const
void setSubDetector(int i)
side_(iConfig.getUntrackedParameter< int >("side", 3))
CaloDirection getSide() const
returns the Side (see numbering)
math::XYZVector XYZVector
XYZVectorD XYZVector
spatial vector with cartesian internal representation
static int position[264][3]
CaloDirection
Codes the local directions in the cell lattice.
void setDetId(DetId::Detector det)
bool operator()(const CaloPoint &point1, const CaloPoint &point2)