CMS 3D CMS Logo

CaloPoint.cc
Go to the documentation of this file.
1 //FAMOS headers
3 
4 std::ostream& operator<<(std::ostream& ost, const CaloPoint& cid) {
5  ost << " DetId ";
6  if (!cid.getDetId().null())
7  ost << (uint32_t)cid.getDetId()();
8  else
9  ost << cid.whichDetector();
10  // ost << " Side " << cid.getSide() << " Point " << (XYZPoint)cid;
11  ost << " Point " << (math::XYZVector)cid;
12  return ost;
13 }
14 
15 // For the ECAL
17  : XYZPoint(position), cellid_(cell), side_(side) {
18  detector_ = cell.det();
19  subdetector_ = cell.subdetId();
20  layer_ = 0;
21 }
22 
23 //hcal
24 CaloPoint::CaloPoint(DetId::Detector det, const XYZPoint& position) : XYZPoint(position), detector_(det) {
25  subdetector_ = 0;
26  layer_ = 0;
27 }
28 
29 //preshower
31  : XYZPoint(position), detector_(detector), subdetector_(subdetn), layer_(layer) {
32  cellid_ = DetId();
33 }
CaloDirection
CaloDirection
Codes the local directions in the cell lattice.
Definition: CaloDirection.h:9
operator<<
std::ostream & operator<<(std::ostream &ost, const CaloPoint &cid)
Definition: CaloPoint.cc:4
DetId::det
constexpr Detector det() const
get the detector field from this detid
Definition: DetId.h:46
CaloPoint.h
CaloPoint::XYZPoint
math::XYZVector XYZPoint
Definition: CaloPoint.h:20
DetId
Definition: DetId.h:17
CaloPoint::detector_
DetId::Detector detector_
Definition: CaloPoint.h:65
DetId::subdetId
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum)
Definition: DetId.h:48
phase1PixelTopology::layer
constexpr std::array< uint8_t, layerIndexSize > layer
Definition: phase1PixelTopology.h:99
CaloPoint::CaloPoint
CaloPoint()
Empty constructor.
Definition: CaloPoint.h:23
math::XYZVector
XYZVectorD XYZVector
spatial vector with cartesian internal representation
Definition: Vector3D.h:31
position
static int position[264][3]
Definition: ReadPGInfo.cc:289
DetId::Detector
Detector
Definition: DetId.h:24
XYZPoint
math::XYZVector XYZPoint
Definition: CalorimetryManager.cc:69
CaloPoint::subdetector_
int subdetector_
Definition: CaloPoint.h:66
hgcalTestNeighbor_cfi.detector
detector
Definition: hgcalTestNeighbor_cfi.py:6
sistrip::layer_
static const char layer_[]
Definition: ConstantsForGranularity.h:30
CaloPoint::cellid_
DetId cellid_
Definition: CaloPoint.h:63