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 {
6  ost << " DetId " ;
7  if(!cid.getDetId().null())
8  ost << (uint32_t)cid.getDetId()();
9  else
10  ost << cid.whichDetector();
11  // ost << " Side " << cid.getSide() << " Point " << (XYZPoint)cid;
12  ost << " Point " << (math::XYZVector)cid;
13  return ost;
14 }
15 
16 // For the ECAL
18  XYZPoint(position),cellid_(cell),side_(side)
19 {
20  detector_=cell.det();
21  subdetector_=cell.subdetId();
22  layer_=0;
23 }
24 
25 //hcal
28 {
29  subdetector_=0;
30  layer_=0;
31 }
32 
33 //preshower
35  :XYZPoint(position),detector_(detector),subdetector_(subdetn),layer_(layer)
36 {
37  cellid_=DetId();
38 }
static const char layer_[]
CaloPoint()
Empty constructor.
Definition: CaloPoint.h:27
DetId::Detector detector_
Definition: CaloPoint.h:70
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector&#39;s numbering enum) ...
Definition: DetId.h:41
Definition: DetId.h:18
XYZVectorD XYZVector
spatial vector with cartesian internal representation
Definition: Vector3D.h:30
Detector
Definition: DetId.h:26
math::XYZVector XYZPoint
std::ostream & operator<<(std::ostream &ost, const CaloPoint &cid)
Definition: CaloPoint.cc:4
static int position[264][3]
Definition: ReadPGInfo.cc:509
CaloDirection
Codes the local directions in the cell lattice.
Definition: CaloDirection.h:9
DetId cellid_
Definition: CaloPoint.h:68
math::XYZVector XYZPoint
Definition: CaloPoint.h:24
int subdetector_
Definition: CaloPoint.h:71
constexpr Detector det() const
get the detector field from this detid
Definition: DetId.h:39