CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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;
28 }
29 
30 //preshower
31 CaloPoint::CaloPoint(DetId::Detector detector, int subdetn, int layer, const XYZPoint& position)
32  : XYZPoint(position), detector_(detector), subdetector_(subdetn), layer_(layer) {
33  cellid_ = DetId();
35 }
static const char layer_[]
CaloPoint()
Empty constructor.
Definition: CaloPoint.h:23
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:167
constexpr std::array< uint8_t, layerIndexSize > layer
DetId::Detector detector_
Definition: CaloPoint.h:65
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector&#39;s numbering enum) ...
Definition: DetId.h:48
side_(iConfig.getUntrackedParameter< int >("side", 3))
Definition: DetId.h:17
XYZVectorD XYZVector
spatial vector with cartesian internal representation
Definition: Vector3D.h:31
Detector
Definition: DetId.h:24
math::XYZVector XYZPoint
static int position[264][3]
Definition: ReadPGInfo.cc:289
CaloDirection
Codes the local directions in the cell lattice.
Definition: CaloDirection.h:9
DetId cellid_
Definition: CaloPoint.h:63
math::XYZVector XYZPoint
Definition: CaloPoint.h:20
int subdetector_
Definition: CaloPoint.h:66
constexpr Detector det() const
get the detector field from this detid
Definition: DetId.h:46