CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
pftools::Deposition Class Reference

This class holds an arbitrary energy deposition, specified in terms of angular position, energy, depth (optional) and detector element type. More...

#include <Deposition.h>

Public Member Functions

 Deposition (DetectorElementPtr element, double eta=0.0, double phi=0.0, double energy=0.0, double depth=0.0)
 
double getDepth () const
 
DetectorElementPtr getDetectorElement () const
 
double getEnergy () const
 
double getEta () const
 
double getPhi () const
 
void setEnergy (double energy)
 
virtual ~Deposition ()
 

Private Attributes

double myDepth
 
DetectorElementPtr myElementPtr
 
double myEnergy
 
double myEta
 
double myPhi
 

Detailed Description

This class holds an arbitrary energy deposition, specified in terms of angular position, energy, depth (optional) and detector element type.

Author
Jamie Balin
Date
April 2008

Definition at line 20 of file Deposition.h.

Constructor & Destructor Documentation

Deposition::Deposition ( DetectorElementPtr  element,
double  eta = 0.0,
double  phi = 0.0,
double  energy = 0.0,
double  depth = 0.0 
)

Definition at line 3 of file Deposition.cc.

Referenced by getDepth().

Deposition::~Deposition ( )
virtual

Definition at line 9 of file Deposition.cc.

Referenced by getDepth().

9  {
10 }

Member Function Documentation

double pftools::Deposition::getDepth ( void  ) const
inline

Definition at line 52 of file Deposition.h.

References Deposition(), egammaForCoreTracking_cff::depth, PVValHelper::eta, myDepth, and ~Deposition().

52  {
53  return myDepth;
54  }
DetectorElementPtr pftools::Deposition::getDetectorElement ( ) const
inline
double pftools::Deposition::getEnergy ( ) const
inline

Definition at line 38 of file Deposition.h.

References myEnergy.

Referenced by pftools::ParticleDeposit::getRecEnergy(), pftools::ParticleDeposit::getTruthEnergy(), and pftools::operator<<().

38  {
39  return myEnergy;
40  }
double pftools::Deposition::getEta ( ) const
inline

Definition at line 28 of file Deposition.h.

References myEta.

Referenced by pftools::ParticleDeposit::getRecEnergy(), and pftools::operator<<().

28  {
29  return myEta;
30  }
double pftools::Deposition::getPhi ( ) const
inline

Definition at line 33 of file Deposition.h.

References myPhi.

Referenced by pftools::ParticleDeposit::getRecEnergy(), and pftools::operator<<().

33  {
34  return myPhi;
35  }
void pftools::Deposition::setEnergy ( double  energy)
inline

Definition at line 23 of file Deposition.h.

References myEnergy.

Referenced by pftools::ParticleDeposit::setRecEnergy().

23  {
24  myEnergy = energy;
25  }

Member Data Documentation

double pftools::Deposition::myDepth
private

Definition at line 69 of file Deposition.h.

Referenced by getDepth().

DetectorElementPtr pftools::Deposition::myElementPtr
private

Definition at line 64 of file Deposition.h.

Referenced by getDetectorElement().

double pftools::Deposition::myEnergy
private

Definition at line 68 of file Deposition.h.

Referenced by getEnergy(), and setEnergy().

double pftools::Deposition::myEta
private

Definition at line 66 of file Deposition.h.

Referenced by getEta().

double pftools::Deposition::myPhi
private

Definition at line 67 of file Deposition.h.

Referenced by getPhi().