#include "FastSimulation/CaloGeometryTools/interface/CaloSegment.h"
#include "FastSimulation/CaloGeometryTools/interface/CaloGeometryHelper.h"
#include "FastSimulation/CalorimeterProperties/interface/PreshowerLayer1Properties.h"
#include "FastSimulation/CalorimeterProperties/interface/PreshowerLayer2Properties.h"
#include "FastSimulation/CalorimeterProperties/interface/HCALProperties.h"
#include "FastSimulation/CalorimeterProperties/interface/ECALProperties.h"
#include "DataFormats/EcalDetId/interface/EcalSubdetector.h"
Go to the source code of this file.
Functions | |
std::ostream & | operator<< (std::ostream &ost, const CaloSegment &seg) |
std::ostream& operator<< | ( | std::ostream & | ost, |
const CaloSegment & | seg | ||
) |
Definition at line 130 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().
{ ost << " DetId " ; if(!seg.entrance().getDetId().null()) ost << seg.entrance().getDetId()() ; else { ost << seg.entrance().whichDetector() ; // ost<< " Entrance side " << seg.entrance().getSide() ost << " Point " << (math::XYZVector)seg.entrance() << std::endl; } ost << "DetId " ; if(!seg.exit().getDetId().null()) ost << seg.exit().getDetId()() ; else ost << seg.exit().whichDetector() ; // ost << " Exit side " << seg.exit().getSide() ost << " Point " << (math::XYZVector)seg.exit() << " " << seg.length() << " cm " << seg.X0length() << " X0 " << seg.L0length() << " Lambda0 " ; switch (seg.material()) { case CaloSegment::PbWO4: ost << "PbWO4 " ; break; case CaloSegment::CRACK: ost << "CRACK "; break; case CaloSegment::PS: ost << "PS "; break; case CaloSegment::HCAL: ost << "HCAL "; break; case CaloSegment::ECALHCALGAP: ost << "ECAL-HCAL GAP "; break; case CaloSegment::PSEEGAP: ost << "PS-ECAL GAP"; break; default: ost << "GAP " ; } return ost; }