CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Classes | Functions
CaloSegment.h File Reference
#include "FastSimulation/CaloGeometryTools/interface/CaloPoint.h"
#include <string>
#include <iosfwd>

Go to the source code of this file.

Classes

class  CaloSegment
 
class  CaloSegment::inL0Segment
 
class  CaloSegment::inSegment
 
class  CaloSegment::inX0Segment
 This class is used to determine if a point lies in the segment. More...
 

Functions

std::ostream & operator<< (std::ostream &o, const CaloSegment &cid)
 

Function Documentation

std::ostream& operator<< ( std::ostream &  o,
const CaloSegment cid 
)

Definition at line 103 of file CaloSegment.cc.

References CaloSegment::CRACK, CaloSegment::ECALHCALGAP, CaloSegment::entrance(), CaloSegment::exit(), CaloSegment::HCAL, CaloSegment::L0length(), CaloSegment::length(), CaloSegment::material(), CaloSegment::PbWO4, CaloSegment::PS, CaloSegment::PSEEGAP, and CaloSegment::X0length().

103  {
104  ost << " DetId ";
105  if (!seg.entrance().getDetId().null())
106  ost << seg.entrance().getDetId()();
107  else {
108  ost << seg.entrance().whichDetector();
109  // ost<< " Entrance side " << seg.entrance().getSide()
110  ost << " Point " << (math::XYZVector)seg.entrance() << std::endl;
111  }
112  ost << "DetId ";
113  if (!seg.exit().getDetId().null())
114  ost << seg.exit().getDetId()();
115  else
116  ost << seg.exit().whichDetector();
117 
118  // ost << " Exit side " << seg.exit().getSide()
119  ost << " Point " << (math::XYZVector)seg.exit() << " " << seg.length() << " cm " << seg.X0length() << " X0 "
120  << seg.L0length() << " Lambda0 ";
121  switch (seg.material()) {
122  case CaloSegment::PbWO4:
123  ost << "PbWO4 ";
124  break;
125  case CaloSegment::CRACK:
126  ost << "CRACK ";
127  break;
128  case CaloSegment::PS:
129  ost << "PS ";
130  break;
131  case CaloSegment::HCAL:
132  ost << "HCAL ";
133  break;
135  ost << "ECAL-HCAL GAP ";
136  break;
138  ost << "PS-ECAL GAP";
139  break;
140  default:
141  ost << "GAP ";
142  }
143  return ost;
144 }
XYZVectorD XYZVector
spatial vector with cartesian internal representation
Definition: Vector3D.h:31