CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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 {
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
26 CaloPoint::CaloPoint(DetId::Detector det,const XYZPoint& position)
27  :XYZPoint(position),detector_(det)
28 {
29  subdetector_=0;
30  layer_=0;
31 }
32 
33 //preshower
34 CaloPoint::CaloPoint(DetId::Detector detector,int subdetn, int layer,const XYZPoint& position)
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
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:187
static int position[TOTALCHAMBERS][3]
Definition: ReadPGInfo.cc:509
DetId::Detector detector_
Definition: CaloPoint.h:70
int subdetId() const
get the contents of the subdetector field (not cast into any detector&#39;s numbering enum) ...
Definition: DetId.h:37
Definition: DetId.h:18
XYZVectorD XYZVector
spatial vector with cartesian internal representation
Definition: Vector3D.h:30
Detector
Definition: DetId.h:24
math::XYZVector XYZPoint
CaloDirection
Codes the local directions in the cell lattice.
Definition: CaloDirection.h:9
DetId cellid_
Definition: CaloPoint.h:68
Detector det() const
get the detector field from this detid
Definition: DetId.h:35
math::XYZVector XYZPoint
Definition: CaloPoint.h:24
int subdetector_
Definition: CaloPoint.h:71