Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:28:48

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_(Point(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 HFShowerPhoton::HFShowerPhoton(const HFShowerPhoton& right) {
0015   position_ = right.position_;
0016   lambda_ = right.lambda_;
0017   time_ = right.time_;
0018 }
0019 
0020 HFShowerPhoton::~HFShowerPhoton() {}
0021 
0022 std::ostream& operator<<(std::ostream& os, const HFShowerPhoton& it) {
0023   os << "X " << std::setw(6) << it.x() << " Y " << std::setw(6) << it.y() << " Z " << std::setw(6) << it.z() << " t "
0024      << std::setw(6) << it.t() << " lambda " << it.lambda();
0025   return os;
0026 }