ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
EnergySpot Class Reference

#include <EnergySpot.h>

Collaboration diagram for EnergySpot:

Public Member Functions

 EnergySpot ()
 
 EnergySpot (const G4ThreeVector &P, G4double E, G4double t)
 
virtual ~EnergySpot ()
 
void SetEnergy (const G4double &E)
 
G4double GetEnergy () const
 
void SetPosition (const G4ThreeVector &P)
 
G4ThreeVector GetPosition () const
 
void SetTime (const G4double t)
 
G4double GetTime () const
 
G4bool operator== (const EnergySpot &eSpot) const
 

Private Attributes

G4ThreeVector m_point
 
G4double m_energy
 
G4double m_time
 

Detailed Description

Definition at line 17 of file EnergySpot.h.

Constructor & Destructor Documentation

◆ EnergySpot() [1/2]

EnergySpot::EnergySpot ( )
inline

Definition at line 21 of file EnergySpot.h.

22  : m_point(G4ThreeVector())
23  , m_energy(0)
24  , m_time(0)
25  {;}

◆ EnergySpot() [2/2]

EnergySpot::EnergySpot ( const G4ThreeVector &  P,
G4double  E,
G4double  t 
)
inline

Definition at line 27 of file EnergySpot.h.

28  : m_point(P)
29  , m_energy(E)
30  , m_time(t)
31  {;}

◆ ~EnergySpot()

virtual EnergySpot::~EnergySpot ( )
inlinevirtual

Definition at line 33 of file EnergySpot.h.

33 {;}

Member Function Documentation

◆ GetEnergy()

G4double EnergySpot::GetEnergy ( ) const
inline

Definition at line 37 of file EnergySpot.h.

37 { return m_energy; }

◆ GetPosition()

G4ThreeVector EnergySpot::GetPosition ( ) const
inline

Definition at line 40 of file EnergySpot.h.

40 { return m_point; }

◆ GetTime()

G4double EnergySpot::GetTime ( ) const
inline

Definition at line 43 of file EnergySpot.h.

43 { return m_time; }

◆ operator==()

G4bool EnergySpot::operator== ( const EnergySpot eSpot) const
inline

Definition at line 45 of file EnergySpot.h.

46  {
47  return ( m_energy == eSpot.m_energy && m_point == eSpot.m_point );
48  }

◆ SetEnergy()

void EnergySpot::SetEnergy ( const G4double &  E)
inline

Definition at line 36 of file EnergySpot.h.

36 { m_energy = E; }

◆ SetPosition()

void EnergySpot::SetPosition ( const G4ThreeVector &  P)
inline

Definition at line 39 of file EnergySpot.h.

39 { m_point = P; }

◆ SetTime()

void EnergySpot::SetTime ( const G4double  t)
inline

Definition at line 42 of file EnergySpot.h.

42 { m_time = t; }

Member Data Documentation

◆ m_energy

G4double EnergySpot::m_energy
private

Definition at line 52 of file EnergySpot.h.

◆ m_point

G4ThreeVector EnergySpot::m_point
private

Definition at line 51 of file EnergySpot.h.

◆ m_time

G4double EnergySpot::m_time
private

Definition at line 53 of file EnergySpot.h.


The documentation for this class was generated from the following file:
DMTest::P
P_v1 P
Definition: P.h:23
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
EnergySpot::m_point
G4ThreeVector m_point
Definition: EnergySpot.h:51
EnergySpot::m_time
G4double m_time
Definition: EnergySpot.h:53
EnergySpot::m_energy
G4double m_energy
Definition: EnergySpot.h:52
VP1PartSpect::E
@ E
Definition: VP1PartSpectFlags.h:21