#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) |
std::ostream& operator<< | ( | std::ostream & | o, | |
const CaloSegment & | cid | |||
) |
Definition at line 114 of file CaloSegment.cc.
References CaloSegment::CRACK, CaloSegment::ECALHCALGAP, lat::endl(), CaloSegment::entrance(), CaloSegment::exit(), CaloSegment::HCAL, CaloSegment::L0length(), CaloSegment::length(), CaloSegment::material(), CaloSegment::PbWO4, CaloSegment::PS, and CaloSegment::X0length().
00115 { 00116 ost << " DetId " ; 00117 if(!seg.entrance().getDetId().null()) 00118 ost << seg.entrance().getDetId()() ; 00119 else 00120 { 00121 ost << seg.entrance().whichDetector() ; 00122 // ost<< " Entrance side " << seg.entrance().getSide() 00123 ost << " Point " << (math::XYZVector)seg.entrance() << std::endl; 00124 } 00125 ost << "DetId " ; 00126 if(!seg.exit().getDetId().null()) 00127 ost << seg.exit().getDetId()() ; 00128 else 00129 ost << seg.exit().whichDetector() ; 00130 00131 // ost << " Exit side " << seg.exit().getSide() 00132 ost << " Point " << (math::XYZVector)seg.exit() << " " 00133 << seg.length() << " cm " 00134 << seg.X0length() << " X0 " 00135 << seg.L0length() << " Lambda0 " ; 00136 switch (seg.material()) 00137 { 00138 case CaloSegment::PbWO4: 00139 ost << "PbWO4 " ; 00140 break; 00141 case CaloSegment::CRACK: 00142 ost << "CRACK "; 00143 break; 00144 case CaloSegment::PS: 00145 ost << "PS "; 00146 break; 00147 case CaloSegment::HCAL: 00148 ost << "HCAL "; 00149 break; 00150 case CaloSegment::ECALHCALGAP: 00151 ost << "ECAL-HCAL GAP "; 00152 break; 00153 default: 00154 ost << "GAP " ; 00155 } 00156 return ost; 00157 }