test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Deposition.cc
Go to the documentation of this file.
2 using namespace pftools;
4  double energy, double depth) :
5  myElementPtr(element), myEta(eta), myPhi(phi), myEnergy(energy),
6  myDepth(depth) {
7 }
8 
10 }
11 
12 std::ostream& pftools::operator<<(std::ostream& s, const Deposition& d) {
13  s << "Deposit's type: "<< *(d.getDetectorElement()) << "\tE:\t"<< d.getEnergy()
14  << ", \teta:\t"<< d.getEta() << ", \tmyPhi:\t"<< d.getPhi() << "\n";
15  return s;
16 }
DetectorElementPtr getDetectorElement() const
Definition: Deposition.h:43
double getEnergy() const
Definition: Deposition.h:38
T eta() const
boost::shared_ptr< DetectorElement > DetectorElementPtr
This class holds an arbitrary energy deposition, specified in terms of angular position, energy, depth (optional) and detector element type.
Definition: Deposition.h:20
Deposition(DetectorElementPtr element, double eta=0.0, double phi=0.0, double energy=0.0, double depth=0.0)
Definition: Deposition.cc:3
virtual ~Deposition()
Definition: Deposition.cc:9
std::ostream & operator<<(std::ostream &s, const Calibratable &calib_)
Definition: Calibratable.cc:6
double getPhi() const
Definition: Deposition.h:33
double getEta() const
Definition: Deposition.h:28
Definition: DDAxes.h:10