CMS 3D CMS Logo

CMSSW_4_4_3_patch1/src/RecoParticleFlow/PFClusterTools/src/Deposition.cc

Go to the documentation of this file.
00001 #include "RecoParticleFlow/PFClusterTools/interface/Deposition.h"
00002 using namespace pftools;
00003 Deposition::Deposition(DetectorElementPtr element, double eta, double phi,
00004                 double energy, double depth) :
00005         myElementPtr(element), myEta(eta), myPhi(phi), myEnergy(energy),
00006                         myDepth(depth) {
00007 }
00008 
00009 Deposition::~Deposition() {
00010 }
00011 
00012 std::ostream& pftools::operator<<(std::ostream& s, const Deposition& d) {
00013         s << "Deposit's type: "<< *(d.getDetectorElement()) << "\tE:\t"<< d.getEnergy()
00014                         << ", \teta:\t"<< d.getEta() << ", \tmyPhi:\t"<< d.getPhi() << "\n";
00015         return s;
00016 }