Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:29:40

0001 ///////////////////////////////////////////////////////////////////////////////
0002 // File: HFShowerPhoton.cc
0003 // Description: Photons (generating single PE) in HF Shower Library
0004 ///////////////////////////////////////////////////////////////////////////////
0005 #include "SimDataFormats/CaloHit/interface/HFShowerPhoton.h"
0006 
0007 #include <iomanip>
0008 
0009 HFShowerPhoton::HFShowerPhoton(float x, float y, float z, float lambda, float t)
0010     : position_(x, y, z), lambda_(lambda), time_(t) {}
0011 
0012 HFShowerPhoton::HFShowerPhoton(const Point& p, float t, float lambda) : position_(p), lambda_(lambda), time_(t) {}
0013 
0014 std::ostream& operator<<(std::ostream& os, const HFShowerPhoton& it) {
0015   os << "X " << std::setw(6) << it.x() << " Y " << std::setw(6) << it.y() << " Z " << std::setw(6) << it.z() << " t "
0016      << std::setw(6) << it.t() << " lambda " << it.lambda();
0017   return os;
0018 }