CMS 3D CMS Logo

CaloSegment.cc File Reference

#include "FastSimulation/CaloGeometryTools/interface/CaloSegment.h"
#include "FastSimulation/CaloGeometryTools/interface/CaloGeometryHelper.h"
#include "FastSimulation/CalorimeterProperties/interface/PreshowerLayer1Properties.h"
#include "FastSimulation/CalorimeterProperties/interface/HCALProperties.h"
#include "FastSimulation/CalorimeterProperties/interface/ECALProperties.h"

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &ost, const CaloSegment &seg)


Function Documentation

std::ostream& operator<< ( std::ostream &  ost,
const CaloSegment seg 
)

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 }


Generated on Tue Jun 9 17:52:53 2009 for CMSSW by  doxygen 1.5.4