CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
RPEnergyDepositUnit Class Reference

#include <RPEnergyDepositUnit.h>

Public Member Functions

double Energy () const
 
const Local3DPointPosition () const
 
 RPEnergyDepositUnit ()
 
 RPEnergyDepositUnit (double energy, double x, double y, double z)
 
 RPEnergyDepositUnit (double energy, const Local3DPoint &position)
 
void setEnergy (double e)
 
void setPosition (Local3DPoint p)
 

Private Attributes

double energy_
 
Local3DPoint position_
 

Detailed Description

Class which allows to "follow" an elementary charge in the silicon. It basically defines a quantum of energy, with a position.

Definition at line 11 of file RPEnergyDepositUnit.h.

Constructor & Destructor Documentation

◆ RPEnergyDepositUnit() [1/3]

RPEnergyDepositUnit::RPEnergyDepositUnit ( )
inline

Definition at line 13 of file RPEnergyDepositUnit.h.

13 : energy_(0), position_(0, 0, 0) {}

◆ RPEnergyDepositUnit() [2/3]

RPEnergyDepositUnit::RPEnergyDepositUnit ( double  energy,
double  x,
double  y,
double  z 
)
inline

◆ RPEnergyDepositUnit() [3/3]

RPEnergyDepositUnit::RPEnergyDepositUnit ( double  energy,
const Local3DPoint position 
)
inline

Definition at line 15 of file RPEnergyDepositUnit.h.

Member Function Documentation

◆ Energy()

double RPEnergyDepositUnit::Energy ( ) const
inline

Definition at line 16 of file RPEnergyDepositUnit.h.

References energy_.

16 { return energy_; }

◆ Position()

const Local3DPoint& RPEnergyDepositUnit::Position ( ) const
inline

Definition at line 17 of file RPEnergyDepositUnit.h.

References position_.

17 { return position_; }

◆ setEnergy()

void RPEnergyDepositUnit::setEnergy ( double  e)
inline

◆ setPosition()

void RPEnergyDepositUnit::setPosition ( Local3DPoint  p)
inline

Member Data Documentation

◆ energy_

double RPEnergyDepositUnit::energy_
private

Definition at line 23 of file RPEnergyDepositUnit.h.

Referenced by Energy(), and setEnergy().

◆ position_

Local3DPoint RPEnergyDepositUnit::position_
private

Definition at line 24 of file RPEnergyDepositUnit.h.

Referenced by Position(), and setPosition().